/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() 125 NewFunc->addMetadata( in CloneFunctionInto() [all …]
|
/external/swiftshader/third_party/LLVM/lib/Transforms/Utils/ |
D | CloneFunction.cpp | 74 void llvm::CloneFunctionInto(Function *NewFunc, const Function *OldFunc, in CloneFunctionInto() argument 88 if (NewFunc->arg_size() == OldFunc->arg_size()) in CloneFunctionInto() 89 NewFunc->copyAttributesFrom(OldFunc); in CloneFunctionInto() 97 NewFunc->setAttributes(NewFunc->getAttributes() in CloneFunctionInto() 100 NewFunc->setAttributes(NewFunc->getAttributes() in CloneFunctionInto() 115 BasicBlock *CBB = CloneBasicBlock(&BB, VMap, NameSuffix, NewFunc, CodeInfo); in CloneFunctionInto() 125 BE = NewFunc->end(); BB != BE; ++BB) in CloneFunctionInto() 180 Function *NewFunc; member 196 : NewFunc(newFunc), OldFunc(oldFunc), in PruningFunctionCloner() 347 void llvm::CloneAndPruneFunctionInto(Function *NewFunc, const Function *OldFunc, in CloneAndPruneFunctionInto() argument [all …]
|
/external/llvm/unittests/Transforms/Utils/ |
D | Cloning.cpp | 277 NewFunc = CloneFunction(OldFunc, VMap, nullptr); in CreateNewFunc() 287 Function* NewFunc; member in __anona45edef30111::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/lib/Target/AMDGPU/ |
D | AMDGPUAlwaysInlinePass.cpp | 48 Function *NewFunc = CloneFunction(F, VMap); in runOnModule() local 49 NewFunc->setLinkage(GlobalValue::InternalLinkage); in runOnModule() 50 F->replaceAllUsesWith(NewFunc); in runOnModule()
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | Cloning.h | 141 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/ |
D | Cloning.h | 143 void CloneFunctionInto(Function *NewFunc, const Function *OldFunc, 161 void CloneAndPruneFunctionInto(Function *NewFunc, const Function *OldFunc,
|
/external/llvm/lib/ProfileData/ |
D | InstrProfWriter.cpp | 162 bool NewFunc; in addRecord() local 164 std::tie(Where, NewFunc) = in addRecord() 168 if (NewFunc) { in addRecord()
|
/external/swiftshader/third_party/subzero/src/ |
D | IceASanInstrumentation.cpp | 354 Constant *NewFunc = Ctx->getConstantExternSym(Ctx->getGlobalString(SubName)); in instrumentCall() local 357 Instr->getDest(), NewFunc, Instr->isTailcall()); in instrumentCall()
|
/external/clang/lib/Sema/ |
D | SemaTemplateInstantiateDecl.cpp | 1468 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()
|