Searched refs:NewFunc (Results 1 – 6 of 6) sorted by relevance
/external/llvm/lib/Transforms/Utils/ |
D | CloneFunction.cpp | 78 void llvm::CloneFunctionInto(Function *NewFunc, const Function *OldFunc, in CloneFunctionInto() argument 94 AttributeSet NewAttrs = NewFunc->getAttributes(); in CloneFunctionInto() 95 NewFunc->copyAttributesFrom(OldFunc); in CloneFunctionInto() 96 NewFunc->setAttributes(NewAttrs); in CloneFunctionInto() 100 NewFunc->setPersonalityFn( in CloneFunctionInto() 115 NewFunc->setAttributes( in CloneFunctionInto() 116 NewFunc->getAttributes() in CloneFunctionInto() 117 .addAttributes(NewFunc->getContext(), AttributeSet::ReturnIndex, in CloneFunctionInto() 119 .addAttributes(NewFunc->getContext(), AttributeSet::FunctionIndex, in CloneFunctionInto() 131 BasicBlock *CBB = CloneBasicBlock(&BB, VMap, NameSuffix, NewFunc, CodeInfo); in CloneFunctionInto() [all …]
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUAlwaysInlinePass.cpp | 48 Function *NewFunc = CloneFunction(F, VMap, false); in runOnModule() local 49 NewFunc->setLinkage(GlobalValue::InternalLinkage); in runOnModule() 50 M.getFunctionList().push_back(NewFunc); in runOnModule() 51 F->replaceAllUsesWith(NewFunc); in runOnModule()
|
/external/llvm/unittests/Transforms/Utils/ |
D | Cloning.cpp | 278 NewFunc = CloneFunction(OldFunc, VMap, true, nullptr); in CreateNewFunc() 279 M->getFunctionList().push_back(NewFunc); in CreateNewFunc() 289 Function* NewFunc; 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() 339 inst_iterator NewIter = inst_begin(NewFunc); in TEST_F() 340 inst_iterator NewEnd = inst_end(NewFunc); in TEST_F() 359 EXPECT_EQ(NewFunc->getSubprogram(), NewSubprogram); in TEST_F() 376 inst_iterator NewIter = inst_begin(NewFunc); 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,
|
/external/llvm/lib/ProfileData/ |
D | InstrProfWriter.cpp | 101 bool NewFunc; in addRecord() local 103 std::tie(Where, NewFunc) = in addRecord() 108 if (NewFunc) { in addRecord()
|
/external/clang/lib/Sema/ |
D | SemaTemplateInstantiateDecl.cpp | 1361 const FunctionProtoType *NewFunc in adjustFunctionTypeForInstantiation() local 1363 if (OrigFunc->getExtInfo() == NewFunc->getExtInfo()) in adjustFunctionTypeForInstantiation() 1366 FunctionProtoType::ExtProtoInfo NewEPI = NewFunc->getExtProtoInfo(); in adjustFunctionTypeForInstantiation() 1368 return Context.getFunctionType(NewFunc->getReturnType(), in adjustFunctionTypeForInstantiation() 1369 NewFunc->getParamTypes(), NewEPI); in adjustFunctionTypeForInstantiation()
|