Lines Matching refs:I2
187 const Instruction *I2) const;
295 const Instruction *I2) const {
300 if (I1->getOpcode() != I2->getOpcode() ||
301 I1->getNumOperands() != I2->getNumOperands() ||
302 !isEquivalentType(I1->getType(), I2->getType()) ||
303 !I1->hasSameSubclassOptionalData(I2))
310 I2->getOperand(i)->getType()))
315 return LI->isVolatile() == cast<LoadInst>(I2)->isVolatile() &&
316 LI->getAlignment() == cast<LoadInst>(I2)->getAlignment() &&
317 LI->getOrdering() == cast<LoadInst>(I2)->getOrdering() &&
318 LI->getSynchScope() == cast<LoadInst>(I2)->getSynchScope();
320 return SI->isVolatile() == cast<StoreInst>(I2)->isVolatile() &&
321 SI->getAlignment() == cast<StoreInst>(I2)->getAlignment() &&
322 SI->getOrdering() == cast<StoreInst>(I2)->getOrdering() &&
323 SI->getSynchScope() == cast<StoreInst>(I2)->getSynchScope();
325 return CI->getPredicate() == cast<CmpInst>(I2)->getPredicate();
327 return CI->getCallingConv() == cast<CallInst>(I2)->getCallingConv() &&
328 CI->getAttributes() == cast<CallInst>(I2)->getAttributes();
330 return CI->getCallingConv() == cast<InvokeInst>(I2)->getCallingConv() &&
331 CI->getAttributes() == cast<InvokeInst>(I2)->getAttributes();
333 return IVI->getIndices() == cast<InsertValueInst>(I2)->getIndices();
335 return EVI->getIndices() == cast<ExtractValueInst>(I2)->getIndices();
337 return FI->getOrdering() == cast<FenceInst>(I2)->getOrdering() &&
338 FI->getSynchScope() == cast<FenceInst>(I2)->getSynchScope();
340 return CXI->isVolatile() == cast<AtomicCmpXchgInst>(I2)->isVolatile() &&
341 CXI->getOrdering() == cast<AtomicCmpXchgInst>(I2)->getOrdering() &&
342 CXI->getSynchScope() == cast<AtomicCmpXchgInst>(I2)->getSynchScope();
344 return RMWI->getOperation() == cast<AtomicRMWInst>(I2)->getOperation() &&
345 RMWI->isVolatile() == cast<AtomicRMWInst>(I2)->isVolatile() &&
346 RMWI->getOrdering() == cast<AtomicRMWInst>(I2)->getOrdering() &&
347 RMWI->getSynchScope() == cast<AtomicRMWInst>(I2)->getSynchScope();