Lines Matching refs:I2
695 bool Instruction::hasSameSpecialState(const Instruction *I2, in hasSameSpecialState() argument
698 assert(I1->getOpcode() == I2->getOpcode() && in hasSameSpecialState()
702 return AI->getAllocatedType() == cast<AllocaInst>(I2)->getAllocatedType() && in hasSameSpecialState()
703 (AI->getAlign() == cast<AllocaInst>(I2)->getAlign() || in hasSameSpecialState()
706 return LI->isVolatile() == cast<LoadInst>(I2)->isVolatile() && in hasSameSpecialState()
707 (LI->getAlign() == cast<LoadInst>(I2)->getAlign() || in hasSameSpecialState()
709 LI->getOrdering() == cast<LoadInst>(I2)->getOrdering() && in hasSameSpecialState()
710 LI->getSyncScopeID() == cast<LoadInst>(I2)->getSyncScopeID(); in hasSameSpecialState()
712 return SI->isVolatile() == cast<StoreInst>(I2)->isVolatile() && in hasSameSpecialState()
713 (SI->getAlign() == cast<StoreInst>(I2)->getAlign() || in hasSameSpecialState()
715 SI->getOrdering() == cast<StoreInst>(I2)->getOrdering() && in hasSameSpecialState()
716 SI->getSyncScopeID() == cast<StoreInst>(I2)->getSyncScopeID(); in hasSameSpecialState()
718 return CI->getPredicate() == cast<CmpInst>(I2)->getPredicate(); in hasSameSpecialState()
720 return CI->isTailCall() == cast<CallInst>(I2)->isTailCall() && in hasSameSpecialState()
721 CI->getCallingConv() == cast<CallInst>(I2)->getCallingConv() && in hasSameSpecialState()
722 CI->getAttributes() == cast<CallInst>(I2)->getAttributes() && in hasSameSpecialState()
723 CI->hasIdenticalOperandBundleSchema(*cast<CallInst>(I2)); in hasSameSpecialState()
725 return CI->getCallingConv() == cast<InvokeInst>(I2)->getCallingConv() && in hasSameSpecialState()
726 CI->getAttributes() == cast<InvokeInst>(I2)->getAttributes() && in hasSameSpecialState()
727 CI->hasIdenticalOperandBundleSchema(*cast<InvokeInst>(I2)); in hasSameSpecialState()
729 return CI->getCallingConv() == cast<CallBrInst>(I2)->getCallingConv() && in hasSameSpecialState()
730 CI->getAttributes() == cast<CallBrInst>(I2)->getAttributes() && in hasSameSpecialState()
731 CI->hasIdenticalOperandBundleSchema(*cast<CallBrInst>(I2)); in hasSameSpecialState()
733 return IVI->getIndices() == cast<InsertValueInst>(I2)->getIndices(); in hasSameSpecialState()
735 return EVI->getIndices() == cast<ExtractValueInst>(I2)->getIndices(); in hasSameSpecialState()
737 return FI->getOrdering() == cast<FenceInst>(I2)->getOrdering() && in hasSameSpecialState()
738 FI->getSyncScopeID() == cast<FenceInst>(I2)->getSyncScopeID(); in hasSameSpecialState()
740 return CXI->isVolatile() == cast<AtomicCmpXchgInst>(I2)->isVolatile() && in hasSameSpecialState()
741 CXI->isWeak() == cast<AtomicCmpXchgInst>(I2)->isWeak() && in hasSameSpecialState()
743 cast<AtomicCmpXchgInst>(I2)->getSuccessOrdering() && in hasSameSpecialState()
745 cast<AtomicCmpXchgInst>(I2)->getFailureOrdering() && in hasSameSpecialState()
747 cast<AtomicCmpXchgInst>(I2)->getSyncScopeID(); in hasSameSpecialState()
749 return RMWI->getOperation() == cast<AtomicRMWInst>(I2)->getOperation() && in hasSameSpecialState()
750 RMWI->isVolatile() == cast<AtomicRMWInst>(I2)->isVolatile() && in hasSameSpecialState()
751 RMWI->getOrdering() == cast<AtomicRMWInst>(I2)->getOrdering() && in hasSameSpecialState()
752 RMWI->getSyncScopeID() == cast<AtomicRMWInst>(I2)->getSyncScopeID(); in hasSameSpecialState()
755 cast<ShuffleVectorInst>(I2)->getShuffleMask(); in hasSameSpecialState()
758 cast<GetElementPtrInst>(I2)->getSourceElementType(); in hasSameSpecialState()