Home
last modified time | relevance | path

Searched refs:NewFunc (Results 1 – 19 of 19) sorted by relevance

/external/llvm/lib/Transforms/Utils/
DCloneFunction.cpp78 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()
125 NewFunc->addMetadata( in CloneFunctionInto()
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/
DCloneFunction.cpp84 void llvm::CloneFunctionInto(Function *NewFunc, const Function *OldFunc, in CloneFunctionInto() argument
100 AttributeList NewAttrs = NewFunc->getAttributes(); in CloneFunctionInto()
101 NewFunc->copyAttributesFrom(OldFunc); in CloneFunctionInto()
102 NewFunc->setAttributes(NewAttrs); in CloneFunctionInto()
106 NewFunc->setPersonalityFn( in CloneFunctionInto()
111 SmallVector<AttributeSet, 4> NewArgAttrs(NewFunc->arg_size()); in CloneFunctionInto()
122 NewFunc->setAttributes( in CloneFunctionInto()
123 AttributeList::get(NewFunc->getContext(), OldAttrs.getFnAttributes(), in CloneFunctionInto()
127 OldFunc->getParent() && OldFunc->getParent() == NewFunc->getParent(); in CloneFunctionInto()
146 NewFunc->addMetadata( in CloneFunctionInto()
[all …]
/external/llvm-project/llvm/lib/Transforms/Utils/
DCloneFunction.cpp81 void llvm::CloneFunctionInto(Function *NewFunc, const Function *OldFunc, in CloneFunctionInto() argument
97 AttributeList NewAttrs = NewFunc->getAttributes(); in CloneFunctionInto()
98 NewFunc->copyAttributesFrom(OldFunc); in CloneFunctionInto()
99 NewFunc->setAttributes(NewAttrs); in CloneFunctionInto()
103 NewFunc->setPersonalityFn( in CloneFunctionInto()
108 SmallVector<AttributeSet, 4> NewArgAttrs(NewFunc->arg_size()); in CloneFunctionInto()
119 NewFunc->setAttributes( in CloneFunctionInto()
120 AttributeList::get(NewFunc->getContext(), OldAttrs.getFnAttributes(), in CloneFunctionInto()
124 OldFunc->getParent() && OldFunc->getParent() == NewFunc->getParent(); in CloneFunctionInto()
160 BasicBlock *CBB = CloneBasicBlock(&BB, VMap, NameSuffix, NewFunc, CodeInfo, in CloneFunctionInto()
[all …]
DCodeExtractor.cpp1462 static void fixupDebugInfoPostExtraction(Function &OldFunc, Function &NewFunc, in fixupDebugInfoPostExtraction() argument
1469 stripDebugInfo(NewFunc); in fixupDebugInfoPostExtraction()
1471 eraseDebugIntrinsicsWithNonLocalRefs(NewFunc); in fixupDebugInfoPostExtraction()
1486 OldSP->getUnit(), NewFunc.getName(), NewFunc.getName(), OldSP->getFile(), in fixupDebugInfoPostExtraction()
1488 NewFunc.setSubprogram(NewSP); in fixupDebugInfoPostExtraction()
1498 for (Instruction &I : instructions(NewFunc)) { in fixupDebugInfoPostExtraction()
1527 if (LocationInst && LocationInst->getFunction() != &NewFunc) { in fixupDebugInfoPostExtraction()
1548 for (Instruction &I : instructions(NewFunc)) { in fixupDebugInfoPostExtraction()
1563 eraseDebugIntrinsicsWithNonLocalRefs(NewFunc); in fixupDebugInfoPostExtraction()
1781 const Function &NewFunc, in verifyAssumptionCache() argument
/external/llvm/unittests/Transforms/Utils/
DCloning.cpp277 NewFunc = CloneFunction(OldFunc, VMap, nullptr); in CreateNewFunc()
287 Function* NewFunc; member in __anond9ee711d0111::CloneFunc
294 EXPECT_NE(OldFunc, NewFunc); in TEST_F()
309 EXPECT_TRUE(Sub == NewFunc->getSubprogram()); in TEST_F()
319 inst_iterator NewIter = inst_begin(NewFunc); in TEST_F()
320 inst_iterator NewEnd = inst_end(NewFunc); in TEST_F()
339 EXPECT_EQ(NewFunc->getSubprogram(), NewSubprogram); in TEST_F()
356 inst_iterator NewIter = inst_begin(NewFunc); in TEST_F()
357 inst_iterator NewEnd = inst_end(NewFunc); in TEST_F()
369 EXPECT_EQ(NewFunc, cast<AllocaInst>(NewIntrin->getAddress())-> in TEST_F()
[all …]
/external/llvm-project/llvm/lib/Target/AMDGPU/
DAMDGPURewriteOutArguments.cpp364 Function *NewFunc = Function::Create(NewFuncTy, Function::PrivateLinkage, in runOnFunction() local
366 F.getParent()->getFunctionList().insert(F.getIterator(), NewFunc); in runOnFunction()
367 NewFunc->copyAttributesFrom(&F); in runOnFunction()
368 NewFunc->setComdat(F.getComdat()); in runOnFunction()
372 NewFunc->stealArgumentListFrom(F); in runOnFunction()
378 NewFunc->removeAttributes(AttributeList::ReturnIndex, RetAttrs); in runOnFunction()
383 NewFunc->getBasicBlockList().splice(NewFunc->begin(), F.getBasicBlockList()); in runOnFunction()
446 CallInst *StubCall = B.CreateCall(NewFunc, StubCallArgs); in runOnFunction()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DAMDGPURewriteOutArguments.cpp364 Function *NewFunc = Function::Create(NewFuncTy, Function::PrivateLinkage, in runOnFunction() local
366 F.getParent()->getFunctionList().insert(F.getIterator(), NewFunc); in runOnFunction()
367 NewFunc->copyAttributesFrom(&F); in runOnFunction()
368 NewFunc->setComdat(F.getComdat()); in runOnFunction()
372 NewFunc->stealArgumentListFrom(F); in runOnFunction()
378 NewFunc->removeAttributes(AttributeList::ReturnIndex, RetAttrs); in runOnFunction()
383 NewFunc->getBasicBlockList().splice(NewFunc->begin(), F.getBasicBlockList()); in runOnFunction()
446 CallInst *StubCall = B.CreateCall(NewFunc, StubCallArgs); in runOnFunction()
/external/llvm/lib/Target/AMDGPU/
DAMDGPUAlwaysInlinePass.cpp48 Function *NewFunc = CloneFunction(F, VMap); in runOnModule() local
49 NewFunc->setLinkage(GlobalValue::InternalLinkage); in runOnModule()
50 F->replaceAllUsesWith(NewFunc); in runOnModule()
/external/llvm-project/llvm/unittests/Transforms/Utils/
DCloningTest.cpp537 NewFunc = CloneFunction(OldFunc, VMap, nullptr); in CreateNewFunc()
547 Function* NewFunc; member in __anon375186cb0111::CloneFunc
554 EXPECT_NE(OldFunc, NewFunc); in TEST_F()
562 EXPECT_NE(NewFunc->getSubprogram(), OldFunc->getSubprogram()); in TEST_F()
572 inst_iterator NewIter = inst_begin(NewFunc); in TEST_F()
573 inst_iterator NewEnd = inst_end(NewFunc); in TEST_F()
592 EXPECT_EQ(NewFunc->getSubprogram(), NewSubprogram); in TEST_F()
609 inst_iterator NewIter = inst_begin(NewFunc); in TEST_F()
610 inst_iterator NewEnd = inst_end(NewFunc); in TEST_F()
622 EXPECT_EQ(NewFunc, cast<AllocaInst>(NewIntrin->getAddress())-> 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.h146 const Function &NewFunc,
/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/llvm-project/llvm/lib/ProfileData/
DInstrProfWriter.cpp207 bool NewFunc; in overlapRecord() local
209 std::tie(Where, NewFunc) = in overlapRecord()
211 if (NewFunc) { in overlapRecord()
230 bool NewFunc; in addRecord() local
232 std::tie(Where, NewFunc) = in addRecord()
240 if (NewFunc) { in addRecord()
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ProfileData/
DInstrProfWriter.cpp206 bool NewFunc; in overlapRecord() local
208 std::tie(Where, NewFunc) = in overlapRecord()
210 if (NewFunc) { in overlapRecord()
229 bool NewFunc; in addRecord() local
231 std::tie(Where, NewFunc) = in addRecord()
239 if (NewFunc) { in addRecord()
/external/llvm/lib/ProfileData/
DInstrProfWriter.cpp162 bool NewFunc; in addRecord() local
164 std::tie(Where, NewFunc) = in addRecord()
168 if (NewFunc) { in addRecord()
/external/swiftshader/third_party/subzero/src/
DIceASanInstrumentation.cpp354 Constant *NewFunc = Ctx->getConstantExternSym(Ctx->getGlobalString(SubName)); in instrumentCall() local
357 Instr->getDest(), NewFunc, Instr->isTailcall()); in instrumentCall()
/external/clang/lib/Sema/
DSemaTemplateInstantiateDecl.cpp1468 const FunctionProtoType *NewFunc in adjustFunctionTypeForInstantiation() local
1470 if (OrigFunc->getExtInfo() == NewFunc->getExtInfo()) in adjustFunctionTypeForInstantiation()
1473 FunctionProtoType::ExtProtoInfo NewEPI = NewFunc->getExtProtoInfo(); in adjustFunctionTypeForInstantiation()
1475 return Context.getFunctionType(NewFunc->getReturnType(), in adjustFunctionTypeForInstantiation()
1476 NewFunc->getParamTypes(), NewEPI); in adjustFunctionTypeForInstantiation()
/external/llvm-project/clang/lib/Sema/
DSemaTemplateInstantiateDecl.cpp1856 const FunctionProtoType *NewFunc in adjustFunctionTypeForInstantiation() local
1858 if (OrigFunc->getExtInfo() == NewFunc->getExtInfo()) in adjustFunctionTypeForInstantiation()
1861 FunctionProtoType::ExtProtoInfo NewEPI = NewFunc->getExtProtoInfo(); in adjustFunctionTypeForInstantiation()
1863 return Context.getFunctionType(NewFunc->getReturnType(), in adjustFunctionTypeForInstantiation()
1864 NewFunc->getParamTypes(), NewEPI); in adjustFunctionTypeForInstantiation()