/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | AMDGPUPropagateAttributes.cpp | 60 Clone(FeatureBitset FeatureMask, Function *OrigF, Function *NewF) : in Clone() argument 61 FeatureMask(FeatureMask), OrigF(OrigF), NewF(NewF) {} in Clone() 65 Function *NewF; member in __anonf364f8660111::AMDGPUPropagateAttributes::Clone 163 return C.NewF; in findFunction() 223 Function *NewF = findFunction(CallerBits, &F); in process() local 224 if (!NewF) { in process() 238 NewF = cloneWithFeatures(F, NewFeatures); in process() 239 Clones.push_back(Clone(CallerBits, &F, NewF)); in process() 240 NewRoots.insert(NewF); in process() 243 ToReplace.push_back(std::make_pair(CI, NewF)); in process() [all …]
|
D | R600OpenCLImageTypeLoweringPass.cpp | 306 auto NewF = Function::Create(NewFT, F->getLinkage(), F->getName()); in addImplicitArgs() local 308 auto NewFArgIt = NewF->arg_begin(); in addImplicitArgs() 319 CloneFunctionInto(NewF, F, VMap, /*ModuleLevelChanges=*/false, Returns); in addImplicitArgs() 323 KernelMDArgs.push_back(ConstantAsMetadata::get(NewF)); in addImplicitArgs() 328 return std::make_tuple(NewF, NewMDNode); in addImplicitArgs() 343 Function *NewF; in transformKernels() local 345 std::tie(NewF, NewMDNode) = addImplicitArgs(F, KernelMDNode); in transformKernels() 346 if (NewF) { in transformKernels() 349 M.getFunctionList().push_back(NewF); in transformKernels() 350 M.getOrInsertFunction(NewF->getName(), NewF->getFunctionType(), in transformKernels() [all …]
|
/external/llvm-project/llvm/lib/Target/AMDGPU/ |
D | AMDGPUPropagateAttributes.cpp | 106 Clone(const FnProperties &Props, Function *OrigF, Function *NewF) : in Clone() argument 107 Properties(Props), OrigF(OrigF), NewF(NewF) {} in Clone() 111 Function *NewF; member in __anon723adf720111::AMDGPUPropagateAttributes::Clone 211 return C.NewF; in findFunction() 271 Function *NewF = findFunction(CallerProps, &F); in process() local 272 if (!NewF) { in process() 286 NewF = cloneWithProperties(F, NewProps); in process() 287 Clones.push_back(Clone(CallerProps, &F, NewF)); in process() 288 NewRoots.insert(NewF); in process() 291 ToReplace.push_back(std::make_pair(CI, NewF)); in process() [all …]
|
D | R600OpenCLImageTypeLoweringPass.cpp | 306 auto NewF = Function::Create(NewFT, F->getLinkage(), F->getName()); in addImplicitArgs() local 308 auto NewFArgIt = NewF->arg_begin(); in addImplicitArgs() 319 CloneFunctionInto(NewF, F, VMap, /*ModuleLevelChanges=*/false, Returns); in addImplicitArgs() 323 KernelMDArgs.push_back(ConstantAsMetadata::get(NewF)); in addImplicitArgs() 328 return std::make_tuple(NewF, NewMDNode); in addImplicitArgs() 343 Function *NewF; in transformKernels() local 345 std::tie(NewF, NewMDNode) = addImplicitArgs(F, KernelMDNode); in transformKernels() 346 if (NewF) { in transformKernels() 349 M.getFunctionList().push_back(NewF); in transformKernels() 350 M.getOrInsertFunction(NewF->getName(), NewF->getFunctionType(), in transformKernels() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyAddMissingPrototypes.cpp | 125 Function *NewF = in runOnModule() local 127 NewF->setAttributes(F.getAttributes()); in runOnModule() 128 NewF->removeFnAttr("no-prototype"); in runOnModule() 129 Replacements.emplace_back(&F, NewF); in runOnModule() 134 Function *NewF = Pair.second; in runOnModule() local 136 M.getFunctionList().push_back(NewF); in runOnModule() 138 ConstantExpr::getPointerBitCastOrAddrSpaceCast(NewF, OldF->getType())); in runOnModule() 140 NewF->setName(Name); in runOnModule()
|
/external/llvm-project/llvm/lib/Target/WebAssembly/ |
D | WebAssemblyAddMissingPrototypes.cpp | 125 Function *NewF = in runOnModule() local 127 NewF->setAttributes(F.getAttributes()); in runOnModule() 128 NewF->removeFnAttr("no-prototype"); in runOnModule() 129 Replacements.emplace_back(&F, NewF); in runOnModule() 134 Function *NewF = Pair.second; in runOnModule() local 136 M.getFunctionList().push_back(NewF); in runOnModule() 138 ConstantExpr::getPointerBitCastOrAddrSpaceCast(NewF, OldF->getType())); in runOnModule() 140 NewF->setName(Name); in runOnModule()
|
/external/llvm/lib/ExecutionEngine/Orc/ |
D | IndirectionUtils.cpp | 167 Function *NewF = in cloneFunctionDecl() local 170 NewF->copyAttributesFrom(&F); in cloneFunctionDecl() 173 (*VMap)[&F] = NewF; in cloneFunctionDecl() 174 auto NewArgI = NewF->arg_begin(); in cloneFunctionDecl() 180 return NewF; in cloneFunctionDecl() 185 Function *NewF) { in moveFunctionBody() argument 187 if (!NewF) in moveFunctionBody() 188 NewF = cast<Function>(VMap[&OrigF]); in moveFunctionBody() 190 assert(VMap[&OrigF] == NewF && "Incorrect function mapping in VMap."); in moveFunctionBody() 191 assert(NewF && "Function mapping missing from VMap."); in moveFunctionBody() [all …]
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUOpenCLImageTypeLoweringPass.cpp | 290 auto NewF = Function::Create(NewFT, F->getLinkage(), F->getName()); in addImplicitArgs() local 292 auto NewFArgIt = NewF->arg_begin(); in addImplicitArgs() 303 CloneFunctionInto(NewF, F, VMap, /*ModuleLevelChanges=*/false, Returns); in addImplicitArgs() 307 KernelMDArgs.push_back(ConstantAsMetadata::get(NewF)); in addImplicitArgs() 312 return std::make_tuple(NewF, NewMDNode); in addImplicitArgs() 327 Function *NewF; in transformKernels() local 329 std::tie(NewF, NewMDNode) = addImplicitArgs(F, KernelMDNode); in transformKernels() 330 if (NewF) { in transformKernels() 333 M.getFunctionList().push_back(NewF); in transformKernels() 334 M.getOrInsertFunction(NewF->getName(), NewF->getFunctionType(), in transformKernels() [all …]
|
D | SITypeRewriter.cpp | 133 Function *NewF = Mod->getFunction(Name); in visitCallInst() local 134 if (!NewF) { in visitCallInst() 135 …NewF = Function::Create(FunctionType::get(F->getReturnType(), Types, false), GlobalValue::External… in visitCallInst() 136 NewF->setAttributes(F->getAttributes()); in visitCallInst() 138 I.replaceAllUsesWith(Builder.CreateCall(NewF, Args)); in visitCallInst()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Coroutines/ |
D | CoroSplit.cpp | 95 Function *NewF; member in __anon598121120111::CoroCloner 111 : OrigF(OrigF), NewF(nullptr), Suffix(Suffix), Shape(Shape), in CoroCloner() 118 Function *NewF, AnyCoroSuspendInst *ActiveSuspend) in CoroCloner() argument 119 : OrigF(OrigF), NewF(NewF), Suffix(Suffix), Shape(Shape), in CoroCloner() 124 assert(NewF && "need existing function for continuation"); in CoroCloner() 129 assert(NewF != nullptr && "declaration not yet set"); in getFunction() 130 return NewF; in getFunction() 401 Function *NewF = in createCloneDeclaration() local 404 NewF->addParamAttr(0, Attribute::NonNull); in createCloneDeclaration() 405 NewF->addParamAttr(0, Attribute::NoAlias); in createCloneDeclaration() [all …]
|
/external/llvm-project/llvm/lib/ExecutionEngine/Orc/ |
D | IndirectionUtils.cpp | 289 Function *NewF = in cloneFunctionDecl() local 292 NewF->copyAttributesFrom(&F); in cloneFunctionDecl() 295 (*VMap)[&F] = NewF; in cloneFunctionDecl() 296 auto NewArgI = NewF->arg_begin(); in cloneFunctionDecl() 302 return NewF; in cloneFunctionDecl() 307 Function *NewF) { in moveFunctionBody() argument 309 if (!NewF) in moveFunctionBody() 310 NewF = cast<Function>(VMap[&OrigF]); in moveFunctionBody() 312 assert(VMap[&OrigF] == NewF && "Incorrect function mapping in VMap."); in moveFunctionBody() 313 assert(NewF && "Function mapping missing from VMap."); in moveFunctionBody() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/Orc/ |
D | IndirectionUtils.cpp | 291 Function *NewF = in cloneFunctionDecl() local 294 NewF->copyAttributesFrom(&F); in cloneFunctionDecl() 297 (*VMap)[&F] = NewF; in cloneFunctionDecl() 298 auto NewArgI = NewF->arg_begin(); in cloneFunctionDecl() 304 return NewF; in cloneFunctionDecl() 309 Function *NewF) { in moveFunctionBody() argument 311 if (!NewF) in moveFunctionBody() 312 NewF = cast<Function>(VMap[&OrigF]); in moveFunctionBody() 314 assert(VMap[&OrigF] == NewF && "Incorrect function mapping in VMap."); in moveFunctionBody() 315 assert(NewF && "Function mapping missing from VMap."); in moveFunctionBody() [all …]
|
/external/llvm-project/llvm/lib/Transforms/Coroutines/ |
D | CoroSplit.cpp | 100 Function *NewF; member in __anon4516bc1e0111::CoroCloner 116 : OrigF(OrigF), NewF(nullptr), Suffix(Suffix), Shape(Shape), in CoroCloner() 123 Function *NewF, AnyCoroSuspendInst *ActiveSuspend) in CoroCloner() argument 124 : OrigF(OrigF), NewF(NewF), Suffix(Suffix), Shape(Shape), in CoroCloner() 129 assert(NewF && "need existing function for continuation"); in CoroCloner() 134 assert(NewF != nullptr && "declaration not yet set"); in getFunction() 135 return NewF; in getFunction() 412 Function *NewF = in createCloneDeclaration() local 415 NewF->addParamAttr(0, Attribute::NonNull); in createCloneDeclaration() 420 NewF->addParamAttr(0, Attribute::NoAlias); in createCloneDeclaration() [all …]
|
/external/llvm-project/llvm/tools/llvm-reduce/deltas/ |
D | ReduceArguments.cpp | 23 static void replaceFunctionCalls(Function &OldF, Function &NewF, in replaceFunctionCalls() argument 33 CallInst *NewCI = CallInst::Create(&NewF, Args); in replaceFunctionCalls() 34 NewCI->setCallingConv(NewF.getCallingConv()); in replaceFunctionCalls()
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | DataFlowSanitizer.cpp | 538 Function *NewF = Function::Create(NewFT, NewFLink, NewFName, in buildWrapperFunction() local 540 NewF->copyAttributesFrom(F); in buildWrapperFunction() 541 NewF->removeAttributes( in buildWrapperFunction() 546 BasicBlock *BB = BasicBlock::Create(*Ctx, "entry", NewF); in buildWrapperFunction() 548 NewF->removeAttributes( in buildWrapperFunction() 559 for (Function::arg_iterator ai = NewF->arg_begin(); n != 0; ++ai, --n) in buildWrapperFunction() 568 return NewF; in buildWrapperFunction() 687 Function *NewF = in runOnModule() local 689 GA->replaceAllUsesWith(ConstantExpr::getBitCast(NewF, GA->getType())); in runOnModule() 690 NewF->takeName(GA); in runOnModule() [all …]
|
/external/llvm-project/llvm/lib/Transforms/Instrumentation/ |
D | DataFlowSanitizer.cpp | 714 Function *NewF = Function::Create(NewFT, NewFLink, F->getAddressSpace(), in buildWrapperFunction() local 716 NewF->copyAttributesFrom(F); in buildWrapperFunction() 717 NewF->removeAttributes( in buildWrapperFunction() 721 BasicBlock *BB = BasicBlock::Create(*Ctx, "entry", NewF); in buildWrapperFunction() 723 NewF->removeAttributes(AttributeList::FunctionIndex, in buildWrapperFunction() 732 for (Function::arg_iterator ai = NewF->arg_begin(); n != 0; ++ai, --n) in buildWrapperFunction() 741 return NewF; in buildWrapperFunction() 917 Function *NewF = in runImpl() local 919 GA->replaceAllUsesWith(ConstantExpr::getBitCast(NewF, GA->getType())); in runImpl() 920 NewF->takeName(GA); in runImpl() [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/ |
D | DataFlowSanitizer.cpp | 654 Function *NewF = Function::Create(NewFT, NewFLink, F->getAddressSpace(), in buildWrapperFunction() local 656 NewF->copyAttributesFrom(F); in buildWrapperFunction() 657 NewF->removeAttributes( in buildWrapperFunction() 661 BasicBlock *BB = BasicBlock::Create(*Ctx, "entry", NewF); in buildWrapperFunction() 663 NewF->removeAttributes(AttributeList::FunctionIndex, in buildWrapperFunction() 672 for (Function::arg_iterator ai = NewF->arg_begin(); n != 0; ++ai, --n) in buildWrapperFunction() 681 return NewF; in buildWrapperFunction() 815 Function *NewF = in runOnModule() local 817 GA->replaceAllUsesWith(ConstantExpr::getBitCast(NewF, GA->getType())); in runOnModule() 818 NewF->takeName(GA); in runOnModule() [all …]
|
/external/llvm-project/clang/lib/Basic/Targets/ |
D | AMDGPU.cpp | 377 std::string NewF = F.str(); in getTargetDefines() local 378 std::replace(NewF.begin(), NewF.end(), '-', '_'); in getTargetDefines() 379 Builder.defineMacro(Twine("__amdgcn_feature_") + Twine(NewF) + in getTargetDefines()
|
/external/llvm/tools/bugpoint/ |
D | Miscompilation.cpp | 397 Function *NewF = ToNotOptimize->getFunction(MisCompFunctions[i].first); in ExtractLoops() local 399 assert(NewF && "Function not found??"); in ExtractLoops() 400 MiscompiledFunctions.push_back(NewF); in ExtractLoops() 427 Function *NewF = ToNotOptimize->getFunction(MisCompFunctions[i].first); in ExtractLoops() local 429 assert(NewF && "Function not found??"); in ExtractLoops() 430 MiscompiledFunctions.push_back(NewF); in ExtractLoops() 597 Function *NewF = ProgClone->getFunction(MisCompFunctions[i].first); in ExtractBlocks() local 598 assert(NewF && "Function not found??"); in ExtractBlocks() 599 MiscompiledFunctions.push_back(NewF); in ExtractBlocks()
|
/external/llvm-project/llvm/tools/bugpoint/ |
D | Miscompilation.cpp | 402 Function *NewF = ToNotOptimize->getFunction(MisCompFunctions[i].first); in ExtractLoops() local 404 assert(NewF && "Function not found??"); in ExtractLoops() 405 MiscompiledFunctions.push_back(NewF); in ExtractLoops() 434 Function *NewF = ToNotOptimize->getFunction(MisCompFunctions[i].first); in ExtractLoops() local 436 assert(NewF && "Function not found??"); in ExtractLoops() 437 MiscompiledFunctions.push_back(NewF); in ExtractLoops() 601 Function *NewF = ProgClone->getFunction(MisCompFunctions[i].first); in ExtractBlocks() local 602 assert(NewF && "Function not found??"); in ExtractBlocks() 603 MiscompiledFunctions.push_back(NewF); in ExtractBlocks()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopStrengthReduce.cpp | 3746 Formula NewF = F; in GenerateCrossUseConstantOffsets() local 3747 NewF.BaseOffset = Offset; in GenerateCrossUseConstantOffsets() 3749 NewF)) in GenerateCrossUseConstantOffsets() 3751 NewF.ScaledReg = SE.getAddExpr(NegImmS, NewF.ScaledReg); in GenerateCrossUseConstantOffsets() 3756 if (const SCEVConstant *C = dyn_cast<SCEVConstant>(NewF.ScaledReg)) in GenerateCrossUseConstantOffsets() 3757 if (C->getValue()->isNegative() != (NewF.BaseOffset < 0) && in GenerateCrossUseConstantOffsets() 3759 .ule(std::abs(NewF.BaseOffset))) in GenerateCrossUseConstantOffsets() 3763 NewF.canonicalize(); in GenerateCrossUseConstantOffsets() 3764 (void)InsertFormula(LU, LUIdx, NewF); in GenerateCrossUseConstantOffsets() 3771 Formula NewF = F; in GenerateCrossUseConstantOffsets() local [all …]
|
/external/llvm-project/llvm/lib/Transforms/IPO/ |
D | MergeFunctions.cpp | 813 Function *NewF = Function::Create(F->getFunctionType(), F->getLinkage(), in mergeTwoFunctions() local 815 NewF->copyAttributesFrom(F); in mergeTwoFunctions() 816 NewF->takeName(F); in mergeTwoFunctions() 818 F->replaceAllUsesWith(NewF); in mergeTwoFunctions() 820 MaybeAlign MaxAlignment(std::max(G->getAlignment(), NewF->getAlignment())); in mergeTwoFunctions() 823 writeThunkOrAlias(F, NewF); in mergeTwoFunctions()
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/ |
D | MergeFunctions.cpp | 814 Function *NewF = Function::Create(F->getFunctionType(), F->getLinkage(), in mergeTwoFunctions() local 816 NewF->copyAttributesFrom(F); in mergeTwoFunctions() 817 NewF->takeName(F); in mergeTwoFunctions() 819 F->replaceAllUsesWith(NewF); in mergeTwoFunctions() 821 MaybeAlign MaxAlignment(std::max(G->getAlignment(), NewF->getAlignment())); in mergeTwoFunctions() 824 writeThunkOrAlias(F, NewF); in mergeTwoFunctions()
|
/external/llvm-project/llvm/lib/Transforms/Scalar/ |
D | LoopStrengthReduce.cpp | 4215 Formula NewF = F; in GenerateCrossUseConstantOffsets() local 4216 NewF.BaseOffset = Offset; in GenerateCrossUseConstantOffsets() 4218 NewF)) in GenerateCrossUseConstantOffsets() 4220 NewF.ScaledReg = SE.getAddExpr(NegImmS, NewF.ScaledReg); in GenerateCrossUseConstantOffsets() 4225 if (const SCEVConstant *C = dyn_cast<SCEVConstant>(NewF.ScaledReg)) in GenerateCrossUseConstantOffsets() 4226 if (C->getValue()->isNegative() != (NewF.BaseOffset < 0) && in GenerateCrossUseConstantOffsets() 4228 .ule(std::abs(NewF.BaseOffset))) in GenerateCrossUseConstantOffsets() 4232 NewF.canonicalize(*this->L); in GenerateCrossUseConstantOffsets() 4233 (void)InsertFormula(LU, LUIdx, NewF); in GenerateCrossUseConstantOffsets() 4240 Formula NewF = F; in GenerateCrossUseConstantOffsets() local [all …]
|
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | LoopStrengthReduce.cpp | 4210 Formula NewF = F; in GenerateCrossUseConstantOffsets() local 4211 NewF.BaseOffset = Offset; in GenerateCrossUseConstantOffsets() 4213 NewF)) in GenerateCrossUseConstantOffsets() 4215 NewF.ScaledReg = SE.getAddExpr(NegImmS, NewF.ScaledReg); in GenerateCrossUseConstantOffsets() 4220 if (const SCEVConstant *C = dyn_cast<SCEVConstant>(NewF.ScaledReg)) in GenerateCrossUseConstantOffsets() 4221 if (C->getValue()->isNegative() != (NewF.BaseOffset < 0) && in GenerateCrossUseConstantOffsets() 4223 .ule(std::abs(NewF.BaseOffset))) in GenerateCrossUseConstantOffsets() 4227 NewF.canonicalize(*this->L); in GenerateCrossUseConstantOffsets() 4228 (void)InsertFormula(LU, LUIdx, NewF); in GenerateCrossUseConstantOffsets() 4235 Formula NewF = F; in GenerateCrossUseConstantOffsets() local [all …]
|