Searched refs:OldFunc (Results 1 – 3 of 3) sorted by relevance
/external/llvm/lib/Transforms/Utils/ |
D | CloneFunction.cpp | 78 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() 126 for (Function::const_iterator BI = OldFunc->begin(), BE = OldFunc->end(); in CloneFunctionInto() 143 Constant *OldBBAddr = BlockAddress::get(const_cast<Function*>(OldFunc), in CloneFunctionInto() 156 cast<BasicBlock>(VMap[&OldFunc->front()])->getIterator(), in CloneFunctionInto() [all …]
|
/external/llvm/unittests/Transforms/Utils/ |
D | Cloning.cpp | 222 OldFunc = Function::Create(FuncType, GlobalValue::PrivateLinkage, "f", M); in CreateOldFunc() 241 OldFunc->setSubprogram(Subprogram); in CreateOldFunctionBodyAndDI() 244 BasicBlock* Entry = BasicBlock::Create(C, "", OldFunc); in CreateOldFunctionBodyAndDI() 278 NewFunc = CloneFunction(OldFunc, VMap, true, nullptr); in CreateNewFunc() 288 Function* OldFunc; member in __anon72aa56b60111::CloneFunc 296 EXPECT_NE(OldFunc, NewFunc); in TEST_F() 313 (Sub1 == OldFunc->getSubprogram() && Sub2 == NewFunc->getSubprogram()) || in TEST_F() 314 (Sub1 == NewFunc->getSubprogram() && Sub2 == OldFunc->getSubprogram())); in TEST_F() 337 inst_iterator OldIter = inst_begin(OldFunc); in TEST_F() 338 inst_iterator OldEnd = inst_end(OldFunc); in TEST_F() [all …]
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | Cloning.h | 142 void CloneFunctionInto(Function *NewFunc, const Function *OldFunc, 178 void CloneAndPruneIntoFromInst(Function *NewFunc, const Function *OldFunc, 198 void CloneAndPruneFunctionInto(Function *NewFunc, const Function *OldFunc,
|