Lines Matching refs:II

65   bool tryCreateStridedLoadStore(IntrinsicInst *II, Type *DataType, Value *Ptr,
416 bool RISCVGatherScatterLowering::tryCreateStridedLoadStore(IntrinsicInst *II, in tryCreateStridedLoadStore() argument
437 Builder.SetInsertPoint(II); in tryCreateStridedLoadStore()
440 if (II->getIntrinsicID() == Intrinsic::masked_gather) in tryCreateStridedLoadStore()
444 {II->getArgOperand(3), BasePtr, Stride, II->getArgOperand(2)}); in tryCreateStridedLoadStore()
449 {II->getArgOperand(0), BasePtr, Stride, II->getArgOperand(3)}); in tryCreateStridedLoadStore()
451 Call->takeName(II); in tryCreateStridedLoadStore()
452 II->replaceAllUsesWith(Call); in tryCreateStridedLoadStore()
453 II->eraseFromParent(); in tryCreateStridedLoadStore()
484 IntrinsicInst *II = dyn_cast<IntrinsicInst>(&I); in runOnFunction() local
485 if (II && II->getIntrinsicID() == Intrinsic::masked_gather && in runOnFunction()
486 isa<FixedVectorType>(II->getType())) { in runOnFunction()
487 Gathers.push_back(II); in runOnFunction()
488 } else if (II && II->getIntrinsicID() == Intrinsic::masked_scatter && in runOnFunction()
489 isa<FixedVectorType>(II->getArgOperand(0)->getType())) { in runOnFunction()
490 Scatters.push_back(II); in runOnFunction()
496 for (auto *II : Gathers) in runOnFunction() local
498 II, II->getType(), II->getArgOperand(0), II->getArgOperand(1)); in runOnFunction()
499 for (auto *II : Scatters) in runOnFunction() local
501 tryCreateStridedLoadStore(II, II->getArgOperand(0)->getType(), in runOnFunction()
502 II->getArgOperand(1), II->getArgOperand(2)); in runOnFunction()