Home
last modified time | relevance | path

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

/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/
DCloneFunction.cpp74 void llvm::CloneFunctionInto(Function *NewFunc, const Function *OldFunc, in CloneFunctionInto() argument
82 for (Function::const_arg_iterator I = OldFunc->arg_begin(), in CloneFunctionInto()
83 E = OldFunc->arg_end(); I != E; ++I) in CloneFunctionInto()
88 if (NewFunc->arg_size() == OldFunc->arg_size()) in CloneFunctionInto()
89 NewFunc->copyAttributesFrom(OldFunc); in CloneFunctionInto()
92 for (Function::const_arg_iterator I = OldFunc->arg_begin(), in CloneFunctionInto()
93 E = OldFunc->arg_end(); I != E; ++I) in CloneFunctionInto()
95 Anew->addAttr( OldFunc->getAttributes() in CloneFunctionInto()
98 .addAttr(0, OldFunc->getAttributes() in CloneFunctionInto()
101 .addAttr(~0, OldFunc->getAttributes() in CloneFunctionInto()
[all …]
/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/swiftshader/third_party/llvm-7.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 __anon13ab407f0111::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/swiftshader/third_party/llvm-7.0/llvm/unittests/Transforms/Utils/
DCloning.cpp369 OldFunc = Function::Create(FuncType, GlobalValue::PrivateLinkage, "f", M); in CreateOldFunc()
390 OldFunc->setSubprogram(Subprogram); in CreateOldFunctionBodyAndDI()
393 BasicBlock* Entry = BasicBlock::Create(C, "", OldFunc); in CreateOldFunctionBodyAndDI()
443 NewFunc = CloneFunction(OldFunc, VMap, nullptr); in CreateNewFunc()
452 Function* OldFunc; member in __anon8541a5d70111::CloneFunc
460 EXPECT_NE(OldFunc, NewFunc); in TEST_F()
468 EXPECT_NE(NewFunc->getSubprogram(), OldFunc->getSubprogram()); in TEST_F()
476 inst_iterator OldIter = inst_begin(OldFunc); in TEST_F()
477 inst_iterator OldEnd = inst_end(OldFunc); in TEST_F()
497 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/swiftshader/third_party/llvm-7.0/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/swiftshader/third_party/LLVM/include/llvm/Transforms/Utils/
DCloning.h143 void CloneFunctionInto(Function *NewFunc, const Function *OldFunc,
161 void CloneAndPruneFunctionInto(Function *NewFunc, const Function *OldFunc,