| OLD | NEW |
| 1 //===- subzero/src/PNaClTranslator.cpp - ICE from bitcode -----------------===// | 1 //===- subzero/src/PNaClTranslator.cpp - ICE from bitcode -----------------===// |
| 2 // | 2 // |
| 3 // The Subzero Code Generator | 3 // The Subzero Code Generator |
| 4 // | 4 // |
| 5 // This file is distributed under the University of Illinois Open Source | 5 // This file is distributed under the University of Illinois Open Source |
| 6 // License. See LICENSE.TXT for details. | 6 // License. See LICENSE.TXT for details. |
| 7 // | 7 // |
| 8 //===----------------------------------------------------------------------===// | 8 //===----------------------------------------------------------------------===// |
| 9 // | 9 // |
| 10 // This file implements the PNaCl bitcode file to Ice, to machine code | 10 // This file implements the PNaCl bitcode file to Ice, to machine code |
| (...skipping 1048 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1059 class FunctionParser : public BlockParserBaseClass { | 1059 class FunctionParser : public BlockParserBaseClass { |
| 1060 FunctionParser(const FunctionParser &) = delete; | 1060 FunctionParser(const FunctionParser &) = delete; |
| 1061 FunctionParser &operator=(const FunctionParser &) = delete; | 1061 FunctionParser &operator=(const FunctionParser &) = delete; |
| 1062 | 1062 |
| 1063 public: | 1063 public: |
| 1064 FunctionParser(unsigned BlockID, BlockParserBaseClass *EnclosingParser) | 1064 FunctionParser(unsigned BlockID, BlockParserBaseClass *EnclosingParser) |
| 1065 : BlockParserBaseClass(BlockID, EnclosingParser), | 1065 : BlockParserBaseClass(BlockID, EnclosingParser), |
| 1066 Timer(Ice::TimerStack::TT_parseFunctions, getTranslator().getContext()), | 1066 Timer(Ice::TimerStack::TT_parseFunctions, getTranslator().getContext()), |
| 1067 Func(isIRGenerationDisabled() | 1067 Func(isIRGenerationDisabled() |
| 1068 ? nullptr | 1068 ? nullptr |
| 1069 : new Ice::Cfg(getTranslator().getContext())), | 1069 : Ice::Cfg::create(getTranslator().getContext())), |
| 1070 CurrentBbIndex(0), FcnId(Context->getNextFunctionBlockValueID()), | 1070 CurrentBbIndex(0), FcnId(Context->getNextFunctionBlockValueID()), |
| 1071 FuncDecl(Context->getFunctionByID(FcnId)), | 1071 FuncDecl(Context->getFunctionByID(FcnId)), |
| 1072 CachedNumGlobalValueIDs(Context->getNumGlobalIDs()), | 1072 CachedNumGlobalValueIDs(Context->getNumGlobalIDs()), |
| 1073 NextLocalInstIndex(Context->getNumGlobalIDs()), | 1073 NextLocalInstIndex(Context->getNumGlobalIDs()), |
| 1074 InstIsTerminating(false) { | 1074 InstIsTerminating(false) { |
| 1075 if (ALLOW_DUMP && getFlags().TimeEachFunction) | 1075 if (ALLOW_DUMP && getFlags().TimeEachFunction) |
| 1076 getTranslator().getContext()->pushTimer( | 1076 getTranslator().getContext()->pushTimer( |
| 1077 getTranslator().getContext()->getTimerID( | 1077 getTranslator().getContext()->getTimerID( |
| 1078 Ice::GlobalContext::TSK_Funcs, FuncDecl->getName()), | 1078 Ice::GlobalContext::TSK_Funcs, FuncDecl->getName()), |
| 1079 Ice::GlobalContext::TSK_Funcs); | 1079 Ice::GlobalContext::TSK_Funcs); |
| (...skipping 1921 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3001 | 3001 |
| 3002 if (TopLevelBlocks != 1) { | 3002 if (TopLevelBlocks != 1) { |
| 3003 errs() << IRFilename | 3003 errs() << IRFilename |
| 3004 << ": Contains more than one module. Found: " << TopLevelBlocks | 3004 << ": Contains more than one module. Found: " << TopLevelBlocks |
| 3005 << "\n"; | 3005 << "\n"; |
| 3006 ErrorStatus = true; | 3006 ErrorStatus = true; |
| 3007 } | 3007 } |
| 3008 } | 3008 } |
| 3009 | 3009 |
| 3010 } // end of namespace Ice | 3010 } // end of namespace Ice |
| OLD | NEW |