HomeSort by relevance Sort by last modified time
    Searched defs:VMap (Results 1 - 10 of 10) sorted by null

  /external/llvm/include/llvm/Transforms/Utils/
Cloning.h 50 Module *CloneModule(const Module *M, ValueToValueMapTy &VMap);
93 /// is recorded in the VMap map.
106 ValueToValueMapTy &VMap,
112 /// in the VMap are changed to refer to their mapped value instead of the
113 /// original one. If any of the arguments to the function are in the VMap,
114 /// the arguments are deleted from the resultant function. The VMap is
119 /// If ModuleLevelChanges is false, VMap contains no non-identity GlobalValue
123 ValueToValueMapTy &VMap,
127 /// CloneFunction - Version of the function that doesn't need the VMap.
130 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())
248 ValueToValueMapTy VMap;
249 BasicBlock *New = CloneBasicBlock(*BB, VMap, "." + Twine(It));
256 PHINode *NewPHI = cast<PHINode>(VMap[OrigPHINode[i]]);
261 VMap[OrigPHINode[i]] = InVal
    [all...]
CloneFunction.cpp 35 ValueToValueMapTy &VMap,
50 VMap[II] = NewInst; // Add instruction map to value.
72 // VMap values.
75 ValueToValueMapTy &VMap,
84 assert(VMap.count(I) && "No mapping from source argument specified!");
91 //Some arguments were deleted with the VMap. Copy arguments one by one
94 if (Argument* Anew = dyn_cast<Argument>(VMap[I]))
115 BasicBlock *CBB = CloneBasicBlock(&BB, VMap, NameSuffix, NewFunc, CodeInfo);
116 VMap[&BB] = CBB; // Add basic block mapping.
123 // references as we go. This uses VMap to do all the hard work
    [all...]
InlineFunction.cpp 670 ValueToValueMapTy &VMap,
693 ValueToValueMapTy::iterator VMI = VMap.find(OrigCall);
695 if (VMI == VMap.end() || VMI->second == 0)
    [all...]
  /external/clang/lib/StaticAnalyzer/Frontend/
AnalysisConsumer.cpp 381 typedef llvm::DenseMap<void*,unsigned> VMap;
382 VMap M;
425 VMap::iterator SrcI= M.find(Src);
436 VMap::iterator DstI= M.find(Dst);
  /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/llvm/lib/Transforms/Scalar/
LoopUnswitch.cpp 621 ValueToValueMapTy VMap;
623 BasicBlock *NewBB = CloneBasicBlock(LoopBlocks[i], VMap, ".us", F);
625 VMap[LoopBlocks[i]] = NewBB; // Keep the BB mapping.
635 Loop *NewLoop = CloneLoop(L, L->getParentLoop(), VMap, LI, LPM);
644 BasicBlock *NewExit = cast<BasicBlock>(VMap[ExitBlocks[i]]);
659 ValueToValueMapTy::iterator It = VMap.find(V);
660 if (It != VMap.end()) V = It->second;
682 RemapInstruction(I, VMap,RF_NoModuleLevelChanges|RF_IgnoreMissingEntries);
    [all...]
  /external/llvm/lib/CodeGen/AsmPrinter/
DwarfDebug.cpp 809 MachineModuleInfo::VariableDbgInfoMapTy &VMap = MMI->getVariableDbgInfo();
810 for (MachineModuleInfo::VariableDbgInfoMapTy::iterator VI = VMap.begin(),
811 VE = VMap.end(); VI != VE; ++VI) {
    [all...]

Completed in 196 milliseconds