Home
last modified time | relevance | path

Searched refs:VMap (Results 1 – 16 of 16) sorted by relevance

/external/llvm/lib/Transforms/Utils/
DCloneFunction.cpp38 ValueToValueMapTy &VMap, in CloneBasicBlock() argument
53 VMap[II] = NewInst; // Add instruction map to value. in CloneBasicBlock()
77 ValueToValueMapTy &VMap, in CloneFunctionInto() argument
87 assert(VMap.count(I) && "No mapping from source argument specified!"); in CloneFunctionInto()
97 if (Argument* Anew = dyn_cast<Argument>(VMap[I])) in CloneFunctionInto()
118 BasicBlock *CBB = CloneBasicBlock(&BB, VMap, NameSuffix, NewFunc, CodeInfo); in CloneFunctionInto()
121 VMap[&BB] = CBB; in CloneFunctionInto()
132 VMap[OldBBAddr] = BlockAddress::get(NewFunc, CBB); in CloneFunctionInto()
142 for (Function::iterator BB = cast<BasicBlock>(VMap[OldFunc->begin()]), in CloneFunctionInto()
146 RemapInstruction(II, VMap, in CloneFunctionInto()
[all …]
DCloneModule.cpp30 ValueToValueMapTy VMap; in CloneModule() local
31 return CloneModule(M, VMap); in CloneModule()
34 Module *llvm::CloneModule(const Module *M, ValueToValueMapTy &VMap) { in CloneModule() argument
59 VMap[I] = GV; in CloneModule()
68 VMap[I] = NF; in CloneModule()
77 VMap[I] = GA; in CloneModule()
86 GlobalVariable *GV = cast<GlobalVariable>(VMap[I]); in CloneModule()
88 GV->setInitializer(MapValue(I->getInitializer(), VMap)); in CloneModule()
94 Function *F = cast<Function>(VMap[I]); in CloneModule()
100 VMap[J] = DestI++; in CloneModule()
[all …]
DLoopUnrollRuntime.cpp142 ValueToValueMapTy &VMap, in CloneLoopBlocks() argument
155 BasicBlock *NewBB = CloneBasicBlock(*BB, VMap, ".unr", F); in CloneLoopBlocks()
161 VMap[*BB] = NewBB; in CloneLoopBlocks()
170 PHINode *NewPHI = cast<PHINode>(VMap[I]); in CloneLoopBlocks()
173 VMap[I] = NewPHI->getIncomingValueForBlock(Preheader); in CloneLoopBlocks()
189 VMap.erase((*BB)->getTerminator()); in CloneLoopBlocks()
196 for (ValueToValueMapTy::iterator VI = VMap.begin(), VE = VMap.end(); in CloneLoopBlocks()
316 ValueToValueMapTy VMap; in UnrollRuntimeLoopProlog() local
321 LoopBlocks, VMap, LVMap, LI); in UnrollRuntimeLoopProlog()
322 LastLoopBB = cast<BasicBlock>(VMap[Latch]); in UnrollRuntimeLoopProlog()
[all …]
DLoopUnroll.cpp42 ValueToValueMapTy &VMap) { in RemapInstruction() argument
45 ValueToValueMapTy::iterator It = VMap.find(Op); in RemapInstruction()
46 if (It != VMap.end()) in RemapInstruction()
52 ValueToValueMapTy::iterator It = VMap.find(PN->getIncomingBlock(i)); in RemapInstruction()
53 if (It != VMap.end()) in RemapInstruction()
270 ValueToValueMapTy VMap; in UnrollLoop() local
271 BasicBlock *New = CloneBasicBlock(*BB, VMap, "." + Twine(It)); in UnrollLoop()
278 PHINode *NewPHI = cast<PHINode>(VMap[OrigPHINode[i]]); in UnrollLoop()
283 VMap[OrigPHINode[i]] = InVal; in UnrollLoop()
289 for (ValueToValueMapTy::iterator VI = VMap.begin(), VE = VMap.end(); in UnrollLoop()
DValueMapper.cpp160 void llvm::RemapInstruction(Instruction *I, ValueToValueMapTy &VMap, in RemapInstruction() argument
164 Value *V = MapValue(*op, VMap, Flags, TypeMapper); in RemapInstruction()
176 Value *V = MapValue(PN->getIncomingBlock(i), VMap, Flags); in RemapInstruction()
192 MDNode *New = MapValue(Old, VMap, Flags, TypeMapper); in RemapInstruction()
DInlineFunction.cpp270 ValueToValueMapTy &VMap, in UpdateCallGraphAfterInlining() argument
293 ValueToValueMapTy::iterator VMI = VMap.find(OrigCall); in UpdateCallGraphAfterInlining()
295 if (VMI == VMap.end() || VMI->second == 0) in UpdateCallGraphAfterInlining()
569 ValueToValueMapTy VMap; in InlineFunction() local
596 VMap[I] = ActualArg; in InlineFunction()
603 CloneAndPruneFunctionInto(Caller, CalledFunc, VMap, in InlineFunction()
612 UpdateCallGraphAfterInlining(CS, FirstNewBlock, VMap, IFI); in InlineFunction()
/external/llvm/include/llvm/Transforms/Utils/
DCloning.h50 Module *CloneModule(const Module *M, ValueToValueMapTy &VMap);
98 ValueToValueMapTy &VMap,
115 ValueToValueMapTy &VMap,
122 ValueToValueMapTy VMap; variable
123 return CloneFunction(F, VMap, CodeInfo);
136 ValueToValueMapTy &VMap,
155 ValueToValueMapTy &VMap,
/external/llvm/tools/bugpoint/
DMiscompilation.cpp264 ValueToValueMapTy VMap; in TestFuncs() local
265 Module *Clone = CloneModule(BD.getProgram(), VMap); in TestFuncs()
270 Function *F = cast<Function>(VMap[Funcs[i]]); in TestFuncs()
275 VMap.clear(); in TestFuncs()
276 Module *ToNotOptimize = CloneModule(BD.getProgram(), VMap); in TestFuncs()
278 VMap); in TestFuncs()
313 ValueToValueMapTy VMap; in ExtractLoops() local
314 Module *ToNotOptimize = CloneModule(BD.getProgram(), VMap); in ExtractLoops()
317 VMap); in ExtractLoops()
478 ValueToValueMapTy VMap; in TestFuncs() local
[all …]
DCrashDebugger.cpp133 ValueToValueMapTy VMap; in TestGlobalVariables() local
134 Module *M = CloneModule(BD.getProgram(), VMap); in TestGlobalVariables()
140 GlobalVariable* CMGV = cast<GlobalVariable>(VMap[GVs[i]]); in TestGlobalVariables()
207 ValueToValueMapTy VMap; in TestFuncs() local
208 Module *M = CloneModule(BD.getProgram(), VMap); in TestFuncs()
213 Function *CMF = cast<Function>(VMap[Funcs[i]]); in TestFuncs()
274 ValueToValueMapTy VMap; in TestBlocks() local
275 Module *M = CloneModule(BD.getProgram(), VMap); in TestBlocks()
280 Blocks.insert(cast<BasicBlock>(VMap[BBs[i]])); in TestBlocks()
384 ValueToValueMapTy VMap; in TestInsts() local
[all …]
DExtractFunction.cpp229 ValueToValueMapTy &VMap) { in SplitStaticCtorDtor() argument
257 F = cast<Function>(VMap[F]); in SplitStaticCtorDtor()
292 ValueToValueMapTy &VMap) { in SplitFunctionsOutOfModule() argument
310 Function *TNOF = cast<Function>(VMap[F[i]]); in SplitFunctionsOutOfModule()
DBugDriver.h326 ValueToValueMapTy &VMap);
/external/llvm/lib/Transforms/IPO/
DPartialInlining.cpp72 ValueToValueMapTy VMap; in unswitchFunction() local
73 Function* duplicateFunction = CloneFunction(F, VMap, in unswitchFunction()
77 BasicBlock* newEntryBlock = cast<BasicBlock>(VMap[entryBlock]); in unswitchFunction()
78 BasicBlock* newReturnBlock = cast<BasicBlock>(VMap[returnBlock]); in unswitchFunction()
79 BasicBlock* newNonReturnBlock = cast<BasicBlock>(VMap[nonReturnBlock]); in unswitchFunction()
/external/llvm/lib/Transforms/Scalar/
DLoopUnswitch.cpp121 const ValueToValueMapTy& VMap);
299 const ValueToValueMapTy& VMap) { in cloneData() argument
319 Value* NewI = VMap.lookup(OldInst); in cloneData()
815 ValueToValueMapTy VMap; in UnswitchNontrivialCondition() local
817 BasicBlock *NewBB = CloneBasicBlock(LoopBlocks[i], VMap, ".us", F); in UnswitchNontrivialCondition()
820 VMap[LoopBlocks[i]] = NewBB; // Keep the BB mapping. in UnswitchNontrivialCondition()
830 Loop *NewLoop = CloneLoop(L, L->getParentLoop(), VMap, LI, LPM); in UnswitchNontrivialCondition()
834 BranchesInfo.cloneData(NewLoop, L, VMap); in UnswitchNontrivialCondition()
844 BasicBlock *NewExit = cast<BasicBlock>(VMap[ExitBlocks[i]]); in UnswitchNontrivialCondition()
859 ValueToValueMapTy::iterator It = VMap.find(V); in UnswitchNontrivialCondition()
[all …]
/external/clang/lib/StaticAnalyzer/Frontend/
DAnalysisConsumer.cpp582 typedef llvm::DenseMap<void*,unsigned> VMap; typedef in __anon07f1d01c0211::UbigraphViz
583 VMap M;
626 VMap::iterator SrcI= M.find(Src); in AddEdge()
637 VMap::iterator DstI= M.find(Dst); in AddEdge()
/external/clang/lib/Analysis/
DThreadSafety.cpp598 LocalVariableMap* VMap; member in __anond4d4f9970111::VarMapBuilder
602 : VMap(VM), Ctx(C) {} in VarMapBuilder()
620 Ctx = VMap->addDefinition(VD, E, Ctx); in VisitDeclStmt()
626 VMap->saveContext(S, Ctx); in VisitDeclStmt()
641 Ctx = VMap->updateDefinition(VDec, BO->getRHS(), Ctx); in VisitBinaryOperator()
644 Ctx = VMap->clearDefinition(VDec, Ctx); in VisitBinaryOperator()
645 VMap->saveContext(BO, Ctx); in VisitBinaryOperator()
/external/llvm/lib/CodeGen/AsmPrinter/
DDwarfDebug.cpp906 MachineModuleInfo::VariableDbgInfoMapTy &VMap = MMI->getVariableDbgInfo(); in collectVariableInfoFromMMITable() local
907 for (MachineModuleInfo::VariableDbgInfoMapTy::iterator VI = VMap.begin(), in collectVariableInfoFromMMITable()
908 VE = VMap.end(); VI != VE; ++VI) { in collectVariableInfoFromMMITable()