/external/llvm/lib/Transforms/Utils/ |
CloneModule.cpp | 30 ValueToValueMapTy VMap; 31 return CloneModule(M, VMap); 34 Module *llvm::CloneModule(const Module *M, ValueToValueMapTy &VMap) { 42 // new module. Here we add them to the VMap and to the new Module. We 55 VMap[I] = GV; 64 VMap[I] = NF; 73 VMap[I] = GA; 82 GlobalVariable *GV = cast<GlobalVariable>(VMap[I]); 84 GV->setInitializer(MapValue(I->getInitializer(), VMap)); 90 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()) 274 ValueToValueMapTy VMap; 275 BasicBlock *New = CloneBasicBlock(*BB, VMap, "." + Twine(It)); 282 PHINode *NewPHI = cast<PHINode>(VMap[OrigPHINode[i]]); 287 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, 88 assert(VMap.count(I) && "No mapping from source argument specified!"); 92 // Clone any argument attributes that are present in the VMap. 96 if (Argument *Anew = dyn_cast<Argument>(VMap[I])) { 121 BasicBlock *CBB = CloneBasicBlock(&BB, VMap, NameSuffix, NewFunc, CodeInfo); 124 VMap[&BB] = CBB; 135 VMap[OldBBAddr] = BlockAddress::get(NewFunc, CBB); [all...] |
InlineFunction.cpp | 280 ValueToValueMapTy &VMap, 303 ValueToValueMapTy::iterator VMI = VMap.find(OrigCall); 305 if (VMI == VMap.end() || VMI->second == 0) 578 { // Scope to destroy VMap after cloning. 579 ValueToValueMapTy VMap; 606 VMap[I] = ActualArg; 613 CloneAndPruneFunctionInto(Caller, CalledFunc, VMap, 622 UpdateCallGraphAfterInlining(CS, FirstNewBlock, VMap, IFI); [all...] |
/external/llvm/unittests/Transforms/Utils/ |
Cloning.cpp | 166 ValueToValueMapTy VMap; 167 VMap[A] = UndefValue::get(A->getType()); 169 CloneFunctionInto(F2, F1, VMap, false, Returns);
|
/external/llvm/tools/bugpoint/ |
CrashDebugger.cpp | 131 ValueToValueMapTy VMap; 132 Module *M = CloneModule(BD.getProgram(), VMap); 138 GlobalVariable* CMGV = cast<GlobalVariable>(VMap[GVs[i]]); 205 ValueToValueMapTy VMap; 206 Module *M = CloneModule(BD.getProgram(), VMap); 211 Function *CMF = cast<Function>(VMap[Funcs[i]]); 272 ValueToValueMapTy VMap; 273 Module *M = CloneModule(BD.getProgram(), VMap); 278 Blocks.insert(cast<BasicBlock>(VMap[BBs[i]])); 382 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); 344 MiscompiledFunctions[i] = cast<Function>(VMap[MiscompiledFunctions[i]]) [all...] |
/external/clang/lib/CodeGen/ |
CGVTables.cpp | 237 llvm::ValueToValueMapTy VMap; 238 llvm::Function *NewFn = llvm::CloneFunction(BaseFn, VMap, [all...] |
/external/clang/lib/StaticAnalyzer/Frontend/ |
AnalysisConsumer.cpp | 687 typedef llvm::DenseMap<void*,unsigned> VMap; 688 VMap M; 717 VMap::iterator SrcI= M.find(Src); 728 VMap::iterator DstI= M.find(Dst);
|
/external/llvm/lib/CodeGen/ |
StackColoring.cpp | 485 MachineModuleInfo::VariableDbgInfoMapTy &VMap = MMI->getVariableDbgInfo(); 486 for (MachineModuleInfo::VariableDbgInfoMapTy::iterator VI = VMap.begin(), 487 VE = VMap.end(); VI != VE; ++VI) {
|
/external/llvm/lib/Transforms/Instrumentation/ |
DebugIR.cpp | 152 const ValueToValueMapTy *VMap; 172 const ValueToValueMapTy *VMap = 0) 173 : Builder(M), Layout(&M), LineTable(DisplayM ? DisplayM : &M), VMap(VMap), 236 if (VMap) 237 RealInst = VMap->lookup(&I); 349 if (VMap) { 350 Value *mapped = VMap->lookup(V); 550 OwningPtr<ValueToValueMapTy> VMap; 553 VMap.reset(new ValueToValueMapTy) [all...] |
AddressSanitizer.cpp | [all...] |
/external/llvm/lib/Transforms/Scalar/ |
LoopUnswitch.cpp | 120 // Note, that new loop data is stored inside the VMap. 122 const ValueToValueMapTy &VMap); 306 // Note, that new loop data is stored inside the VMap. 308 const ValueToValueMapTy &VMap) { 328 Value *NewI = VMap.lookup(OldInst); 330 assert(NewInst && "All instructions that are in SrcBB must be in VMap."); 818 ValueToValueMapTy VMap; 820 BasicBlock *NewBB = CloneBasicBlock(LoopBlocks[i], VMap, ".us", F); 823 VMap[LoopBlocks[i]] = NewBB; // Keep the BB mapping. 833 Loop *NewLoop = CloneLoop(L, L->getParentLoop(), VMap, LI, LPM) [all...] |
/external/llvm/lib/CodeGen/AsmPrinter/ |
DwarfDebug.cpp | [all...] |
/external/clang/lib/Analysis/ |
ThreadSafety.cpp | [all...] |