Home
last modified time | relevance | path

Searched refs:OldFunc (Results 1 – 12 of 12) sorted by relevance

/external/llvm/lib/Transforms/Utils/
DCloneFunction.cpp78 void llvm::CloneFunctionInto(Function *NewFunc, const Function *OldFunc, in CloneFunctionInto() argument
88 for (const Argument &I : OldFunc->args()) in CloneFunctionInto()
95 NewFunc->copyAttributesFrom(OldFunc); in CloneFunctionInto()
99 if (OldFunc->hasPersonalityFn()) in CloneFunctionInto()
101 MapValue(OldFunc->getPersonalityFn(), VMap, in CloneFunctionInto()
105 AttributeSet OldAttrs = OldFunc->getAttributes(); in CloneFunctionInto()
107 for (const Argument &OldArg : OldFunc->args()) in CloneFunctionInto()
123 OldFunc->getAllMetadata(MDs); in CloneFunctionInto()
135 for (Function::const_iterator BI = OldFunc->begin(), BE = OldFunc->end(); in CloneFunctionInto()
152 Constant *OldBBAddr = BlockAddress::get(const_cast<Function*>(OldFunc), in CloneFunctionInto()
[all …]
/external/llvm-project/llvm/lib/Transforms/Utils/
DCloneFunction.cpp81 void llvm::CloneFunctionInto(Function *NewFunc, const Function *OldFunc, in CloneFunctionInto() argument
91 for (const Argument &I : OldFunc->args()) in CloneFunctionInto()
98 NewFunc->copyAttributesFrom(OldFunc); in CloneFunctionInto()
102 if (OldFunc->hasPersonalityFn()) in CloneFunctionInto()
104 MapValue(OldFunc->getPersonalityFn(), VMap, in CloneFunctionInto()
109 AttributeList OldAttrs = OldFunc->getAttributes(); in CloneFunctionInto()
112 for (const Argument &OldArg : OldFunc->args()) { in CloneFunctionInto()
124 OldFunc->getParent() && OldFunc->getParent() == NewFunc->getParent(); in CloneFunctionInto()
125 DISubprogram *SP = OldFunc->getSubprogram(); in CloneFunctionInto()
142 if (OldFunc->isDeclaration()) in CloneFunctionInto()
[all …]
DCodeExtractor.cpp1462 static void fixupDebugInfoPostExtraction(Function &OldFunc, Function &NewFunc, in fixupDebugInfoPostExtraction() argument
1464 DISubprogram *OldSP = OldFunc.getSubprogram(); in fixupDebugInfoPostExtraction()
1465 LLVMContext &Ctx = OldFunc.getContext(); in fixupDebugInfoPostExtraction()
1479 DIBuilder DIB(*OldFunc.getParent(), /*AllowUnresolved=*/false, in fixupDebugInfoPostExtraction()
1780 bool CodeExtractor::verifyAssumptionCache(const Function &OldFunc, in verifyAssumptionCache() argument
1789 if (I->getFunction() != &OldFunc) in verifyAssumptionCache()
1799 if (AffectedCI->getFunction() != &OldFunc) in verifyAssumptionCache()
1802 if (AssumedInst->getFunction() != &OldFunc) in verifyAssumptionCache()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DCloneFunction.cpp84 void llvm::CloneFunctionInto(Function *NewFunc, const Function *OldFunc, in CloneFunctionInto() argument
94 for (const Argument &I : OldFunc->args()) in CloneFunctionInto()
101 NewFunc->copyAttributesFrom(OldFunc); in CloneFunctionInto()
105 if (OldFunc->hasPersonalityFn()) in CloneFunctionInto()
107 MapValue(OldFunc->getPersonalityFn(), VMap, in CloneFunctionInto()
112 AttributeList OldAttrs = OldFunc->getAttributes(); in CloneFunctionInto()
115 for (const Argument &OldArg : OldFunc->args()) { in CloneFunctionInto()
127 OldFunc->getParent() && OldFunc->getParent() == NewFunc->getParent(); in CloneFunctionInto()
128 DISubprogram *SP = OldFunc->getSubprogram(); in CloneFunctionInto()
144 OldFunc->getAllMetadata(MDs); in CloneFunctionInto()
[all …]
/external/llvm/unittests/Transforms/Utils/
DCloning.cpp221 OldFunc = Function::Create(FuncType, GlobalValue::PrivateLinkage, "f", M); in CreateOldFunc()
240 OldFunc->setSubprogram(Subprogram); in CreateOldFunctionBodyAndDI()
243 BasicBlock* Entry = BasicBlock::Create(C, "", OldFunc); in CreateOldFunctionBodyAndDI()
277 NewFunc = CloneFunction(OldFunc, VMap, nullptr); in CreateNewFunc()
286 Function* OldFunc; member in __anond9ee711d0111::CloneFunc
294 EXPECT_NE(OldFunc, NewFunc); in TEST_F()
308 EXPECT_TRUE(Sub == OldFunc->getSubprogram()); in TEST_F()
317 inst_iterator OldIter = inst_begin(OldFunc); in TEST_F()
318 inst_iterator OldEnd = inst_end(OldFunc); in TEST_F()
338 EXPECT_EQ(OldFunc->getSubprogram(), OldSubprogram); in TEST_F()
[all …]
/external/llvm-project/llvm/unittests/Transforms/Utils/
DCloningTest.cpp463 OldFunc = Function::Create(FuncType, GlobalValue::PrivateLinkage, "f", M); in CreateOldFunc()
484 OldFunc->setSubprogram(Subprogram); in CreateOldFunctionBodyAndDI()
487 BasicBlock* Entry = BasicBlock::Create(C, "", OldFunc); in CreateOldFunctionBodyAndDI()
537 NewFunc = CloneFunction(OldFunc, VMap, nullptr); in CreateNewFunc()
546 Function* OldFunc; member in __anon375186cb0111::CloneFunc
554 EXPECT_NE(OldFunc, NewFunc); in TEST_F()
562 EXPECT_NE(NewFunc->getSubprogram(), OldFunc->getSubprogram()); in TEST_F()
570 inst_iterator OldIter = inst_begin(OldFunc); in TEST_F()
571 inst_iterator OldEnd = inst_end(OldFunc); in TEST_F()
591 EXPECT_EQ(OldFunc->getSubprogram(), OldSubprogram); in TEST_F()
[all …]
/external/llvm/include/llvm/Transforms/Utils/
DCloning.h141 void CloneFunctionInto(Function *NewFunc, const Function *OldFunc,
149 void CloneAndPruneIntoFromInst(Function *NewFunc, const Function *OldFunc,
167 void CloneAndPruneFunctionInto(Function *NewFunc, const Function *OldFunc,
/external/llvm-project/llvm/include/llvm/Transforms/Utils/
DCloning.h137 void CloneFunctionInto(Function *NewFunc, const Function *OldFunc,
145 void CloneAndPruneIntoFromInst(Function *NewFunc, const Function *OldFunc,
163 void CloneAndPruneFunctionInto(Function *NewFunc, const Function *OldFunc,
DCodeExtractor.h145 static bool verifyAssumptionCache(const Function &OldFunc,
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/
DCloning.h138 void CloneFunctionInto(Function *NewFunc, const Function *OldFunc,
146 void CloneAndPruneIntoFromInst(Function *NewFunc, const Function *OldFunc,
164 void CloneAndPruneFunctionInto(Function *NewFunc, const Function *OldFunc,
/external/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DAutoUpgrade.cpp3884 auto UpgradeToIntrinsic = [&](const char *OldFunc, in UpgradeARCRuntime()
3886 Function *Fn = M.getFunction(OldFunc); in UpgradeARCRuntime()
/external/llvm-project/llvm/lib/IR/
DAutoUpgrade.cpp4028 auto UpgradeToIntrinsic = [&](const char *OldFunc, in UpgradeARCRuntime()
4030 Function *Fn = M.getFunction(OldFunc); in UpgradeARCRuntime()