/external/llvm/lib/Transforms/Utils/ |
D | CloneFunction.cpp | 40 ValueToValueMapTy &VMap, in CloneBasicBlock() argument 55 VMap[&*II] = NewInst; // Add instruction map to value. in CloneBasicBlock() 79 ValueToValueMapTy &VMap, in CloneFunctionInto() argument 89 assert(VMap.count(&I) && "No mapping from source argument specified!"); in CloneFunctionInto() 101 MapValue(OldFunc->getPersonalityFn(), VMap, in CloneFunctionInto() 108 if (Argument *NewArg = dyn_cast<Argument>(VMap[&OldArg])) { in CloneFunctionInto() 131 BasicBlock *CBB = CloneBasicBlock(&BB, VMap, NameSuffix, NewFunc, CodeInfo); in CloneFunctionInto() 134 VMap[&BB] = CBB; in CloneFunctionInto() 145 VMap[OldBBAddr] = BlockAddress::get(NewFunc, CBB); in CloneFunctionInto() 156 cast<BasicBlock>(VMap[&OldFunc->front()])->getIterator(), in CloneFunctionInto() [all …]
|
D | CloneModule.cpp | 30 ValueToValueMapTy VMap; in CloneModule() local 31 return CloneModule(M, VMap); in CloneModule() 35 ValueToValueMapTy &VMap) { in CloneModule() argument 36 return CloneModule(M, VMap, [](const GlobalValue *GV) { return true; }); in CloneModule() 40 const Module *M, ValueToValueMapTy &VMap, in CloneModule() argument 63 VMap[&*I] = GV; in CloneModule() 72 VMap[&*I] = NF; in CloneModule() 93 VMap[&*I] = GV; in CloneModule() 103 VMap[&*I] = GA; in CloneModule() 112 GlobalVariable *GV = cast<GlobalVariable>(VMap[&*I]); in CloneModule() [all …]
|
D | LoopUnrollRuntime.cpp | 65 ValueToValueMapTy &VMap, DominatorTree *DT, in ConnectProlog() argument 95 V = VMap[I]; in ConnectProlog() 145 LoopBlocksDFS &LoopBlocks, ValueToValueMapTy &VMap, in CloneLoopBlocks() argument 166 BasicBlock *NewBB = CloneBasicBlock(*BB, VMap, ".prol", F); in CloneLoopBlocks() 174 VMap[*BB] = NewBB; in CloneLoopBlocks() 184 VMap.erase((*BB)->getTerminator()); in CloneLoopBlocks() 185 BasicBlock *FirstLoopBB = cast<BasicBlock>(VMap[Header]); in CloneLoopBlocks() 209 PHINode *NewPHI = cast<PHINode>(VMap[&*I]); in CloneLoopBlocks() 211 VMap[&*I] = NewPHI->getIncomingValueForBlock(Preheader); in CloneLoopBlocks() 212 cast<BasicBlock>(VMap[Header])->getInstList().erase(NewPHI); in CloneLoopBlocks() [all …]
|
D | LoopUnroll.cpp | 50 ValueToValueMapTy &VMap) { in RemapInstruction() argument 53 ValueToValueMapTy::iterator It = VMap.find(Op); in RemapInstruction() 54 if (It != VMap.end()) in RemapInstruction() 60 ValueToValueMapTy::iterator It = VMap.find(PN->getIncomingBlock(i)); in RemapInstruction() 61 if (It != VMap.end()) in RemapInstruction() 317 ValueToValueMapTy VMap; in UnrollLoop() local 318 BasicBlock *New = CloneBasicBlock(*BB, VMap, "." + Twine(It)); in UnrollLoop() 353 PHINode *NewPHI = cast<PHINode>(VMap[OrigPHINode[i]]); in UnrollLoop() 358 VMap[OrigPHINode[i]] = InVal; in UnrollLoop() 364 for (ValueToValueMapTy::iterator VI = VMap.begin(), VE = VMap.end(); in UnrollLoop()
|
D | LoopVersioning.cpp | 99 cloneLoopWithPreheader(PH, RuntimeCheckBB, VersionedLoop, VMap, in versionLoop() 101 remapInstructionsInBlocks(NonVersionedLoopBlocks, VMap); in versionLoop() 124 auto *NonVersionedLoopInst = cast<Instruction>(VMap[Inst]); in addPHINodes()
|
D | SplitModule.cpp | 76 ValueToValueMapTy VMap; in SplitModule() local 78 CloneModule(M.get(), VMap, [=](const GlobalValue *GV) { in SplitModule()
|
D | InlineFunction.cpp | 392 static void CloneAliasScopeMetadata(CallSite CS, ValueToValueMapTy &VMap) { in CloneAliasScopeMetadata() argument 457 for (ValueToValueMapTy::iterator VMI = VMap.begin(), VMIE = VMap.end(); in CloneAliasScopeMetadata() 501 static void AddAliasScopeMetadata(CallSite CS, ValueToValueMapTy &VMap, in AddAliasScopeMetadata() argument 555 for (ValueToValueMapTy::iterator VMI = VMap.begin(), VMIE = VMap.end(); in AddAliasScopeMetadata() 768 ValueToValueMapTy &VMap, in UpdateCallGraphAfterInlining() argument 791 ValueToValueMapTy::iterator VMI = VMap.find(OrigCall); in UpdateCallGraphAfterInlining() 793 if (VMI == VMap.end() || VMI->second == nullptr) in UpdateCallGraphAfterInlining() 1141 ValueToValueMapTy VMap; in InlineFunction() local 1169 VMap[&*I] = ActualArg; in InlineFunction() 1181 CloneAndPruneFunctionInto(Caller, CalledFunc, VMap, in InlineFunction() [all …]
|
D | ValueMapper.cpp | 424 void llvm::RemapInstruction(Instruction *I, ValueToValueMapTy &VMap, in RemapInstruction() argument 429 Value *V = MapValue(*op, VMap, Flags, TypeMapper, Materializer); in RemapInstruction() 441 Value *V = MapValue(PN->getIncomingBlock(i), VMap, Flags); in RemapInstruction() 456 MDNode *New = MapMetadata(Old, VMap, Flags, TypeMapper, Materializer); in RemapInstruction()
|
/external/llvm/lib/ExecutionEngine/Orc/ |
D | IndirectionUtils.cpp | 116 ValueToValueMapTy *VMap) { in cloneFunctionDecl() argument 123 if (VMap) { in cloneFunctionDecl() 124 (*VMap)[&F] = NewF; in cloneFunctionDecl() 128 (*VMap)[&*ArgI] = &*NewArgI; in cloneFunctionDecl() 134 void moveFunctionBody(Function &OrigF, ValueToValueMapTy &VMap, in moveFunctionBody() argument 139 NewF = cast<Function>(VMap[&OrigF]); in moveFunctionBody() 141 assert(VMap[&OrigF] == NewF && "Incorrect function mapping in VMap."); in moveFunctionBody() 148 CloneFunctionInto(NewF, &OrigF, VMap, /*ModuleLevelChanges=*/true, Returns, in moveFunctionBody() 154 ValueToValueMapTy *VMap) { in cloneGlobalVariableDecl() argument 161 if (VMap) in cloneGlobalVariableDecl() [all …]
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | Cloning.h | 54 std::unique_ptr<Module> CloneModule(const Module *M, ValueToValueMapTy &VMap); 61 CloneModule(const Module *M, ValueToValueMapTy &VMap, 113 BasicBlock *CloneBasicBlock(const BasicBlock *BB, ValueToValueMapTy &VMap, 129 Function *CloneFunction(const Function *F, ValueToValueMapTy &VMap, 143 ValueToValueMapTy &VMap, bool ModuleLevelChanges, 170 virtual CloningAction handleInstruction(ValueToValueMapTy &VMap, 180 ValueToValueMapTy &VMap, bool ModuleLevelChanges, 199 ValueToValueMapTy &VMap, bool ModuleLevelChanges, 255 Loop *OrigLoop, ValueToValueMapTy &VMap, 262 ValueToValueMapTy &VMap);
|
D | LoopVersioning.h | 98 ValueToValueMapTy VMap; variable
|
/external/llvm/tools/bugpoint/ |
D | Miscompilation.cpp | 256 ValueToValueMapTy VMap; in TestFuncs() local 257 Module *Clone = CloneModule(BD.getProgram(), VMap).release(); in TestFuncs() 262 Function *F = cast<Function>(VMap[Funcs[i]]); in TestFuncs() 267 VMap.clear(); in TestFuncs() 268 std::unique_ptr<Module> ToNotOptimize = CloneModule(BD.getProgram(), VMap); in TestFuncs() 270 SplitFunctionsOutOfModule(ToNotOptimize.get(), FuncsOnClone, VMap); in TestFuncs() 305 ValueToValueMapTy VMap; in ExtractLoops() local 306 std::unique_ptr<Module> ToNotOptimize = CloneModule(BD.getProgram(), VMap); in ExtractLoops() 308 MiscompiledFunctions, VMap) in ExtractLoops() 337 MiscompiledFunctions[i] = cast<Function>(VMap[MiscompiledFunctions[i]]); in ExtractLoops() [all …]
|
D | CrashDebugger.cpp | 145 ValueToValueMapTy VMap; in TestGlobalVariables() local 146 Module *M = CloneModule(BD.getProgram(), VMap).release(); in TestGlobalVariables() 152 GlobalVariable* CMGV = cast<GlobalVariable>(VMap[GVs[i]]); in TestGlobalVariables() 241 ValueToValueMapTy VMap; in TestFuncs() local 242 Module *M = CloneModule(BD.getProgram(), VMap).release(); in TestFuncs() 247 Function *CMF = cast<Function>(VMap[Funcs[i]]); in TestFuncs() 348 ValueToValueMapTy VMap; in TestBlocks() local 349 Module *M = CloneModule(BD.getProgram(), VMap).release(); in TestBlocks() 354 Blocks.insert(cast<BasicBlock>(VMap[BBs[i]])); in TestBlocks() 458 ValueToValueMapTy VMap; in TestInsts() local [all …]
|
D | ExtractFunction.cpp | 250 ValueToValueMapTy &VMap) { in SplitStaticCtorDtor() argument 278 F = cast<Function>(VMap[F]); in SplitStaticCtorDtor() 308 ValueToValueMapTy &VMap) { in SplitFunctionsOutOfModule() argument 326 Function *TNOF = cast<Function>(VMap[F[i]]); in SplitFunctionsOutOfModule()
|
/external/llvm/include/llvm/ExecutionEngine/Orc/ |
D | CompileOnDemandLayer.h | 229 ValueToValueMapTy VMap; in addLogicalModule() local 263 if (!GV.isDeclaration() && !VMap.count(&GV)) in addLogicalModule() 264 cloneGlobalVariableDecl(*GVsM, GV, &VMap); in addLogicalModule() 268 if (!VMap.count(&A)) in addLogicalModule() 269 cloneGlobalAliasDecl(*GVsM, A, VMap); in addLogicalModule() 306 moveGlobalVariableInitializer(GV, VMap, &Materializer); in addLogicalModule() 310 auto *NewA = cast<GlobalAlias>(VMap[&A]); in addLogicalModule() 312 Value *Init = MapValue(A.getAliasee(), VMap, RF_None, nullptr, in addLogicalModule() 400 ValueToValueMapTy VMap; in emitPartition() local 403 &VMap](Value *V) -> Value * { in emitPartition() [all …]
|
D | IndirectionUtils.h | 375 ValueToValueMapTy *VMap = nullptr); 385 void moveFunctionBody(Function &OrigF, ValueToValueMapTy &VMap, 391 ValueToValueMapTy *VMap = nullptr); 402 ValueToValueMapTy &VMap, 408 ValueToValueMapTy &VMap);
|
/external/llvm/lib/Transforms/IPO/ |
D | PartialInlining.cpp | 73 ValueToValueMapTy VMap; in unswitchFunction() local 74 Function* duplicateFunction = CloneFunction(F, VMap, in unswitchFunction() 78 BasicBlock* newEntryBlock = cast<BasicBlock>(VMap[entryBlock]); in unswitchFunction() 79 BasicBlock* newReturnBlock = cast<BasicBlock>(VMap[returnBlock]); in unswitchFunction() 80 BasicBlock* newNonReturnBlock = cast<BasicBlock>(VMap[nonReturnBlock]); in unswitchFunction()
|
/external/llvm/unittests/Transforms/Utils/ |
D | Cloning.cpp | 172 ValueToValueMapTy VMap; in TEST_F() local 173 VMap[A] = UndefValue::get(A->getType()); in TEST_F() 175 CloneFunctionInto(F2, F1, VMap, false, Returns); in TEST_F() 195 ValueToValueMapTy VMap; in TEST_F() local 196 VMap[&*F1->arg_begin()] = &*F2->arg_begin(); in TEST_F() 198 CloneFunctionInto(F2, F1, VMap, false, Returns); in TEST_F() 277 ValueToValueMapTy VMap; in CreateNewFunc() local 278 NewFunc = CloneFunction(OldFunc, VMap, true, nullptr); in CreateNewFunc()
|
/external/llvm/lib/Target/AMDGPU/ |
D | AMDGPUAlwaysInlinePass.cpp | 47 ValueToValueMapTy VMap; in runOnModule() local 48 Function *NewFunc = CloneFunction(F, VMap, false); in runOnModule()
|
D | AMDGPUOpenCLImageTypeLoweringPass.cpp | 292 ValueToValueMapTy VMap; in addImplicitArgs() local 297 VMap[&Arg] = &(*NewFArgIt++); in addImplicitArgs() 304 CloneFunctionInto(NewF, F, VMap, /*ModuleLevelChanges=*/false, Returns); in addImplicitArgs()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopUnswitch.cpp | 161 const ValueToValueMapTy &VMap); 352 const ValueToValueMapTy &VMap) { in cloneData() argument 374 Value *NewI = VMap.lookup(OldInst); in cloneData() 1009 ValueToValueMapTy VMap; in UnswitchNontrivialCondition() local 1011 BasicBlock *NewBB = CloneBasicBlock(LoopBlocks[i], VMap, ".us", F); in UnswitchNontrivialCondition() 1014 VMap[LoopBlocks[i]] = NewBB; // Keep the BB mapping. in UnswitchNontrivialCondition() 1029 Loop *NewLoop = CloneLoop(L, L->getParentLoop(), VMap, LI, LPM); in UnswitchNontrivialCondition() 1033 BranchesInfo.cloneData(NewLoop, L, VMap); in UnswitchNontrivialCondition() 1043 BasicBlock *NewExit = cast<BasicBlock>(VMap[ExitBlocks[i]]); in UnswitchNontrivialCondition() 1057 ValueToValueMapTy::iterator It = VMap.find(V); in UnswitchNontrivialCondition() [all …]
|
D | LoopDistribute.cpp | 129 VMap, Twine(".ldist") + Twine(Index), in cloneLoopWithPreheader() 147 ValueToValueMapTy &getVMap() { return VMap; } in getVMap() 151 remapInstructionsInBlocks(ClonedLoopBlocks, VMap); in remapInstructions() 163 if (!VMap.empty()) in removeUnusedInsts() 164 NewInst = cast<Instruction>(VMap[NewInst]); in removeUnusedInsts() 214 ValueToValueMapTy VMap; member in __anon82560eba0111::InstPartition
|
/external/llvm/lib/ProfileData/ |
D | InstrProf.cpp | 346 InstrProfRecord::ValueMapType *VMap) { in deserializeTo() argument 352 Record.addValueData(Kind, VSite, ValueData, ValueDataCount, VMap); in deserializeTo() 385 InstrProfRecord::ValueMapType *VMap) { in deserializeTo() argument 391 VR->deserializeTo(Record, VMap); in deserializeTo()
|
/external/llvm/lib/CodeGen/ |
D | WinEHPrepare.cpp | 592 ValueToValueMapTy VMap; in cloneCommonBlocks() local 607 CloneBasicBlock(BB, VMap, Twine(".for.", FuncletPadBB->getName())); in cloneCommonBlocks() 613 VMap[BB] = CBB; in cloneCommonBlocks() 658 RemapInstruction(&I, VMap, in cloneCommonBlocks() 715 ValueToValueMapTy::iterator I = VMap.find(Inst); in cloneCommonBlocks() 716 if (I != VMap.end()) in cloneCommonBlocks() 725 for (ValueToValueMapTy::value_type VT : VMap) { in cloneCommonBlocks()
|
/external/clang/lib/StaticAnalyzer/Frontend/ |
D | AnalysisConsumer.cpp | 727 typedef llvm::DenseMap<void*,unsigned> VMap; typedef in __anon1f2502640411::UbigraphViz 728 VMap M; 756 VMap::iterator SrcI= M.find(Src); in AddEdge() 767 VMap::iterator DstI= M.find(Dst); in AddEdge()
|