Home
last modified time | relevance | path

Searched refs:VMap (Results 1 – 23 of 23) sorted by relevance

/external/llvm/lib/Transforms/Utils/
DCloneFunction.cpp39 ValueToValueMapTy &VMap, in CloneBasicBlock() argument
54 VMap[II] = NewInst; // Add instruction map to value. in CloneBasicBlock()
78 ValueToValueMapTy &VMap, in CloneFunctionInto() argument
89 assert(VMap.count(I) && "No mapping from source argument specified!"); in CloneFunctionInto()
101 if (Argument *NewArg = dyn_cast<Argument>(VMap[&OldArg])) { in CloneFunctionInto()
124 BasicBlock *CBB = CloneBasicBlock(&BB, VMap, NameSuffix, NewFunc, CodeInfo); in CloneFunctionInto()
127 VMap[&BB] = CBB; in CloneFunctionInto()
138 VMap[OldBBAddr] = BlockAddress::get(NewFunc, CBB); in CloneFunctionInto()
148 for (Function::iterator BB = cast<BasicBlock>(VMap[OldFunc->begin()]), in CloneFunctionInto()
152 RemapInstruction(II, VMap, in CloneFunctionInto()
[all …]
DCloneModule.cpp31 ValueToValueMapTy VMap; in CloneModule() local
32 return CloneModule(M, VMap); in CloneModule()
35 Module *llvm::CloneModule(const Module *M, ValueToValueMapTy &VMap) { in CloneModule() argument
56 VMap[I] = GV; in CloneModule()
65 VMap[I] = NF; in CloneModule()
76 VMap[I] = GA; in CloneModule()
85 GlobalVariable *GV = cast<GlobalVariable>(VMap[I]); in CloneModule()
87 GV->setInitializer(MapValue(I->getInitializer(), VMap)); in CloneModule()
93 Function *F = cast<Function>(VMap[I]); in CloneModule()
99 VMap[J] = DestI++; in CloneModule()
[all …]
DLoopUnrollRuntime.cpp65 ValueToValueMapTy &VMap, AliasAnalysis *AA, in ConnectProlog() argument
95 V = VMap[I]; in ConnectProlog()
145 LoopBlocksDFS &LoopBlocks, ValueToValueMapTy &VMap, in CloneLoopBlocks() argument
166 BasicBlock *NewBB = CloneBasicBlock(*BB, VMap, ".prol", F); in CloneLoopBlocks()
174 VMap[*BB] = NewBB; in CloneLoopBlocks()
184 VMap.erase((*BB)->getTerminator()); in CloneLoopBlocks()
185 BasicBlock *FirstLoopBB = cast<BasicBlock>(VMap[Header]); in CloneLoopBlocks()
210 PHINode *NewPHI = cast<PHINode>(VMap[I]); in CloneLoopBlocks()
212 VMap[I] = NewPHI->getIncomingValueForBlock(Preheader); in CloneLoopBlocks()
213 cast<BasicBlock>(VMap[Header])->getInstList().erase(NewPHI); in CloneLoopBlocks()
[all …]
DLoopUnroll.cpp50 ValueToValueMapTy &VMap) { in RemapInstruction() argument
53 ValueToValueMapTy::iterator It = VMap.find(Op); in RemapInstruction()
54 if (It != VMap.end()) in RemapInstruction()
60 ValueToValueMapTy::iterator It = VMap.find(PN->getIncomingBlock(i)); in RemapInstruction()
61 if (It != VMap.end()) in RemapInstruction()
316 ValueToValueMapTy VMap; in UnrollLoop() local
317 BasicBlock *New = CloneBasicBlock(*BB, VMap, "." + Twine(It)); in UnrollLoop()
352 PHINode *NewPHI = cast<PHINode>(VMap[OrigPHINode[i]]); in UnrollLoop()
357 VMap[OrigPHINode[i]] = InVal; in UnrollLoop()
363 for (ValueToValueMapTy::iterator VI = VMap.begin(), VE = VMap.end(); in UnrollLoop()
DInlineFunction.cpp288 static void CloneAliasScopeMetadata(CallSite CS, ValueToValueMapTy &VMap) { in CloneAliasScopeMetadata() argument
353 for (ValueToValueMapTy::iterator VMI = VMap.begin(), VMIE = VMap.end(); in CloneAliasScopeMetadata()
397 static void AddAliasScopeMetadata(CallSite CS, ValueToValueMapTy &VMap, in AddAliasScopeMetadata() argument
452 for (ValueToValueMapTy::iterator VMI = VMap.begin(), VMIE = VMap.end(); in AddAliasScopeMetadata()
665 ValueToValueMapTy &VMap, in UpdateCallGraphAfterInlining() argument
688 ValueToValueMapTy::iterator VMI = VMap.find(OrigCall); in UpdateCallGraphAfterInlining()
690 if (VMI == VMap.end() || VMI->second == nullptr) in UpdateCallGraphAfterInlining()
995 ValueToValueMapTy VMap; in InlineFunction() local
1023 VMap[I] = ActualArg; in InlineFunction()
1035 CloneAndPruneFunctionInto(Caller, CalledFunc, VMap, in InlineFunction()
[all …]
DValueMapper.cpp346 void llvm::RemapInstruction(Instruction *I, ValueToValueMapTy &VMap, in RemapInstruction() argument
351 Value *V = MapValue(*op, VMap, Flags, TypeMapper, Materializer); in RemapInstruction()
363 Value *V = MapValue(PN->getIncomingBlock(i), VMap, Flags); in RemapInstruction()
381 MDNode *New = MapMetadata(Old, VMap, Flags, TypeMapper, Materializer); in RemapInstruction()
DSimplifyCFG.cpp2195 ValueToValueMapTy VMap; // maps original values to cloned values in FoldBranchToCommonDest() local
2203 RemapInstruction(NewBonusInst, VMap, in FoldBranchToCommonDest()
2205 VMap[BonusInst] = NewBonusInst; in FoldBranchToCommonDest()
2222 RemapInstruction(New, VMap, in FoldBranchToCommonDest()
/external/llvm/lib/ExecutionEngine/Orc/
DCloneSubModule.cpp11 ValueToValueMapTy &VMap) { in copyGVInitializer() argument
13 New.setInitializer(MapValue(Orig.getInitializer(), VMap)); in copyGVInitializer()
17 ValueToValueMapTy &VMap) { in copyFunctionBody() argument
23 VMap[J] = DestI++; in copyFunctionBody()
27 CloneFunctionInto(&New, &Orig, VMap, /*ModuleLevelChanges=*/true, Returns); in copyFunctionBody()
35 ValueToValueMapTy VMap; in CloneSubModule() local
48 VMap[I] = GV; in CloneSubModule()
57 VMap[I] = NF; in CloneSubModule()
68 VMap[I] = GA; in CloneSubModule()
76 GlobalVariable &GV = *cast<GlobalVariable>(VMap[I]); in CloneSubModule()
[all …]
DIndirectionUtils.cpp94 ValueToValueMapTy &VMap) { in partition() argument
96 copyGVInitializer(New, Orig, VMap); in partition()
108 [&](Function &New, const Function &Orig, ValueToValueMapTy &VMap) { in partition() argument
110 copyFunctionBody(New, Orig, VMap); in partition()
/external/llvm/lib/CodeGen/
DWinEHPrepare.cpp160 void remapEHValues(ValueToValueMapTy &VMap, Value *EHPtrValue,
180 CloningAction handleInstruction(ValueToValueMapTy &VMap,
184 virtual CloningAction handleBeginCatch(ValueToValueMapTy &VMap,
187 virtual CloningAction handleEndCatch(ValueToValueMapTy &VMap,
190 virtual CloningAction handleTypeIdFor(ValueToValueMapTy &VMap,
193 virtual CloningAction handleInvoke(ValueToValueMapTy &VMap,
196 virtual CloningAction handleResume(ValueToValueMapTy &VMap,
199 virtual CloningAction handleLandingPad(ValueToValueMapTy &VMap,
222 CloningAction handleBeginCatch(ValueToValueMapTy &VMap,
225 CloningAction handleEndCatch(ValueToValueMapTy &VMap, const Instruction *Inst,
[all …]
/external/llvm/include/llvm/Transforms/Utils/
DCloning.h52 Module *CloneModule(const Module *M, ValueToValueMapTy &VMap);
98 BasicBlock *CloneBasicBlock(const BasicBlock *BB, ValueToValueMapTy &VMap,
114 Function *CloneFunction(const Function *F, ValueToValueMapTy &VMap,
128 ValueToValueMapTy &VMap, bool ModuleLevelChanges,
155 virtual CloningAction handleInstruction(ValueToValueMapTy &VMap,
165 ValueToValueMapTy &VMap, bool ModuleLevelChanges,
184 ValueToValueMapTy &VMap, bool ModuleLevelChanges,
/external/llvm/tools/bugpoint/
DMiscompilation.cpp261 ValueToValueMapTy VMap; in TestFuncs() local
262 Module *Clone = CloneModule(BD.getProgram(), VMap); in TestFuncs()
267 Function *F = cast<Function>(VMap[Funcs[i]]); in TestFuncs()
272 VMap.clear(); in TestFuncs()
273 Module *ToNotOptimize = CloneModule(BD.getProgram(), VMap); in TestFuncs()
275 VMap); in TestFuncs()
310 ValueToValueMapTy VMap; in ExtractLoops() local
311 Module *ToNotOptimize = CloneModule(BD.getProgram(), VMap); in ExtractLoops()
314 VMap); in ExtractLoops()
341 MiscompiledFunctions[i] = cast<Function>(VMap[MiscompiledFunctions[i]]); in ExtractLoops()
[all …]
DCrashDebugger.cpp131 ValueToValueMapTy VMap; in TestGlobalVariables() local
132 Module *M = CloneModule(BD.getProgram(), VMap); in TestGlobalVariables()
138 GlobalVariable* CMGV = cast<GlobalVariable>(VMap[GVs[i]]); in TestGlobalVariables()
205 ValueToValueMapTy VMap; in TestFuncs() local
206 Module *M = CloneModule(BD.getProgram(), VMap); in TestFuncs()
211 Function *CMF = cast<Function>(VMap[Funcs[i]]); in TestFuncs()
272 ValueToValueMapTy VMap; in TestBlocks() local
273 Module *M = CloneModule(BD.getProgram(), VMap); in TestBlocks()
278 Blocks.insert(cast<BasicBlock>(VMap[BBs[i]])); in TestBlocks()
381 ValueToValueMapTy VMap; in TestInsts() local
[all …]
DExtractFunction.cpp218 ValueToValueMapTy &VMap) { in SplitStaticCtorDtor() argument
246 F = cast<Function>(VMap[F]); in SplitStaticCtorDtor()
281 ValueToValueMapTy &VMap) { in SplitFunctionsOutOfModule() argument
299 Function *TNOF = cast<Function>(VMap[F[i]]); in SplitFunctionsOutOfModule()
DBugDriver.h333 ValueToValueMapTy &VMap);
/external/llvm/lib/Transforms/IPO/
DPartialInlining.cpp73 ValueToValueMapTy VMap; in unswitchFunction() local
74 Function* duplicateFunction = CloneFunction(F, VMap, in unswitchFunction()
78 BasicBlock* newEntryBlock = cast<BasicBlock>(VMap[entryBlock]); in unswitchFunction()
79 BasicBlock* newReturnBlock = cast<BasicBlock>(VMap[returnBlock]); in unswitchFunction()
80 BasicBlock* newNonReturnBlock = cast<BasicBlock>(VMap[nonReturnBlock]); in unswitchFunction()
/external/llvm/unittests/Transforms/Utils/
DCloning.cpp172 ValueToValueMapTy VMap; in TEST_F() local
173 VMap[A] = UndefValue::get(A->getType()); in TEST_F()
175 CloneFunctionInto(F2, F1, VMap, false, Returns); in TEST_F()
195 ValueToValueMapTy VMap; in TEST_F() local
196 VMap[F1->arg_begin()] = F2->arg_begin(); in TEST_F()
198 CloneFunctionInto(F2, F1, VMap, false, Returns); in TEST_F()
275 ValueToValueMapTy VMap; in CreateNewFunc() local
276 NewFunc = CloneFunction(OldFunc, VMap, true, nullptr); in CreateNewFunc()
/external/llvm/include/llvm/ExecutionEngine/Orc/
DCloneSubModule.h44 ValueToValueMapTy &VMap);
50 ValueToValueMapTy &VMap);
/external/llvm/lib/Target/R600/
DAMDGPUAlwaysInlinePass.cpp48 ValueToValueMapTy VMap; in runOnModule() local
49 Function *NewFunc = CloneFunction(F, VMap, false); in runOnModule()
/external/llvm/lib/Transforms/Scalar/
DLoopUnswitch.cpp126 const ValueToValueMapTy &VMap);
306 const ValueToValueMapTy &VMap) { in cloneData() argument
326 Value *NewI = VMap.lookup(OldInst); in cloneData()
822 ValueToValueMapTy VMap; in UnswitchNontrivialCondition() local
824 BasicBlock *NewBB = CloneBasicBlock(LoopBlocks[i], VMap, ".us", F); in UnswitchNontrivialCondition()
827 VMap[LoopBlocks[i]] = NewBB; // Keep the BB mapping. in UnswitchNontrivialCondition()
841 Loop *NewLoop = CloneLoop(L, L->getParentLoop(), VMap, LI, LPM); in UnswitchNontrivialCondition()
845 BranchesInfo.cloneData(NewLoop, L, VMap); in UnswitchNontrivialCondition()
855 BasicBlock *NewExit = cast<BasicBlock>(VMap[ExitBlocks[i]]); in UnswitchNontrivialCondition()
869 ValueToValueMapTy::iterator It = VMap.find(V); in UnswitchNontrivialCondition()
[all …]
/external/clang/lib/StaticAnalyzer/Frontend/
DAnalysisConsumer.cpp720 typedef llvm::DenseMap<void*,unsigned> VMap; typedef in __anon6ef278b80411::UbigraphViz
721 VMap M;
749 VMap::iterator SrcI= M.find(Src); in AddEdge()
760 VMap::iterator DstI= M.find(Dst); in AddEdge()
/external/clang/lib/Analysis/
DThreadSafety.cpp550 LocalVariableMap* VMap; member in __anonf2d84fb30811::VarMapBuilder
554 : VMap(VM), Ctx(C) {} in VarMapBuilder()
572 Ctx = VMap->addDefinition(VD, E, Ctx); in VisitDeclStmt()
578 VMap->saveContext(S, Ctx); in VisitDeclStmt()
593 Ctx = VMap->updateDefinition(VDec, BO->getRHS(), Ctx); in VisitBinaryOperator()
596 Ctx = VMap->clearDefinition(VDec, Ctx); in VisitBinaryOperator()
597 VMap->saveContext(BO, Ctx); in VisitBinaryOperator()
/external/clang/lib/CodeGen/
DCGVTables.cpp141 llvm::ValueToValueMapTy VMap; in GenerateVarArgsThunk() local
142 llvm::Function *NewFn = llvm::CloneFunction(BaseFn, VMap, in GenerateVarArgsThunk()