/external/llvm/include/llvm/Transforms/Utils/ |
Cloning.h | 50 Module *CloneModule(const Module *M, ValueToValueMapTy &VMap); 85 /// is recorded in the VMap map. 98 ValueToValueMapTy &VMap, 104 /// in the VMap are changed to refer to their mapped value instead of the 105 /// original one. If any of the arguments to the function are in the VMap, 106 /// the arguments are deleted from the resultant function. The VMap is 111 /// If ModuleLevelChanges is false, VMap contains no non-identity GlobalValue 115 ValueToValueMapTy &VMap, 119 /// CloneFunction - Version of the function that doesn't need the VMap. 122 ValueToValueMapTy VMap; [all...] |
/external/llvm/lib/Transforms/Utils/ |
CloneModule.cpp | 30 ValueToValueMapTy VMap; 31 return CloneModule(M, VMap); 34 Module *llvm::CloneModule(const Module *M, ValueToValueMapTy &VMap) { 46 // new module. Here we add them to the VMap and to the new Module. We 59 VMap[I] = GV; 68 VMap[I] = NF; 77 VMap[I] = GA; 86 GlobalVariable *GV = cast<GlobalVariable>(VMap[I]); 88 GV->setInitializer(MapValue(I->getInitializer(), VMap)); 94 Function *F = cast<Function>(VMap[I]) [all...] |
LoopUnroll.cpp | 40 /// current values into those specified by VMap. 42 ValueToValueMapTy &VMap) { 45 ValueToValueMapTy::iterator It = VMap.find(Op); 46 if (It != VMap.end()) 52 ValueToValueMapTy::iterator It = VMap.find(PN->getIncomingBlock(i)); 53 if (It != VMap.end()) 270 ValueToValueMapTy VMap; 271 BasicBlock *New = CloneBasicBlock(*BB, VMap, "." + Twine(It)); 278 PHINode *NewPHI = cast<PHINode>(VMap[OrigPHINode[i]]); 283 VMap[OrigPHINode[i]] = InVal [all...] |
LoopUnrollRuntime.cpp | 131 /// There are two value maps that are defined and used. VMap is 142 ValueToValueMapTy &VMap, 155 BasicBlock *NewBB = CloneBasicBlock(*BB, VMap, ".unr", F); 161 VMap[*BB] = NewBB; 170 PHINode *NewPHI = cast<PHINode>(VMap[I]); 173 VMap[I] = NewPHI->getIncomingValueForBlock(Preheader); 176 // Update VMap with values from the previous block 189 VMap.erase((*BB)->getTerminator()); 196 for (ValueToValueMapTy::iterator VI = VMap.begin(), VE = VMap.end() [all...] |
CloneFunction.cpp | 38 ValueToValueMapTy &VMap, 53 VMap[II] = NewInst; // Add instruction map to value. 74 // VMap values. 77 ValueToValueMapTy &VMap, 87 assert(VMap.count(I) && "No mapping from source argument specified!"); 94 //Some arguments were deleted with the VMap. Copy arguments one by one 97 if (Argument* Anew = dyn_cast<Argument>(VMap[I])) 118 BasicBlock *CBB = CloneBasicBlock(&BB, VMap, NameSuffix, NewFunc, CodeInfo); 121 VMap[&BB] = CBB; 132 VMap[OldBBAddr] = BlockAddress::get(NewFunc, CBB); [all...] |
InlineFunction.cpp | 270 ValueToValueMapTy &VMap, 293 ValueToValueMapTy::iterator VMI = VMap.find(OrigCall); 295 if (VMI == VMap.end() || VMI->second == 0) 568 { // Scope to destroy VMap after cloning. 569 ValueToValueMapTy VMap; 596 VMap[I] = ActualArg; 603 CloneAndPruneFunctionInto(Caller, CalledFunc, VMap, 612 UpdateCallGraphAfterInlining(CS, FirstNewBlock, VMap, IFI); [all...] |
/external/llvm/tools/bugpoint/ |
CrashDebugger.cpp | 133 ValueToValueMapTy VMap; 134 Module *M = CloneModule(BD.getProgram(), VMap); 140 GlobalVariable* CMGV = cast<GlobalVariable>(VMap[GVs[i]]); 207 ValueToValueMapTy VMap; 208 Module *M = CloneModule(BD.getProgram(), VMap); 213 Function *CMF = cast<Function>(VMap[Funcs[i]]); 274 ValueToValueMapTy VMap; 275 Module *M = CloneModule(BD.getProgram(), VMap); 280 Blocks.insert(cast<BasicBlock>(VMap[BBs[i]])); 384 ValueToValueMapTy VMap; [all...] |
Miscompilation.cpp | 264 ValueToValueMapTy VMap; 265 Module *Clone = CloneModule(BD.getProgram(), VMap); 270 Function *F = cast<Function>(VMap[Funcs[i]]); 275 VMap.clear(); 276 Module *ToNotOptimize = CloneModule(BD.getProgram(), VMap); 278 VMap); 313 ValueToValueMapTy VMap; 314 Module *ToNotOptimize = CloneModule(BD.getProgram(), VMap); 317 VMap); 478 ValueToValueMapTy VMap; [all...] |
/external/clang/lib/StaticAnalyzer/Frontend/ |
AnalysisConsumer.cpp | 582 typedef llvm::DenseMap<void*,unsigned> VMap; 583 VMap M; 626 VMap::iterator SrcI= M.find(Src); 637 VMap::iterator DstI= M.find(Dst);
|
/external/llvm/lib/Transforms/Scalar/ |
LoopUnswitch.cpp | 119 // Note, that new loop data is stored inside the VMap. 121 const ValueToValueMapTy& VMap); 297 // Note, that new loop data is stored inside the VMap. 299 const ValueToValueMapTy& VMap) { 319 Value* NewI = VMap.lookup(OldInst); 321 assert(NewInst && "All instructions that are in SrcBB must be in VMap."); 815 ValueToValueMapTy VMap; 817 BasicBlock *NewBB = CloneBasicBlock(LoopBlocks[i], VMap, ".us", F); 820 VMap[LoopBlocks[i]] = NewBB; // Keep the BB mapping. 830 Loop *NewLoop = CloneLoop(L, L->getParentLoop(), VMap, LI, LPM) [all...] |
/external/clang/lib/Analysis/ |
ThreadSafety.cpp | 598 LocalVariableMap* VMap; 602 : VMap(VM), Ctx(C) {} 620 Ctx = VMap->addDefinition(VD, E, Ctx); 626 VMap->saveContext(S, Ctx); 641 Ctx = VMap->updateDefinition(VDec, BO->getRHS(), Ctx); 644 Ctx = VMap->clearDefinition(VDec, Ctx); 645 VMap->saveContext(BO, Ctx); [all...] |
/external/llvm/lib/CodeGen/AsmPrinter/ |
DwarfDebug.cpp | [all...] |