Home
last modified time | relevance | path

Searched refs:InsertPos (Results 1 – 25 of 52) sorted by relevance

123

/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/WebAssembly/
DWebAssemblyCFGStackify.cpp139 auto InsertPos = MBB->end(); in getEarliestInsertPos() local
140 while (InsertPos != MBB->begin()) { in getEarliestInsertPos()
141 if (BeforeSet.count(&*std::prev(InsertPos))) { in getEarliestInsertPos()
144 for (auto Pos = InsertPos, E = MBB->begin(); Pos != E; --Pos) in getEarliestInsertPos()
149 --InsertPos; in getEarliestInsertPos()
151 return InsertPos; in getEarliestInsertPos()
163 auto InsertPos = MBB->begin(); in getLatestInsertPos() local
164 while (InsertPos != MBB->end()) { in getLatestInsertPos()
165 if (AfterSet.count(&*InsertPos)) { in getLatestInsertPos()
168 for (auto Pos = InsertPos, E = MBB->end(); Pos != E; ++Pos) in getLatestInsertPos()
[all …]
DWebAssemblyLateEHPrepare.cpp132 auto InsertPos = MBB.begin(); in addCatches() local
133 if (InsertPos->isEHLabel()) // EH pad starts with an EH label in addCatches()
134 ++InsertPos; in addCatches()
136 BuildMI(MBB, InsertPos, MBB.begin()->getDebugLoc(), in addCatches()
382 auto InsertPos = MBB.begin(); in restoreStackPointer() local
383 if (InsertPos->isEHLabel()) // EH pad starts with an EH label in restoreStackPointer()
384 ++InsertPos; in restoreStackPointer()
385 if (InsertPos->getOpcode() == WebAssembly::CATCH) in restoreStackPointer()
386 ++InsertPos; in restoreStackPointer()
387 FrameLowering->writeSPToGlobal(WebAssembly::SP32, MF, MBB, InsertPos, in restoreStackPointer()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/GlobalISel/
DCSEMIRBuilder.cpp191 void *InsertPos = nullptr; in buildInstr() local
193 MachineInstrBuilder MIB = getDominatingInstrForID(ID, InsertPos); in buildInstr()
201 return memoizeMI(NewMIB, InsertPos); in buildInstr()
217 void *InsertPos = nullptr; in buildConstant() local
221 MachineInstrBuilder MIB = getDominatingInstrForID(ID, InsertPos); in buildConstant()
228 return memoizeMI(NewMIB, InsertPos); in buildConstant()
244 void *InsertPos = nullptr; in buildFConstant() local
248 MachineInstrBuilder MIB = getDominatingInstrForID(ID, InsertPos); in buildFConstant()
254 return memoizeMI(NewMIB, InsertPos); in buildFConstant()
DCSEInfo.cpp108 void *&InsertPos) { in getNodeIfExists() argument
109 auto *Node = CSEMap.FindNodeOrInsertPos(ID, InsertPos); in getNodeIfExists()
122 void GISelCSEInfo::insertNode(UniqueMachineInstr *UMI, void *InsertPos) { in insertNode() argument
126 if (InsertPos) in insertNode()
127 CSEMap.InsertNode(UMI, InsertPos); in insertNode()
145 void GISelCSEInfo::insertInstr(MachineInstr *MI, void *InsertPos) { in insertInstr() argument
150 insertNode(Node, InsertPos); in insertInstr()
155 void *&InsertPos) { in getMachineInstrIfExists() argument
157 if (auto *Inst = getNodeIfExists(ID, MBB, InsertPos)) { in getMachineInstrIfExists()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/ADT/
DFoldingSet.h208 Node *FindNodeOrInsertPos(const FoldingSetNodeID &ID, void *&InsertPos);
213 void InsertNode(Node *N, void *InsertPos);
444 T *FindNodeOrInsertPos(const FoldingSetNodeID &ID, void *&InsertPos) { in FindNodeOrInsertPos() argument
445 return static_cast<T *>(FoldingSetBase::FindNodeOrInsertPos(ID, InsertPos)); in FindNodeOrInsertPos()
451 void InsertNode(T *N, void *InsertPos) { in InsertNode() argument
452 FoldingSetBase::InsertNode(N, InsertPos); in InsertNode()
581 T *FindNodeOrInsertPos(const FoldingSetNodeID &ID, void *&InsertPos) { in FindNodeOrInsertPos() argument
582 return Set.FindNodeOrInsertPos(ID, InsertPos); in FindNodeOrInsertPos()
597 void InsertNode(T *N, void *InsertPos) { in InsertNode() argument
598 Set.InsertNode(N, InsertPos); in InsertNode()
DImmutableList.h179 void* InsertPos; in concat() local
183 ListTy* L = Cache.FindNodeOrInsertPos(ID, InsertPos); in concat()
192 Cache.InsertNode(L, InsertPos); in concat()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/
DFoldingSet.cpp322 void *&InsertPos) { in FindNodeOrInsertPos() argument
327 InsertPos = nullptr; in FindNodeOrInsertPos()
339 InsertPos = Bucket; in FindNodeOrInsertPos()
346 void FoldingSetBase::InsertNode(Node *N, void *InsertPos) { in InsertNode() argument
352 InsertPos = GetBucketFor(ComputeNodeHash(N, TempID), Buckets, NumBuckets); in InsertNode()
358 void **Bucket = static_cast<void**>(InsertPos); in InsertNode()
DItaniumManglingCanonicalizer.cpp112 void *InsertPos; in getOrCreateNode() local
113 if (NodeHeader *Existing = Nodes.FindNodeOrInsertPos(ID, InsertPos)) in getOrCreateNode()
125 Nodes.InsertNode(New, InsertPos); in getOrCreateNode()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/
DCSEInfo.h99 MachineBasicBlock *MBB, void *&InsertPos);
104 void insertNode(UniqueMachineInstr *UMI, void *InsertPos = nullptr);
110 void *&InsertPos);
114 void insertInstr(MachineInstr *MI, void *InsertPos = nullptr);
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/SelectionDAG/
DInstrEmitter.cpp177 BuildMI(*MBB, InsertPos, Node->getDebugLoc(), TII->get(TargetOpcode::COPY), in EmitCopyFromReg()
276 BuildMI(*MBB, InsertPos, Op.getDebugLoc(), in getVR()
323 BuildMI(*MBB, InsertPos, Op.getNode()->getDebugLoc(), in AddRegisterOperand()
390 BuildMI(*MBB, InsertPos, Op.getNode()->getDebugLoc(), in AddOperand()
468 BuildMI(*MBB, InsertPos, DL, TII->get(TargetOpcode::COPY), NewReg) in ConstrainForSubReg()
524 BuildMI(*MBB, InsertPos, Node->getDebugLoc(), in EmitSubregNode()
541 BuildMI(*MBB, InsertPos, Node->getDebugLoc(), in EmitSubregNode()
593 MBB->insert(InsertPos, MIB); in EmitSubregNode()
617 BuildMI(*MBB, InsertPos, Node->getDebugLoc(), TII->get(TargetOpcode::COPY), in EmitCopyToRegClassNode()
667 MBB->insert(InsertPos, MIB); in EmitRegSequence()
[all …]
DScheduleDAGSDNodes.cpp741 MachineBasicBlock::iterator InsertPos = Emitter.getInsertPos(); in ProcessSDDbgValues() local
750 BB->insert(InsertPos, DbgMI); in ProcessSDDbgValues()
788 MachineBasicBlock::iterator InsertPos) { in EmitPhysRegCopy() argument
806 BuildMI(*BB, InsertPos, DebugLoc(), TII->get(TargetOpcode::COPY), Reg) in EmitPhysRegCopy()
815 BuildMI(*BB, InsertPos, DebugLoc(), TII->get(TargetOpcode::COPY), VRBase) in EmitPhysRegCopy()
827 EmitSchedule(MachineBasicBlock::iterator &InsertPos) { in EmitSchedule() argument
828 InstrEmitter Emitter(BB, InsertPos); in EmitSchedule()
879 BB->insert(InsertPos, DbgMI); in EmitSchedule()
891 TII->insertNoop(*Emitter.getBlock(), InsertPos); in EmitSchedule()
899 EmitPhysRegCopy(SU, CopyVRBaseMap, InsertPos); in EmitSchedule()
[all …]
DInstrEmitter.h36 MachineBasicBlock::iterator InsertPos; variable
127 MachineBasicBlock::iterator getInsertPos() { return InsertPos; } in getInsertPos()
DScheduleDAGSDNodes.h123 EmitSchedule(MachineBasicBlock::iterator &InsertPos);
188 MachineBasicBlock::iterator InsertPos);
DScheduleDAGFast.cpp650 EmitSchedule(MachineBasicBlock::iterator &InsertPos) override;
762 ScheduleDAGLinearize::EmitSchedule(MachineBasicBlock::iterator &InsertPos) { in EmitSchedule() argument
763 InstrEmitter Emitter(BB, InsertPos); in EmitSchedule()
777 MachineBasicBlock::iterator InsertPos = Emitter.getInsertPos(); in EmitSchedule() local
781 BB->insert(InsertPos, DbgMI); in EmitSchedule()
788 InsertPos = Emitter.getInsertPos(); in EmitSchedule()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Transforms/Vectorize/
DVPlan.cpp278 void VPRecipeBase::insertBefore(VPRecipeBase *InsertPos) { in insertBefore() argument
280 assert(InsertPos->getParent() && in insertBefore()
282 Parent = InsertPos->getParent(); in insertBefore()
283 Parent->getRecipeList().insert(InsertPos->getIterator(), this); in insertBefore()
286 void VPRecipeBase::insertAfter(VPRecipeBase *InsertPos) { in insertAfter() argument
288 assert(InsertPos->getParent() && in insertAfter()
290 Parent = InsertPos->getParent(); in insertAfter()
291 Parent->getRecipeList().insertAfter(InsertPos->getIterator(), this); in insertAfter()
305 void VPRecipeBase::moveAfter(VPRecipeBase *InsertPos) { in moveAfter() argument
307 insertAfter(InsertPos); in moveAfter()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/CodeGen/
DMachineSink.cpp838 MachineBasicBlock::iterator InsertPos, in performSink() argument
844 if (!SuccToSinkTo.empty() && InsertPos != SuccToSinkTo.end()) in performSink()
846 InsertPos->getDebugLoc())); in performSink()
852 SuccToSinkTo.splice(InsertPos, ParentBlock, MI, in performSink()
864 SuccToSinkTo.insert(InsertPos, NewDbgMI); in performSink()
981 MachineBasicBlock::iterator InsertPos = SuccToSinkTo->begin(); in SinkInstruction() local
982 while (InsertPos != SuccToSinkTo->end() && InsertPos->isPHI()) in SinkInstruction()
983 ++InsertPos; in SinkInstruction()
1014 performSink(MI, *SuccToSinkTo, InsertPos, DbgUsersToSink); in SinkInstruction()
1376 MachineBasicBlock::iterator InsertPos = SuccBB->getFirstNonPHI(); in tryToSinkCopy() local
[all …]
DPHIElimination.cpp395 MachineBasicBlock::iterator InsertPos = in LowerPHINode() local
405 NewSrcInstr = BuildMI(opBlock, InsertPos, MPhi->getDebugLoc(), in LowerPHINode()
415 TII->createPHISourceCopy(opBlock, InsertPos, MPhi->getDebugLoc(), in LowerPHINode()
525 KillInst = std::prev(InsertPos); in LowerPHINode()
DTwoAddressInstructionPass.cpp993 MachineBasicBlock::iterator InsertPos = KillPos; in rescheduleMIBelowKill() local
999 MBB->splice(InsertPos, MBB, CopyMI); in rescheduleMIBelowKill()
1001 InsertPos = CopyMI; in rescheduleMIBelowKill()
1007 MBB->splice(InsertPos, MBB, Begin, End); in rescheduleMIBelowKill()
1164 MachineBasicBlock::iterator InsertPos = mi; in rescheduleKillAboveMI() local
1165 while (InsertPos != MBB->begin() && std::prev(InsertPos)->isDebugInstr()) in rescheduleKillAboveMI()
1166 --InsertPos; in rescheduleKillAboveMI()
1171 MBB->splice(InsertPos, MBB, From, To); in rescheduleKillAboveMI()
1173 nmi = std::prev(InsertPos); // Backtrack so we process the moved instr. in rescheduleKillAboveMI()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/AMDGPU/
DR600ControlFlowFinalizer.cpp395 MachineBasicBlock::iterator InsertPos, in insertLiterals() argument
397 MachineBasicBlock *MBB = InsertPos->getParent(); in insertLiterals()
401 InsertPos = BuildMI(MBB, InsertPos->getDebugLoc(), in insertLiterals()
406 return InsertPos; in insertLiterals()
468 void EmitFetchClause(MachineBasicBlock::iterator InsertPos, in EmitFetchClause() argument
475 BB->splice(InsertPos, BB, Clause.second[i]); in EmitFetchClause()
480 void EmitALUClause(MachineBasicBlock::iterator InsertPos, const DebugLoc &DL, in EmitALUClause() argument
487 BB->splice(InsertPos, BB, Clause.second[i]); in EmitALUClause()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Analysis/
DVectorUtils.h421 InsertPos(nullptr) {} in InterleaveGroup()
424 : Alignment(Alignment), InsertPos(Instr) { in InterleaveGroup()
502 InstTy *getInsertPos() const { return InsertPos; } in getInsertPos()
503 void setInsertPos(InstTy *Inst) { InsertPos = Inst; } in setInsertPos()
549 InstTy *InsertPos; variable
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/ARM/
DThumb2ITBlockPass.cpp222 MachineBasicBlock::iterator InsertPos = MIB.getInstr(); in InsertITInstructions() local
255 MBB.insert(InsertPos, NMI); in InsertITInstructions()
275 finalizeBundle(MBB, InsertPos.getInstrIterator(), in InsertITInstructions()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/
DHexagonHardwareLoops.cpp831 MachineBasicBlock::iterator InsertPos = PH->getFirstTerminator(); in computeCount() local
833 if (InsertPos != PH->end()) in computeCount()
834 DL = InsertPos->getDebugLoc(); in computeCount()
916 BuildMI(*PH, InsertPos, DL, SubD, SubR); in computeCount()
937 BuildMI(*PH, InsertPos, DL, SubD, SubR); in computeCount()
956 BuildMI(*PH, InsertPos, DL, AddD, AddR) in computeCount()
977 BuildMI(*PH, InsertPos, DL, LsrD, LsrR) in computeCount()
1201 MachineBasicBlock::iterator InsertPos = Preheader->getFirstTerminator(); in convertToHardwareLoop() local
1243 if (InsertPos != Preheader->end()) in convertToHardwareLoop()
1244 DL = InsertPos->getDebugLoc(); in convertToHardwareLoop()
[all …]
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/IR/
DInstruction.cpp73 void Instruction::insertBefore(Instruction *InsertPos) { in insertBefore() argument
74 InsertPos->getParent()->getInstList().insert(InsertPos->getIterator(), this); in insertBefore()
79 void Instruction::insertAfter(Instruction *InsertPos) { in insertAfter() argument
80 InsertPos->getParent()->getInstList().insertAfter(InsertPos->getIterator(), in insertAfter()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/XCore/
DXCoreLowerThreadLocal.cpp142 Instruction *InsertPos = PredBB->getTerminator(); in replaceConstantExprOp() local
143 Instruction *NewInst = createReplacementInstr(CE, InsertPos); in replaceConstantExprOp()
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Analysis/
DScalarEvolutionExpander.cpp935 Instruction *InsertPos, in getIVIncOperand() argument
937 if (IncV == InsertPos) in getIVIncOperand()
947 if (!OInst || SE.DT.dominates(OInst, InsertPos)) in getIVIncOperand()
958 if (!SE.DT.dominates(OInst, InsertPos)) in getIVIncOperand()
1001 bool SCEVExpander::hoistIVInc(Instruction *IncV, Instruction *InsertPos) { in hoistIVInc() argument
1002 if (SE.DT.dominates(IncV, InsertPos)) in hoistIVInc()
1007 if (isa<PHINode>(InsertPos) || in hoistIVInc()
1008 !SE.DT.dominates(InsertPos->getParent(), IncV->getParent())) in hoistIVInc()
1011 if (!SE.LI.movementPreservesLCSSAForm(IncV, InsertPos)) in hoistIVInc()
1017 Instruction *Oper = getIVIncOperand(IncV, InsertPos, /*allowScale*/true); in hoistIVInc()
[all …]

123