Lines Matching refs:It
257 assert(It != ItE && "Already at end!"); in operator ++()
258 ++It; in operator ++()
259 if (It == ItE) in operator ++()
261 Instruction &NextI = *cast<sandboxir::Instruction>(Ctx->getValue(&*It)); in operator ++()
264 It = std::next(It, Num - 1); in operator ++()
269 assert(It != BB->begin() && "Already at begin!"); in operator --()
270 if (It == BB->end()) { in operator --()
271 --It; in operator --()
277 assert(std::prev(It, Num - 1) != BB->begin() && "Already at begin!"); in operator --()
278 It = std::prev(It, Num); in operator --()
329 auto It = getIterator(); in getPrevNode() local
330 if (It != getParent()->begin()) in getPrevNode()
380 llvm::BasicBlock::iterator It; in moveBefore() local
382 It = LLVMBB->end(); in moveBefore()
385 It = WhereI->getTopmostLLVMInstruction()->getIterator(); in moveBefore()
393 I->moveBefore(*LLVMBB, It); in moveBefore()
697 BasicBlock::iterator::getInstr(llvm::BasicBlock::iterator It) const { in getInstr()
698 return cast_or_null<Instruction>(Ctx->getValue(&*It)); in getInstr()
703 auto It = LLVMValueToValueMap.find(V); in detachLLVMValue() local
704 if (It != LLVMValueToValueMap.end()) { in detachLLVMValue()
705 auto *Val = It->second.release(); in detachLLVMValue()
707 LLVMValueToValueMap.erase(It); in detachLLVMValue()
731 auto It = Pair.first; in getOrCreateValueInternal() local
733 return It->second.get(); in getOrCreateValueInternal()
736 It->second = std::unique_ptr<Constant>(new Constant(C, *this)); in getOrCreateValueInternal()
737 auto *NewC = It->second.get(); in getOrCreateValueInternal()
743 It->second = std::unique_ptr<Argument>(new Argument(Arg, *this)); in getOrCreateValueInternal()
744 return It->second.get(); in getOrCreateValueInternal()
758 It->second = std::unique_ptr<SelectInst>(new SelectInst(LLVMSel, *this)); in getOrCreateValueInternal()
759 return It->second.get(); in getOrCreateValueInternal()
763 It->second = std::unique_ptr<LoadInst>(new LoadInst(LLVMLd, *this)); in getOrCreateValueInternal()
764 return It->second.get(); in getOrCreateValueInternal()
768 It->second = std::unique_ptr<StoreInst>(new StoreInst(LLVMSt, *this)); in getOrCreateValueInternal()
769 return It->second.get(); in getOrCreateValueInternal()
773 It->second = std::unique_ptr<ReturnInst>(new ReturnInst(LLVMRet, *this)); in getOrCreateValueInternal()
774 return It->second.get(); in getOrCreateValueInternal()
780 It->second = std::unique_ptr<OpaqueInst>( in getOrCreateValueInternal()
782 return It->second.get(); in getOrCreateValueInternal()
815 auto It = LLVMValueToValueMap.find(V); in getValue() local
816 if (It != LLVMValueToValueMap.end()) in getValue()
817 return It->second.get(); in getValue()
867 llvm::BasicBlock::iterator It = BB->begin(); in begin() local
874 It = std::next(It, Num - 1); in begin()
876 return iterator(BB, It, &Ctx); in begin()