/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; 75 VMap[I] = GA; 84 GlobalVariable *GV = cast<GlobalVariable>(VMap[I]); 86 GV->setInitializer(MapValue(I->getInitializer(), VMap)); 92 Function *F = cast<Function>(VMap[I]) [all...] |
LoopUnrollRuntime.cpp | 132 /// There are two value maps that are defined and used. VMap is 143 ValueToValueMapTy &VMap, 156 BasicBlock *NewBB = CloneBasicBlock(*BB, VMap, ".unr", F); 162 VMap[*BB] = NewBB; 171 PHINode *NewPHI = cast<PHINode>(VMap[I]); 174 VMap[I] = NewPHI->getIncomingValueForBlock(Preheader); 177 // Update VMap with values from the previous block 190 VMap.erase((*BB)->getTerminator()); 197 for (ValueToValueMapTy::iterator VI = VMap.begin(), VE = VMap.end() [all...] |
CloneFunction.cpp | 39 ValueToValueMapTy &VMap, 54 VMap[II] = NewInst; // Add instruction map to value. 75 // VMap values. 78 ValueToValueMapTy &VMap, 89 assert(VMap.count(I) && "No mapping from source argument specified!"); 99 // Clone any argument attributes that are present in the VMap. 101 if (Argument *NewArg = dyn_cast<Argument>(VMap[&OldArg])) { 124 BasicBlock *CBB = CloneBasicBlock(&BB, VMap, NameSuffix, NewFunc, CodeInfo); 127 VMap[&BB] = CBB; 138 VMap[OldBBAddr] = BlockAddress::get(NewFunc, CBB); [all...] |
LoopUnroll.cpp | 46 /// current values into those specified by VMap. 48 ValueToValueMapTy &VMap) { 51 ValueToValueMapTy::iterator It = VMap.find(Op); 52 if (It != VMap.end()) 58 ValueToValueMapTy::iterator It = VMap.find(PN->getIncomingBlock(i)); 59 if (It != VMap.end()) 297 ValueToValueMapTy VMap; 298 BasicBlock *New = CloneBasicBlock(*BB, VMap, "." + Twine(It)); 305 PHINode *NewPHI = cast<PHINode>(VMap[OrigPHINode[i]]); 310 VMap[OrigPHINode[i]] = InVal [all...] |
InlineFunction.cpp | 269 ValueToValueMapTy &VMap, 292 ValueToValueMapTy::iterator VMI = VMap.find(OrigCall); 294 if (VMI == VMap.end() || VMI->second == nullptr) 599 { // Scope to destroy VMap after cloning. 600 ValueToValueMapTy VMap; 626 VMap[I] = ActualArg; 633 CloneAndPruneFunctionInto(Caller, CalledFunc, VMap, 647 UpdateCallGraphAfterInlining(CS, FirstNewBlock, VMap, IFI); [all...] |
/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 | 265 ValueToValueMapTy VMap; 266 Module *Clone = CloneModule(BD.getProgram(), VMap); 271 Function *F = cast<Function>(VMap[Funcs[i]]); 276 VMap.clear(); 277 Module *ToNotOptimize = CloneModule(BD.getProgram(), VMap); 279 VMap); 314 ValueToValueMapTy VMap; 315 Module *ToNotOptimize = CloneModule(BD.getProgram(), VMap); 318 VMap); 345 MiscompiledFunctions[i] = cast<Function>(VMap[MiscompiledFunctions[i]]) [all...] |
/external/clang/lib/CodeGen/ |
CGVTables.cpp | 141 llvm::ValueToValueMapTy VMap; 142 llvm::Function *NewFn = llvm::CloneFunction(BaseFn, VMap,
|
/external/llvm/unittests/Transforms/Utils/ |
Cloning.cpp | 173 ValueToValueMapTy VMap; 174 VMap[A] = UndefValue::get(A->getType()); 176 CloneFunctionInto(F2, F1, VMap, false, Returns); 196 ValueToValueMapTy VMap; 197 VMap[F1->arg_begin()] = F2->arg_begin(); 199 CloneFunctionInto(F2, F1, VMap, false, Returns); 274 ValueToValueMapTy VMap; 275 NewFunc = CloneFunction(OldFunc, VMap, true, nullptr);
|
/external/clang/lib/StaticAnalyzer/Frontend/ |
AnalysisConsumer.cpp | 711 typedef llvm::DenseMap<void*,unsigned> VMap; 712 VMap M; 741 VMap::iterator SrcI= M.find(Src); 752 VMap::iterator DstI= M.find(Dst);
|
/external/llvm/lib/Transforms/Instrumentation/ |
DebugIR.cpp | 152 const ValueToValueMapTy *VMap; 172 const ValueToValueMapTy *VMap = nullptr) 173 : Builder(M), Layout(&M), LineTable(DisplayM ? DisplayM : &M), VMap(VMap), 236 if (VMap) 237 RealInst = VMap->lookup(&I); 346 if (VMap) { 347 Value *mapped = VMap->lookup(V); 550 std::unique_ptr<ValueToValueMapTy> VMap; 553 VMap.reset(new ValueToValueMapTy) [all...] |
AddressSanitizer.cpp | [all...] |
/external/llvm/lib/Transforms/Scalar/ |
LoopUnswitch.cpp | 121 // Note, that new loop data is stored inside the VMap. 123 const ValueToValueMapTy &VMap); 295 // Note, that new loop data is stored inside the VMap. 297 const ValueToValueMapTy &VMap) { 317 Value *NewI = VMap.lookup(OldInst); 319 assert(NewInst && "All instructions that are in SrcBB must be in VMap."); 812 ValueToValueMapTy VMap; 814 BasicBlock *NewBB = CloneBasicBlock(LoopBlocks[i], VMap, ".us", F); 817 VMap[LoopBlocks[i]] = NewBB; // Keep the BB mapping. 827 Loop *NewLoop = CloneLoop(L, L->getParentLoop(), VMap, LI, LPM) [all...] |
/external/clang/lib/Analysis/ |
ThreadSafety.cpp | [all...] |