/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-7.0/llvm/lib/Transforms/Utils/ |
D | CloneFunction.cpp | 84 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/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 __anon13ab407f0111::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/swiftshader/third_party/llvm-7.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPURewriteOutArguments.cpp | 364 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/ |
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/swiftshader/third_party/llvm-7.0/llvm/unittests/Transforms/Utils/ |
D | Cloning.cpp | 443 NewFunc = CloneFunction(OldFunc, VMap, nullptr); in CreateNewFunc() 453 Function* NewFunc; member in __anon8541a5d70111::CloneFunc 460 EXPECT_NE(OldFunc, NewFunc); in TEST_F() 468 EXPECT_NE(NewFunc->getSubprogram(), OldFunc->getSubprogram()); in TEST_F() 478 inst_iterator NewIter = inst_begin(NewFunc); in TEST_F() 479 inst_iterator NewEnd = inst_end(NewFunc); in TEST_F() 498 EXPECT_EQ(NewFunc->getSubprogram(), NewSubprogram); in TEST_F() 515 inst_iterator NewIter = inst_begin(NewFunc); in TEST_F() 516 inst_iterator NewEnd = inst_end(NewFunc); in TEST_F() 528 EXPECT_EQ(NewFunc, cast<AllocaInst>(NewIntrin->getAddress())-> in TEST_F() [all …]
|
/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-7.0/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/llvm-7.0/llvm/lib/ProfileData/ |
D | InstrProfWriter.cpp | 192 bool NewFunc; in addRecord() local 194 std::tie(Where, NewFunc) = in addRecord() 202 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()
|