/external/llvm/lib/Transforms/Utils/ |
CloneModule.cpp | 30 ValueToValueMapTy VMap; 31 return CloneModule(M, VMap); 35 ValueToValueMapTy &VMap) { 36 return CloneModule(M, VMap, [](const GlobalValue *GV) { return true; }); 40 const Module *M, ValueToValueMapTy &VMap, 50 // new module. Here we add them to the VMap and to the new Module. We 63 VMap[&*I] = GV; 72 VMap[&*I] = NF; 93 VMap[&*I] = GV; 103 VMap[&*I] = GA [all...] |
SplitModule.cpp | 76 ValueToValueMapTy VMap; 78 CloneModule(M.get(), VMap, [=](const GlobalValue *GV) {
|
LoopUnroll.cpp | 48 /// current values into those specified by VMap. 50 ValueToValueMapTy &VMap) { 53 ValueToValueMapTy::iterator It = VMap.find(Op); 54 if (It != VMap.end()) 60 ValueToValueMapTy::iterator It = VMap.find(PN->getIncomingBlock(i)); 61 if (It != VMap.end()) 317 ValueToValueMapTy VMap; 318 BasicBlock *New = CloneBasicBlock(*BB, VMap, "." + Twine(It)); 353 PHINode *NewPHI = cast<PHINode>(VMap[OrigPHINode[i]]); 358 VMap[OrigPHINode[i]] = InVal [all...] |
LoopUnrollRuntime.cpp | 65 ValueToValueMapTy &VMap, DominatorTree *DT, 95 V = VMap[I]; 145 LoopBlocksDFS &LoopBlocks, ValueToValueMapTy &VMap, 166 BasicBlock *NewBB = CloneBasicBlock(*BB, VMap, ".prol", F); 174 VMap[*BB] = NewBB; 184 VMap.erase((*BB)->getTerminator()); 185 BasicBlock *FirstLoopBB = cast<BasicBlock>(VMap[Header]); 209 PHINode *NewPHI = cast<PHINode>(VMap[&*I]); 211 VMap[&*I] = NewPHI->getIncomingValueForBlock(Preheader); 212 cast<BasicBlock>(VMap[Header])->getInstList().erase(NewPHI) [all...] |
CloneFunction.cpp | 40 ValueToValueMapTy &VMap, 55 VMap[&*II] = NewInst; // Add instruction map to value. 76 // VMap values. 79 ValueToValueMapTy &VMap, 89 assert(VMap.count(&I) && "No mapping from source argument specified!"); 101 MapValue(OldFunc->getPersonalityFn(), VMap, 106 // Clone any argument attributes that are present in the VMap. 108 if (Argument *NewArg = dyn_cast<Argument>(VMap[&OldArg])) { 131 BasicBlock *CBB = CloneBasicBlock(&BB, VMap, NameSuffix, NewFunc, CodeInfo); 134 VMap[&BB] = CBB [all...] |
InlineFunction.cpp | 392 static void CloneAliasScopeMetadata(CallSite CS, ValueToValueMapTy &VMap) { 457 for (ValueToValueMapTy::iterator VMI = VMap.begin(), VMIE = VMap.end(); 501 static void AddAliasScopeMetadata(CallSite CS, ValueToValueMapTy &VMap, 555 for (ValueToValueMapTy::iterator VMI = VMap.begin(), VMIE = VMap.end(); 768 ValueToValueMapTy &VMap, [all...] |
SimplifyCFG.cpp | [all...] |
/external/llvm/lib/Target/AMDGPU/ |
AMDGPUAlwaysInlinePass.cpp | 47 ValueToValueMapTy VMap; 48 Function *NewFunc = CloneFunction(F, VMap, false);
|
AMDGPUOpenCLImageTypeLoweringPass.cpp | 292 ValueToValueMapTy VMap; 297 VMap[&Arg] = &(*NewFArgIt++); 304 CloneFunctionInto(NewF, F, VMap, /*ModuleLevelChanges=*/false, Returns);
|
/external/llvm/include/llvm/Transforms/Utils/ |
LoopVersioning.h | 98 ValueToValueMapTy VMap;
|
/external/llvm/include/llvm/ExecutionEngine/Orc/ |
CompileOnDemandLayer.h | 229 ValueToValueMapTy VMap; 263 if (!GV.isDeclaration() && !VMap.count(&GV)) 264 cloneGlobalVariableDecl(*GVsM, GV, &VMap); 268 if (!VMap.count(&A)) 269 cloneGlobalAliasDecl(*GVsM, A, VMap); 306 moveGlobalVariableInitializer(GV, VMap, &Materializer); 310 auto *NewA = cast<GlobalAlias>(VMap[&A]); 312 Value *Init = MapValue(A.getAliasee(), VMap, RF_None, nullptr, 400 ValueToValueMapTy VMap; 403 &VMap](Value *V) -> Value * [all...] |
/external/llvm/tools/bugpoint/ |
CrashDebugger.cpp | 145 ValueToValueMapTy VMap; 146 Module *M = CloneModule(BD.getProgram(), VMap).release(); 152 GlobalVariable* CMGV = cast<GlobalVariable>(VMap[GVs[i]]); 241 ValueToValueMapTy VMap; 242 Module *M = CloneModule(BD.getProgram(), VMap).release(); 247 Function *CMF = cast<Function>(VMap[Funcs[i]]); 348 ValueToValueMapTy VMap; 349 Module *M = CloneModule(BD.getProgram(), VMap).release(); 354 Blocks.insert(cast<BasicBlock>(VMap[BBs[i]])); 458 ValueToValueMapTy VMap; [all...] |
Miscompilation.cpp | 256 ValueToValueMapTy VMap; 257 Module *Clone = CloneModule(BD.getProgram(), VMap).release(); 262 Function *F = cast<Function>(VMap[Funcs[i]]); 267 VMap.clear(); 268 std::unique_ptr<Module> ToNotOptimize = CloneModule(BD.getProgram(), VMap); 270 SplitFunctionsOutOfModule(ToNotOptimize.get(), FuncsOnClone, VMap); 305 ValueToValueMapTy VMap; 306 std::unique_ptr<Module> ToNotOptimize = CloneModule(BD.getProgram(), VMap); 308 MiscompiledFunctions, VMap) 337 MiscompiledFunctions[i] = cast<Function>(VMap[MiscompiledFunctions[i]]) [all...] |
/external/llvm/unittests/Transforms/Utils/ |
Cloning.cpp | 172 ValueToValueMapTy VMap; 173 VMap[A] = UndefValue::get(A->getType()); 175 CloneFunctionInto(F2, F1, VMap, false, Returns); 195 ValueToValueMapTy VMap; 196 VMap[&*F1->arg_begin()] = &*F2->arg_begin(); 198 CloneFunctionInto(F2, F1, VMap, false, Returns); 277 ValueToValueMapTy VMap; 278 NewFunc = CloneFunction(OldFunc, VMap, true, nullptr);
|
/external/clang/lib/CodeGen/ |
CGVTables.cpp | 158 llvm::ValueToValueMapTy VMap; 159 llvm::Function *NewFn = llvm::CloneFunction(BaseFn, VMap, [all...] |
/external/clang/lib/StaticAnalyzer/Frontend/ |
AnalysisConsumer.cpp | 727 typedef llvm::DenseMap<void*,unsigned> VMap; 728 VMap M; 756 VMap::iterator SrcI= M.find(Src); 767 VMap::iterator DstI= M.find(Dst);
|
/external/llvm/lib/Transforms/Scalar/ |
LoopDistribute.cpp | 129 VMap, Twine(".ldist") + Twine(Index), 145 /// \brief The VMap that is populated by cloning and then used in 147 ValueToValueMapTy &getVMap() { return VMap; } 149 /// \brief Remaps the cloned instructions using VMap. 151 remapInstructionsInBlocks(ClonedLoopBlocks, VMap); 163 if (!VMap.empty()) 164 NewInst = cast<Instruction>(VMap[NewInst]); 214 ValueToValueMapTy VMap;
|
LoopUnswitch.cpp | 159 // Note, that new loop data is stored inside the VMap. 161 const ValueToValueMapTy &VMap); 350 // Note, that new loop data is stored inside the VMap. 352 const ValueToValueMapTy &VMap) { 374 Value *NewI = VMap.lookup(OldInst); 376 assert(NewInst && "All instructions that are in SrcBB must be in VMap."); [all...] |
/external/llvm/lib/CodeGen/ |
WinEHPrepare.cpp | 592 ValueToValueMapTy VMap; 607 CloneBasicBlock(BB, VMap, Twine(".for.", FuncletPadBB->getName())); 613 VMap[BB] = CBB; 654 // references as we go. This uses VMap to do all the hard work. 658 RemapInstruction(&I, VMap, 715 ValueToValueMapTy::iterator I = VMap.find(Inst); 716 if (I != VMap.end()) 725 for (ValueToValueMapTy::value_type VT : VMap) { [all...] |