/external/llvm/lib/Transforms/Utils/ |
D | CloneFunction.cpp | 38 ValueToValueMapTy &VMap, in CloneBasicBlock() argument 53 VMap[II] = NewInst; // Add instruction map to value. in CloneBasicBlock() 77 ValueToValueMapTy &VMap, in CloneFunctionInto() argument 87 assert(VMap.count(I) && "No mapping from source argument specified!"); in CloneFunctionInto() 95 if (Argument *Anew = dyn_cast<Argument>(VMap[I])) { in CloneFunctionInto() 120 BasicBlock *CBB = CloneBasicBlock(&BB, VMap, NameSuffix, NewFunc, CodeInfo); in CloneFunctionInto() 123 VMap[&BB] = CBB; in CloneFunctionInto() 134 VMap[OldBBAddr] = BlockAddress::get(NewFunc, CBB); in CloneFunctionInto() 144 for (Function::iterator BB = cast<BasicBlock>(VMap[OldFunc->begin()]), in CloneFunctionInto() 148 RemapInstruction(II, VMap, in CloneFunctionInto() [all …]
|
D | CloneModule.cpp | 30 ValueToValueMapTy VMap; in CloneModule() local 31 return CloneModule(M, VMap); in CloneModule() 34 Module *llvm::CloneModule(const Module *M, ValueToValueMapTy &VMap) { in CloneModule() argument 55 VMap[I] = GV; in CloneModule() 64 VMap[I] = NF; in CloneModule() 73 VMap[I] = GA; in CloneModule() 82 GlobalVariable *GV = cast<GlobalVariable>(VMap[I]); in CloneModule() 84 GV->setInitializer(MapValue(I->getInitializer(), VMap)); in CloneModule() 90 Function *F = cast<Function>(VMap[I]); in CloneModule() 96 VMap[J] = DestI++; in CloneModule() [all …]
|
D | LoopUnrollRuntime.cpp | 142 ValueToValueMapTy &VMap, in CloneLoopBlocks() argument 155 BasicBlock *NewBB = CloneBasicBlock(*BB, VMap, ".unr", F); in CloneLoopBlocks() 161 VMap[*BB] = NewBB; in CloneLoopBlocks() 170 PHINode *NewPHI = cast<PHINode>(VMap[I]); in CloneLoopBlocks() 173 VMap[I] = NewPHI->getIncomingValueForBlock(Preheader); in CloneLoopBlocks() 189 VMap.erase((*BB)->getTerminator()); in CloneLoopBlocks() 196 for (ValueToValueMapTy::iterator VI = VMap.begin(), VE = VMap.end(); in CloneLoopBlocks() 318 ValueToValueMapTy VMap; in UnrollRuntimeLoopProlog() local 323 LoopBlocks, VMap, LVMap, LI); in UnrollRuntimeLoopProlog() 324 LastLoopBB = cast<BasicBlock>(VMap[Latch]); in UnrollRuntimeLoopProlog() [all …]
|
D | LoopUnroll.cpp | 42 ValueToValueMapTy &VMap) { in RemapInstruction() argument 45 ValueToValueMapTy::iterator It = VMap.find(Op); in RemapInstruction() 46 if (It != VMap.end()) in RemapInstruction() 52 ValueToValueMapTy::iterator It = VMap.find(PN->getIncomingBlock(i)); in RemapInstruction() 53 if (It != VMap.end()) in RemapInstruction() 274 ValueToValueMapTy VMap; in UnrollLoop() local 275 BasicBlock *New = CloneBasicBlock(*BB, VMap, "." + Twine(It)); in UnrollLoop() 282 PHINode *NewPHI = cast<PHINode>(VMap[OrigPHINode[i]]); in UnrollLoop() 287 VMap[OrigPHINode[i]] = InVal; in UnrollLoop() 293 for (ValueToValueMapTy::iterator VI = VMap.begin(), VE = VMap.end(); in UnrollLoop()
|
D | ValueMapper.cpp | 175 void llvm::RemapInstruction(Instruction *I, ValueToValueMapTy &VMap, in RemapInstruction() argument 179 Value *V = MapValue(*op, VMap, Flags, TypeMapper); in RemapInstruction() 191 Value *V = MapValue(PN->getIncomingBlock(i), VMap, Flags); in RemapInstruction() 207 MDNode *New = MapValue(Old, VMap, Flags, TypeMapper); in RemapInstruction()
|
D | InlineFunction.cpp | 270 ValueToValueMapTy &VMap, in UpdateCallGraphAfterInlining() argument 293 ValueToValueMapTy::iterator VMI = VMap.find(OrigCall); in UpdateCallGraphAfterInlining() 295 if (VMI == VMap.end() || VMI->second == 0) in UpdateCallGraphAfterInlining() 569 ValueToValueMapTy VMap; in InlineFunction() local 596 VMap[I] = ActualArg; in InlineFunction() 603 CloneAndPruneFunctionInto(Caller, CalledFunc, VMap, in InlineFunction() 612 UpdateCallGraphAfterInlining(CS, FirstNewBlock, VMap, IFI); in InlineFunction()
|
/external/llvm/include/llvm/Transforms/Utils/ |
D | Cloning.h | 50 Module *CloneModule(const Module *M, ValueToValueMapTy &VMap); 98 ValueToValueMapTy &VMap, 115 ValueToValueMapTy &VMap, 129 ValueToValueMapTy &VMap, 148 ValueToValueMapTy &VMap,
|
/external/llvm/tools/bugpoint/ |
D | Miscompilation.cpp | 264 ValueToValueMapTy VMap; in TestFuncs() local 265 Module *Clone = CloneModule(BD.getProgram(), VMap); in TestFuncs() 270 Function *F = cast<Function>(VMap[Funcs[i]]); in TestFuncs() 275 VMap.clear(); in TestFuncs() 276 Module *ToNotOptimize = CloneModule(BD.getProgram(), VMap); in TestFuncs() 278 VMap); in TestFuncs() 313 ValueToValueMapTy VMap; in ExtractLoops() local 314 Module *ToNotOptimize = CloneModule(BD.getProgram(), VMap); in ExtractLoops() 317 VMap); in ExtractLoops() 478 ValueToValueMapTy VMap; in TestFuncs() local [all …]
|
D | CrashDebugger.cpp | 133 ValueToValueMapTy VMap; in TestGlobalVariables() local 134 Module *M = CloneModule(BD.getProgram(), VMap); in TestGlobalVariables() 140 GlobalVariable* CMGV = cast<GlobalVariable>(VMap[GVs[i]]); in TestGlobalVariables() 207 ValueToValueMapTy VMap; in TestFuncs() local 208 Module *M = CloneModule(BD.getProgram(), VMap); in TestFuncs() 213 Function *CMF = cast<Function>(VMap[Funcs[i]]); in TestFuncs() 274 ValueToValueMapTy VMap; in TestBlocks() local 275 Module *M = CloneModule(BD.getProgram(), VMap); in TestBlocks() 280 Blocks.insert(cast<BasicBlock>(VMap[BBs[i]])); in TestBlocks() 384 ValueToValueMapTy VMap; in TestInsts() local [all …]
|
D | ExtractFunction.cpp | 229 ValueToValueMapTy &VMap) { in SplitStaticCtorDtor() argument 257 F = cast<Function>(VMap[F]); in SplitStaticCtorDtor() 292 ValueToValueMapTy &VMap) { in SplitFunctionsOutOfModule() argument 310 Function *TNOF = cast<Function>(VMap[F[i]]); in SplitFunctionsOutOfModule()
|
D | BugDriver.h | 326 ValueToValueMapTy &VMap);
|
/external/llvm/lib/Transforms/IPO/ |
D | PartialInlining.cpp | 72 ValueToValueMapTy VMap; in unswitchFunction() local 73 Function* duplicateFunction = CloneFunction(F, VMap, in unswitchFunction() 77 BasicBlock* newEntryBlock = cast<BasicBlock>(VMap[entryBlock]); in unswitchFunction() 78 BasicBlock* newReturnBlock = cast<BasicBlock>(VMap[returnBlock]); in unswitchFunction() 79 BasicBlock* newNonReturnBlock = cast<BasicBlock>(VMap[nonReturnBlock]); in unswitchFunction()
|
/external/llvm/unittests/Transforms/Utils/ |
D | Cloning.cpp | 166 ValueToValueMapTy VMap; in TEST_F() local 167 VMap[A] = UndefValue::get(A->getType()); in TEST_F() 169 CloneFunctionInto(F2, F1, VMap, false, Returns); in TEST_F()
|
/external/llvm/lib/Transforms/Scalar/ |
D | LoopUnswitch.cpp | 122 const ValueToValueMapTy& VMap); 308 const ValueToValueMapTy& VMap) { in cloneData() argument 328 Value* NewI = VMap.lookup(OldInst); in cloneData() 817 ValueToValueMapTy VMap; in UnswitchNontrivialCondition() local 819 BasicBlock *NewBB = CloneBasicBlock(LoopBlocks[i], VMap, ".us", F); in UnswitchNontrivialCondition() 822 VMap[LoopBlocks[i]] = NewBB; // Keep the BB mapping. in UnswitchNontrivialCondition() 832 Loop *NewLoop = CloneLoop(L, L->getParentLoop(), VMap, LI, LPM); in UnswitchNontrivialCondition() 836 BranchesInfo.cloneData(NewLoop, L, VMap); in UnswitchNontrivialCondition() 846 BasicBlock *NewExit = cast<BasicBlock>(VMap[ExitBlocks[i]]); in UnswitchNontrivialCondition() 861 ValueToValueMapTy::iterator It = VMap.find(V); in UnswitchNontrivialCondition() [all …]
|
/external/clang/lib/StaticAnalyzer/Frontend/ |
D | AnalysisConsumer.cpp | 689 typedef llvm::DenseMap<void*,unsigned> VMap; typedef in __anon32f5ba3e0411::UbigraphViz 690 VMap M; 733 VMap::iterator SrcI= M.find(Src); in AddEdge() 744 VMap::iterator DstI= M.find(Dst); in AddEdge()
|
/external/llvm/lib/CodeGen/ |
D | StackColoring.cpp | 487 MachineModuleInfo::VariableDbgInfoMapTy &VMap = MMI->getVariableDbgInfo(); in remapInstructions() local 488 for (MachineModuleInfo::VariableDbgInfoMapTy::iterator VI = VMap.begin(), in remapInstructions() 489 VE = VMap.end(); VI != VE; ++VI) { in remapInstructions()
|
/external/clang/lib/Analysis/ |
D | ThreadSafety.cpp | 1158 LocalVariableMap* VMap; member in __anond7afc2f90111::VarMapBuilder 1162 : VMap(VM), Ctx(C) {} in VarMapBuilder() 1180 Ctx = VMap->addDefinition(VD, E, Ctx); in VisitDeclStmt() 1186 VMap->saveContext(S, Ctx); in VisitDeclStmt() 1201 Ctx = VMap->updateDefinition(VDec, BO->getRHS(), Ctx); in VisitBinaryOperator() 1204 Ctx = VMap->clearDefinition(VDec, Ctx); in VisitBinaryOperator() 1205 VMap->saveContext(BO, Ctx); in VisitBinaryOperator()
|
/external/clang/lib/CodeGen/ |
D | CGVTables.cpp | 230 llvm::ValueToValueMapTy VMap; in GenerateVarArgsThunk() local 231 llvm::Function *NewFn = llvm::CloneFunction(BaseFn, VMap, in GenerateVarArgsThunk()
|
/external/llvm/lib/CodeGen/AsmPrinter/ |
D | DwarfDebug.cpp | 1054 MachineModuleInfo::VariableDbgInfoMapTy &VMap = MMI->getVariableDbgInfo(); in collectVariableInfoFromMMITable() local 1055 for (MachineModuleInfo::VariableDbgInfoMapTy::iterator VI = VMap.begin(), in collectVariableInfoFromMMITable() 1056 VE = VMap.end(); VI != VE; ++VI) { in collectVariableInfoFromMMITable()
|