/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 57 VMap[I] = GV; 66 VMap[I] = NF; 72 VMap[I] = new GlobalAlias(I->getType(), GlobalAlias::ExternalLinkage, 81 GlobalVariable *GV = cast<GlobalVariable>(VMap[I]); 83 GV->setInitializer(MapValue(I->getInitializer(), VMap)); 92 Function *F = cast<Function>(VMap[I]) [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...] |
LoopUnroll.cpp | 41 /// current values into those specified by VMap. 43 ValueToValueMapTy &VMap) { 46 ValueToValueMapTy::iterator It = VMap.find(Op); 47 if (It != VMap.end()) 53 ValueToValueMapTy::iterator It = VMap.find(PN->getIncomingBlock(i)); 54 if (It != VMap.end()) 229 ValueToValueMapTy VMap; 230 BasicBlock *New = CloneBasicBlock(*BB, VMap, "." + Twine(It)); 237 PHINode *NewPHI = cast<PHINode>(VMap[OrigPHINode[i]]); 242 VMap[OrigPHINode[i]] = InVal [all...] |
ValueMapper.cpp | 158 /// current values into those specified by VMap. 160 void llvm::RemapInstruction(Instruction *I, ValueToValueMapTy &VMap, 164 Value *V = MapValue(*op, VMap, Flags, TypeMapper); 176 Value *V = MapValue(PN->getIncomingBlock(i), VMap, Flags); 193 MDNode *New = MapValue(Old, VMap, Flags, TypeMapper);
|
InlineFunction.cpp | 575 ValueToValueMapTy &VMap, 598 ValueToValueMapTy::iterator VMI = VMap.find(OrigCall); 600 if (VMI == VMap.end() || VMI->second == 0) [all...] |
/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/IPO/ |
PartialInlining.cpp | 72 ValueToValueMapTy VMap; 73 Function* duplicateFunction = CloneFunction(F, VMap, 77 BasicBlock* newEntryBlock = cast<BasicBlock>(VMap[entryBlock]); 78 BasicBlock* newReturnBlock = cast<BasicBlock>(VMap[returnBlock]); 79 BasicBlock* newNonReturnBlock = cast<BasicBlock>(VMap[nonReturnBlock]);
|
/external/llvm/tools/bugpoint/ |
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); 479 ValueToValueMapTy VMap; [all...] |
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...] |
ExtractFunction.cpp | 59 // FIXME, use vmap? 197 ValueToValueMapTy &VMap) { 225 F = cast<Function>(VMap[F]); 260 ValueToValueMapTy &VMap) { 283 Function *TNOF = cast<Function>(VMap[F[i]]);
|
BugDriver.h | 326 ValueToValueMapTy &VMap);
|
/external/clang/lib/StaticAnalyzer/Frontend/ |
AnalysisConsumer.cpp | 390 typedef llvm::DenseMap<void*,unsigned> VMap; 391 VMap M; 434 VMap::iterator SrcI= M.find(Src); 445 VMap::iterator DstI= M.find(Dst);
|
/external/llvm/lib/Transforms/Scalar/ |
LoopUnswitch.cpp | 614 ValueToValueMapTy VMap; 616 BasicBlock *NewBB = CloneBasicBlock(LoopBlocks[i], VMap, ".us", F); 618 VMap[LoopBlocks[i]] = NewBB; // Keep the BB mapping. 628 Loop *NewLoop = CloneLoop(L, L->getParentLoop(), VMap, LI, LPM); 637 BasicBlock *NewExit = cast<BasicBlock>(VMap[ExitBlocks[i]]); 652 ValueToValueMapTy::iterator It = VMap.find(V); 653 if (It != VMap.end()) V = It->second; 662 RemapInstruction(I, VMap,RF_NoModuleLevelChanges|RF_IgnoreMissingEntries); [all...] |
/external/llvm/lib/CodeGen/AsmPrinter/ |
DwarfDebug.cpp | [all...] |