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