/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Utils/ |
D | CloneFunction.cpp | 40 BasicBlock *llvm::CloneBasicBlock(const BasicBlock *BB, ValueToValueMapTy &VMap, in CloneBasicBlock() argument 61 VMap[&I] = NewInst; // Add instruction map to value. in CloneBasicBlock() 85 ValueToValueMapTy &VMap, in CloneFunctionInto() argument 95 assert(VMap.count(&I) && "No mapping from source argument specified!"); in CloneFunctionInto() 107 MapValue(OldFunc->getPersonalityFn(), VMap, in CloneFunctionInto() 116 if (Argument *NewArg = dyn_cast<Argument>(VMap[&OldArg])) { in CloneFunctionInto() 133 auto &MD = VMap.MD(); in CloneFunctionInto() 148 *MapMetadata(MD.second, VMap, in CloneFunctionInto() 169 BasicBlock *CBB = CloneBasicBlock(&BB, VMap, NameSuffix, NewFunc, CodeInfo, in CloneFunctionInto() 173 VMap[&BB] = CBB; in CloneFunctionInto() [all …]
|
D | CloneModule.cpp | 37 ValueToValueMapTy VMap; in CloneModule() local 38 return CloneModule(M, VMap); in CloneModule() 42 ValueToValueMapTy &VMap) { in CloneModule() argument 43 return CloneModule(M, VMap, [](const GlobalValue *GV) { return true; }); in CloneModule() 47 const Module &M, ValueToValueMapTy &VMap, in CloneModule() argument 71 VMap[&*I] = GV; in CloneModule() 80 VMap[&I] = NF; in CloneModule() 101 VMap[&*I] = GV; in CloneModule() 111 VMap[&*I] = GA; in CloneModule() 123 GlobalVariable *GV = cast<GlobalVariable>(VMap[&*I]); in CloneModule() [all …]
|
D | LoopUnrollRuntime.cpp | 71 ValueToValueMapTy &VMap, DominatorTree *DT, in ConnectProlog() argument 86 BasicBlock *PrologLatch = cast<BasicBlock>(VMap[Latch]); in ConnectProlog() 118 V = VMap.lookup(I); in ConnectProlog() 186 ValueToValueMapTy &VMap, DominatorTree *DT, in ConnectEpilog() argument 190 BasicBlock *EpilogLatch = cast<BasicBlock>(VMap[Latch]); in ConnectEpilog() 230 V = VMap.lookup(I); in ConnectEpilog() 266 PHINode *VPN = cast<PHINode>(VMap[&PN]); in ConnectEpilog() 305 ValueToValueMapTy &VMap, DominatorTree *DT, LoopInfo *LI) { in CloneLoopBlocks() argument 321 BasicBlock *NewBB = CloneBasicBlock(*BB, VMap, "." + suffix, F); in CloneLoopBlocks() 330 VMap[*BB] = NewBB; in CloneLoopBlocks() [all …]
|
D | LoopUnrollPeel.cpp | 494 ValueToValueMapTy &VMap, ValueToValueMapTy &LVMap, DominatorTree *DT, in cloneLoopBlocks() argument 508 BasicBlock *NewBB = CloneBasicBlock(*BB, VMap, ".peel", F); in cloneLoopBlocks() 514 VMap[*BB] = NewBB; in cloneLoopBlocks() 523 DT->addNewBlock(NewBB, cast<BasicBlock>(VMap[IDom->getBlock()])); in cloneLoopBlocks() 532 InsertTop->getTerminator()->setSuccessor(0, cast<BasicBlock>(VMap[Header])); in cloneLoopBlocks() 539 BasicBlock *NewLatch = cast<BasicBlock>(VMap[Latch]); in cloneLoopBlocks() 558 PHINode *NewPHI = cast<PHINode>(VMap[&*I]); in cloneLoopBlocks() 560 VMap[&*I] = NewPHI->getIncomingValueForBlock(PreHeader); in cloneLoopBlocks() 565 VMap[&*I] = LVMap[LatchInst]; in cloneLoopBlocks() 567 VMap[&*I] = LatchVal; in cloneLoopBlocks() [all …]
|
D | InlineFunction.cpp | 771 ValueToValueMapTy &VMap) { in PropagateParallelLoopAccessMetadata() argument 779 for (ValueToValueMapTy::iterator VMI = VMap.begin(), VMIE = VMap.end(); in PropagateParallelLoopAccessMetadata() 813 static void CloneAliasScopeMetadata(CallSite CS, ValueToValueMapTy &VMap) { in CloneAliasScopeMetadata() argument 875 for (ValueToValueMapTy::iterator VMI = VMap.begin(), VMIE = VMap.end(); in CloneAliasScopeMetadata() 919 static void AddAliasScopeMetadata(CallSite CS, ValueToValueMapTy &VMap, in AddAliasScopeMetadata() argument 972 for (ValueToValueMapTy::iterator VMI = VMap.begin(), VMIE = VMap.end(); in AddAliasScopeMetadata() 1181 ValueToValueMapTy &VMap, in UpdateCallGraphAfterInlining() argument 1204 ValueToValueMapTy::iterator VMI = VMap.find(OrigCall); in UpdateCallGraphAfterInlining() 1206 if (VMI == VMap.end() || VMI->second == nullptr) in UpdateCallGraphAfterInlining() 1471 const ValueToValueMapTy &VMap, in updateCallerBFI() argument [all …]
|
D | LoopUnroll.cpp | 68 void llvm::remapInstruction(Instruction *I, ValueToValueMapTy &VMap) { in remapInstruction() argument 85 ValueToValueMapTy::iterator It = VMap.find(Op); in remapInstruction() 86 if (It != VMap.end()) in remapInstruction() 92 ValueToValueMapTy::iterator It = VMap.find(PN->getIncomingBlock(i)); in remapInstruction() 93 if (It != VMap.end()) in remapInstruction() 608 ValueToValueMapTy VMap; in UnrollLoop() local 609 BasicBlock *New = CloneBasicBlock(*BB, VMap, "." + Twine(It)); in UnrollLoop() 623 PHINode *NewPHI = cast<PHINode>(VMap[OrigPHI]); in UnrollLoop() 628 VMap[OrigPHI] = InVal; in UnrollLoop() 634 for (ValueToValueMapTy::iterator VI = VMap.begin(), VE = VMap.end(); in UnrollLoop()
|
D | LoopVersioning.cpp | 106 cloneLoopWithPreheader(PH, RuntimeCheckBB, VersionedLoop, VMap, in versionLoop() 108 remapInstructionsInBlocks(NonVersionedLoopBlocks, VMap); in versionLoop() 161 auto Mapped = VMap.find(ClonedValue); in addPHINodes() 162 if (Mapped != VMap.end()) in addPHINodes()
|
D | SplitModule.cpp | 272 ValueToValueMapTy VMap; in SplitModule() local 274 CloneModule(*M, VMap, [&](const GlobalValue *GV) { in SplitModule()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/ExecutionEngine/Orc/ |
D | IndirectionUtils.cpp | 290 ValueToValueMapTy *VMap) { in cloneFunctionDecl() argument 296 if (VMap) { in cloneFunctionDecl() 297 (*VMap)[&F] = NewF; in cloneFunctionDecl() 301 (*VMap)[&*ArgI] = &*NewArgI; in cloneFunctionDecl() 307 void moveFunctionBody(Function &OrigF, ValueToValueMapTy &VMap, in moveFunctionBody() argument 312 NewF = cast<Function>(VMap[&OrigF]); in moveFunctionBody() 314 assert(VMap[&OrigF] == NewF && "Incorrect function mapping in VMap."); in moveFunctionBody() 321 CloneFunctionInto(NewF, &OrigF, VMap, /*ModuleLevelChanges=*/true, Returns, in moveFunctionBody() 327 ValueToValueMapTy *VMap) { in cloneGlobalVariableDecl() argument 333 if (VMap) in cloneGlobalVariableDecl() [all …]
|
D | ThreadSafeModule.cpp | 31 ValueToValueMapTy VMap; in cloneToNewContext() local 32 auto Tmp = CloneModule(M, VMap, [&](const GlobalValue *GV) { in cloneToNewContext()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Transforms/Utils/ |
D | Cloning.h | 53 std::unique_ptr<Module> CloneModule(const Module &M, ValueToValueMapTy &VMap); 60 CloneModule(const Module &M, ValueToValueMapTy &VMap, 109 BasicBlock *CloneBasicBlock(const BasicBlock *BB, ValueToValueMapTy &VMap, 126 Function *CloneFunction(Function *F, ValueToValueMapTy &VMap, 139 ValueToValueMapTy &VMap, bool ModuleLevelChanges, 148 ValueToValueMapTy &VMap, bool ModuleLevelChanges, 165 ValueToValueMapTy &VMap, bool ModuleLevelChanges, 247 Loop *OrigLoop, ValueToValueMapTy &VMap, 254 ValueToValueMapTy &VMap); 273 const ValueMap<const Value *, WeakTrackingVH> *VMap = nullptr);
|
D | LoopVersioning.h | 122 ValueToValueMapTy VMap; variable
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Scalar/ |
D | SimpleLoopUnswitch.cpp | 991 ValueToValueMapTy &VMap, in buildClonedLoopBlocks() argument 1001 BasicBlock *NewBB = CloneBasicBlock(OldBB, VMap, ".us", OldBB->getParent()); in buildClonedLoopBlocks() 1006 VMap[OldBB] = NewBB; in buildClonedLoopBlocks() 1067 assert(VMap.lookup(&I) == &ClonedI && "Mismatch in the value map!"); in buildClonedLoopBlocks() 1085 RemapInstruction(&I, VMap, in buildClonedLoopBlocks() 1097 if (auto *ClonedSuccBB = cast_or_null<BasicBlock>(VMap.lookup(SuccBB))) in buildClonedLoopBlocks() 1103 auto *ClonedParentBB = cast<BasicBlock>(VMap.lookup(ParentBB)); in buildClonedLoopBlocks() 1108 auto *ClonedSuccBB = cast_or_null<BasicBlock>(VMap.lookup(SuccBB)); in buildClonedLoopBlocks() 1118 auto *ClonedSuccBB = cast<BasicBlock>(VMap.lookup(UnswitchedSuccBB)); in buildClonedLoopBlocks() 1159 const ValueToValueMapTy &VMap, LoopInfo &LI) { in cloneLoopNest() argument [all …]
|
D | LoopUnswitch.cpp | 167 const ValueToValueMapTy &VMap); 358 const ValueToValueMapTy &VMap) { in cloneData() argument 379 Value *NewI = VMap.lookup(OldInst); in cloneData() 1280 ValueToValueMapTy VMap; in UnswitchNontrivialCondition() local 1282 BasicBlock *NewBB = CloneBasicBlock(LoopBlocks[i], VMap, ".us", F); in UnswitchNontrivialCondition() 1285 VMap[LoopBlocks[i]] = NewBB; // Keep the BB mapping. in UnswitchNontrivialCondition() 1296 Loop *NewLoop = CloneLoop(L, L->getParentLoop(), VMap, LI, LPM); in UnswitchNontrivialCondition() 1300 BranchesInfo.cloneData(NewLoop, L, VMap); in UnswitchNontrivialCondition() 1310 BasicBlock *NewExit = cast<BasicBlock>(VMap[ExitBlocks[i]]); in UnswitchNontrivialCondition() 1323 ValueToValueMapTy::iterator It = VMap.find(V); in UnswitchNontrivialCondition() [all …]
|
D | LoopDistribute.cpp | 189 VMap, Twine(".ldist") + Twine(Index), in cloneLoopWithPreheader() 207 ValueToValueMapTy &getVMap() { return VMap; } in getVMap() 211 remapInstructionsInBlocks(ClonedLoopBlocks, VMap); in remapInstructions() 223 if (!VMap.empty()) in removeUnusedInsts() 224 NewInst = cast<Instruction>(VMap[NewInst]); in removeUnusedInsts() 274 ValueToValueMapTy VMap; member in __anon6e50f3970111::InstPartition
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ExecutionEngine/Orc/ |
D | CompileOnDemandLayer.h | 451 ValueToValueMapTy VMap; in addLogicalModule() local 455 if (!GV.isDeclaration() && !VMap.count(&GV)) in addLogicalModule() 456 cloneGlobalVariableDecl(*GVsM, GV, &VMap); in addLogicalModule() 460 if (!VMap.count(&A)) in addLogicalModule() 461 cloneGlobalAliasDecl(*GVsM, A, VMap); in addLogicalModule() 464 cloneModuleFlagsMetadata(*GVsM, SrcM, VMap); in addLogicalModule() 502 moveGlobalVariableInitializer(GV, VMap, &Materializer); in addLogicalModule() 506 auto *NewA = cast<GlobalAlias>(VMap[&A]); in addLogicalModule() 508 Value *Init = MapValue(A.getAliasee(), VMap, RF_None, nullptr, in addLogicalModule() 642 ValueToValueMapTy VMap; in emitPartition() local [all …]
|
D | IndirectionUtils.h | 450 ValueToValueMapTy *VMap = nullptr); 460 void moveFunctionBody(Function &OrigF, ValueToValueMapTy &VMap, 466 ValueToValueMapTy *VMap = nullptr); 477 ValueToValueMapTy &VMap, 483 ValueToValueMapTy &VMap); 487 ValueToValueMapTy &VMap);
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Coroutines/ |
D | CoroSplit.cpp | 99 ValueToValueMapTy VMap; member in __anon62fd48b20111::CoroCloner 376 auto *Switch = cast<SwitchInst>(VMap[Shape.SwitchLowering.ResumeSwitch]); in handleFinalSuspend() 420 auto NewS = VMap[ActiveSuspend]; in replaceRetconSuspendUses() 484 auto *MappedCS = cast<AnyCoroSuspendInst>(VMap[CS]); in replaceCoroSuspends() 494 auto NewCE = cast<CoroEndInst>(VMap[CE]); in replaceCoroEnds() 500 ValueToValueMapTy *VMap) { in replaceSwiftErrorOps() argument 529 auto MappedOp = VMap ? cast<CallInst>((*VMap)[Op]) : Op; in replaceSwiftErrorOps() 552 if (VMap == nullptr) { in replaceSwiftErrorOps() 558 ::replaceSwiftErrorOps(*NewF, Shape, &VMap); in replaceSwiftErrorOps() 567 auto *Entry = cast<BasicBlock>(VMap[Shape.AllocaSpillBlock]); in replaceEntryBlock() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/ |
D | MemorySSAUpdater.cpp | 546 const ValueToValueMapTy &VMap, in getNewDefiningAccessForClone() argument 556 cast_or_null<Instruction>(VMap.lookup(DefMUDI))) { in getNewDefiningAccessForClone() 569 &*(--DefIt), VMap, MPhiMap, CloneWasSimplified, MSSA); in getNewDefiningAccessForClone() 583 const ValueToValueMapTy &VMap, in cloneUsesAndDefs() argument 600 dyn_cast_or_null<Instruction>(VMap.lookup(Insn))) { in cloneUsesAndDefs() 603 getNewDefiningAccessForClone(MUD->getDefiningAccess(), VMap, in cloneUsesAndDefs() 655 const ValueToValueMapTy &VMap, in updateForClonedLoop() argument 668 if (BasicBlock *NewIncBB = cast_or_null<BasicBlock>(VMap.lookup(IncBB))) in updateForClonedLoop() 686 cast_or_null<Instruction>(VMap.lookup(IncI))) { in updateForClonedLoop() 704 BasicBlock *NewBlock = cast_or_null<BasicBlock>(VMap.lookup(BB)); in updateForClonedLoop() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/IPO/ |
D | PartialInlining.cpp | 973 ValueToValueMapTy VMap; in FunctionCloner() local 974 ClonedFunc = CloneFunction(F, VMap); in FunctionCloner() 976 ClonedOI->ReturnBlock = cast<BasicBlock>(VMap[OI->ReturnBlock]); in FunctionCloner() 977 ClonedOI->NonReturnBlock = cast<BasicBlock>(VMap[OI->NonReturnBlock]); in FunctionCloner() 979 ClonedOI->Entries.push_back(cast<BasicBlock>(VMap[BB])); in FunctionCloner() 982 BasicBlock *NewE = cast<BasicBlock>(VMap[E]); in FunctionCloner() 998 ValueToValueMapTy VMap; in FunctionCloner() local 999 ClonedFunc = CloneFunction(F, VMap); in FunctionCloner() 1007 Region.push_back(cast<BasicBlock>(VMap[BB])); in FunctionCloner() 1009 BasicBlock *NewEntryBlock = cast<BasicBlock>(VMap[RegionInfo.EntryBlock]); in FunctionCloner() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Instrumentation/ |
D | ControlHeightReduction.cpp | 381 ValueToValueMapTy &VMap); 385 ValueToValueMapTy &VMap); 1737 ValueToValueMapTy VMap; in transformScopes() local 1741 cloneScopeBlocks(Scope, PreEntryBlock, ExitBlock, LastRegion, VMap); in transformScopes() 1746 NewEntryBlock, VMap); in transformScopes() 1772 ValueToValueMapTy &VMap) { in cloneScopeBlocks() argument 1783 BasicBlock *NewBB = CloneBasicBlock(BB, VMap, ".nonchr", &F); in cloneScopeBlocks() 1785 VMap[BB] = NewBB; in cloneScopeBlocks() 1798 RemapInstruction(&I, VMap, in cloneScopeBlocks() 1811 auto It = VMap.find(V); in cloneScopeBlocks() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/ |
D | IRTranslator.cpp | 163 assert(!VMap.contains(Val) && "Value already allocated in VMap"); in allocateVRegs() 164 auto *Regs = VMap.getVRegs(Val); in allocateVRegs() 165 auto *Offsets = VMap.getOffsets(Val); in allocateVRegs() 175 auto VRegsIt = VMap.findVRegs(Val); in getOrCreateVRegs() 176 if (VRegsIt != VMap.vregs_end()) in getOrCreateVRegs() 180 return *VMap.getVRegs(Val); in getOrCreateVRegs() 183 auto *VRegs = VMap.getVRegs(Val); in getOrCreateVRegs() 184 auto *Offsets = VMap.getOffsets(Val); in getOrCreateVRegs() 871 ArrayRef<uint64_t> Offsets = *VMap.getOffsets(LI); in translateLoad() 915 ArrayRef<uint64_t> Offsets = *VMap.getOffsets(*SI.getValueOperand()); in translateStore() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/ |
D | R600OpenCLImageTypeLoweringPass.cpp | 307 ValueToValueMapTy VMap; in addImplicitArgs() local 312 VMap[&Arg] = &(*NewFArgIt++); in addImplicitArgs() 319 CloneFunctionInto(NewF, F, VMap, /*ModuleLevelChanges=*/false, Returns); in addImplicitArgs()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/ |
D | MemorySSAUpdater.h | 130 const ValueToValueMapTy &VMap, 298 const ValueToValueMapTy &VMap, PhiToDefMap &MPhiMap,
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/ |
D | WinEHPrepare.cpp | 738 ValueToValueMapTy VMap; in cloneCommonBlocks() local 753 CloneBasicBlock(BB, VMap, Twine(".for.", FuncletPadBB->getName())); in cloneCommonBlocks() 759 VMap[BB] = CBB; in cloneCommonBlocks() 804 RemapInstruction(&I, VMap, in cloneCommonBlocks() 880 ValueToValueMapTy::iterator I = VMap.find(Inst); in cloneCommonBlocks() 881 if (I != VMap.end()) in cloneCommonBlocks() 890 for (ValueToValueMapTy::value_type VT : VMap) { in cloneCommonBlocks()
|