Lines Matching refs:II

99     IntrinsicInst *II,  in addInstToMergeableList()  argument
104 if (IIList.front()->getIntrinsicID() != II->getIntrinsicID()) in addInstToMergeableList()
108 if (IIList.front()->getType() != II->getType()) in addInstToMergeableList()
113 assert(IIList.front()->arg_size() == II->arg_size()); in addInstToMergeableList()
114 for (int I = 1, E = II->arg_size(); AllEqual && I != E; ++I) { in addInstToMergeableList()
116 Value *Arg = II->getArgOperand(I); in addInstToMergeableList()
120 auto FragId = cast<ConstantInt>(II->getArgOperand(I)); in addInstToMergeableList()
131 IIList.emplace_back(II); in addInstToMergeableList()
136 MergeableInsts.emplace_back(1, II); in addInstToMergeableList()
137 LLVM_DEBUG(dbgs() << "New: " << *II << "\n"); in addInstToMergeableList()
154 if (IntrinsicInst *II = dyn_cast<IntrinsicInst>(I)) { in collectMergeableInsts() local
155 Intrinsic::ID IntrinID = II->getIntrinsicID(); in collectMergeableInsts()
165 if (!isa<ConstantInt>(II->getArgOperand(FragIdIndex))) in collectMergeableInsts()
168 LLVM_DEBUG(dbgs() << "Merge: " << *II << "\n"); in collectMergeableInsts()
169 addInstToMergeableList(II, MergeableInsts, ImageDimIntr); in collectMergeableInsts()
252 for (auto &II : IIList) { in optimizeSection() local
254 auto Idx = cast<ConstantInt>(II->getArgOperand(FragIdIndex)); in optimizeSection()
255 B.SetCurrentDebugLocation(II->getDebugLoc()); in optimizeSection()
260 VecOp = UndefValue::get(II->getType()); in optimizeSection()
270 II->replaceAllUsesWith(VecOp); in optimizeSection()
271 VecOp->takeName(II); in optimizeSection()
272 InstrsToErase.push_back(II); in optimizeSection()