Lines Matching refs:I2
787 bool Instruction::hasSameSpecialState(const Instruction *I2, in hasSameSpecialState() argument
790 assert(I1->getOpcode() == I2->getOpcode() && in hasSameSpecialState()
794 return AI->getAllocatedType() == cast<AllocaInst>(I2)->getAllocatedType() && in hasSameSpecialState()
795 (AI->getAlign() == cast<AllocaInst>(I2)->getAlign() || in hasSameSpecialState()
798 return LI->isVolatile() == cast<LoadInst>(I2)->isVolatile() && in hasSameSpecialState()
799 (LI->getAlign() == cast<LoadInst>(I2)->getAlign() || in hasSameSpecialState()
801 LI->getOrdering() == cast<LoadInst>(I2)->getOrdering() && in hasSameSpecialState()
802 LI->getSyncScopeID() == cast<LoadInst>(I2)->getSyncScopeID(); in hasSameSpecialState()
804 return SI->isVolatile() == cast<StoreInst>(I2)->isVolatile() && in hasSameSpecialState()
805 (SI->getAlign() == cast<StoreInst>(I2)->getAlign() || in hasSameSpecialState()
807 SI->getOrdering() == cast<StoreInst>(I2)->getOrdering() && in hasSameSpecialState()
808 SI->getSyncScopeID() == cast<StoreInst>(I2)->getSyncScopeID(); in hasSameSpecialState()
810 return CI->getPredicate() == cast<CmpInst>(I2)->getPredicate(); in hasSameSpecialState()
812 return CI->isTailCall() == cast<CallInst>(I2)->isTailCall() && in hasSameSpecialState()
813 CI->getCallingConv() == cast<CallInst>(I2)->getCallingConv() && in hasSameSpecialState()
814 CI->getAttributes() == cast<CallInst>(I2)->getAttributes() && in hasSameSpecialState()
815 CI->hasIdenticalOperandBundleSchema(*cast<CallInst>(I2)); in hasSameSpecialState()
817 return CI->getCallingConv() == cast<InvokeInst>(I2)->getCallingConv() && in hasSameSpecialState()
818 CI->getAttributes() == cast<InvokeInst>(I2)->getAttributes() && in hasSameSpecialState()
819 CI->hasIdenticalOperandBundleSchema(*cast<InvokeInst>(I2)); in hasSameSpecialState()
821 return CI->getCallingConv() == cast<CallBrInst>(I2)->getCallingConv() && in hasSameSpecialState()
822 CI->getAttributes() == cast<CallBrInst>(I2)->getAttributes() && in hasSameSpecialState()
823 CI->hasIdenticalOperandBundleSchema(*cast<CallBrInst>(I2)); in hasSameSpecialState()
825 return IVI->getIndices() == cast<InsertValueInst>(I2)->getIndices(); in hasSameSpecialState()
827 return EVI->getIndices() == cast<ExtractValueInst>(I2)->getIndices(); in hasSameSpecialState()
829 return FI->getOrdering() == cast<FenceInst>(I2)->getOrdering() && in hasSameSpecialState()
830 FI->getSyncScopeID() == cast<FenceInst>(I2)->getSyncScopeID(); in hasSameSpecialState()
832 return CXI->isVolatile() == cast<AtomicCmpXchgInst>(I2)->isVolatile() && in hasSameSpecialState()
833 CXI->isWeak() == cast<AtomicCmpXchgInst>(I2)->isWeak() && in hasSameSpecialState()
835 cast<AtomicCmpXchgInst>(I2)->getSuccessOrdering() && in hasSameSpecialState()
837 cast<AtomicCmpXchgInst>(I2)->getFailureOrdering() && in hasSameSpecialState()
839 cast<AtomicCmpXchgInst>(I2)->getSyncScopeID(); in hasSameSpecialState()
841 return RMWI->getOperation() == cast<AtomicRMWInst>(I2)->getOperation() && in hasSameSpecialState()
842 RMWI->isVolatile() == cast<AtomicRMWInst>(I2)->isVolatile() && in hasSameSpecialState()
843 RMWI->getOrdering() == cast<AtomicRMWInst>(I2)->getOrdering() && in hasSameSpecialState()
844 RMWI->getSyncScopeID() == cast<AtomicRMWInst>(I2)->getSyncScopeID(); in hasSameSpecialState()
847 cast<ShuffleVectorInst>(I2)->getShuffleMask(); in hasSameSpecialState()
850 cast<GetElementPtrInst>(I2)->getSourceElementType(); in hasSameSpecialState()