Lines Matching refs:I2

341 static bool haveSameSpecialState(const Instruction *I1, const Instruction *I2,
343 assert(I1->getOpcode() == I2->getOpcode() &&
347 return AI->getAllocatedType() == cast<AllocaInst>(I2)->getAllocatedType() &&
348 (AI->getAlignment() == cast<AllocaInst>(I2)->getAlignment() ||
351 return LI->isVolatile() == cast<LoadInst>(I2)->isVolatile() &&
352 (LI->getAlignment() == cast<LoadInst>(I2)->getAlignment() ||
354 LI->getOrdering() == cast<LoadInst>(I2)->getOrdering() &&
355 LI->getSynchScope() == cast<LoadInst>(I2)->getSynchScope();
357 return SI->isVolatile() == cast<StoreInst>(I2)->isVolatile() &&
358 (SI->getAlignment() == cast<StoreInst>(I2)->getAlignment() ||
360 SI->getOrdering() == cast<StoreInst>(I2)->getOrdering() &&
361 SI->getSynchScope() == cast<StoreInst>(I2)->getSynchScope();
363 return CI->getPredicate() == cast<CmpInst>(I2)->getPredicate();
365 return CI->isTailCall() == cast<CallInst>(I2)->isTailCall() &&
366 CI->getCallingConv() == cast<CallInst>(I2)->getCallingConv() &&
367 CI->getAttributes() == cast<CallInst>(I2)->getAttributes() &&
368 CI->hasIdenticalOperandBundleSchema(*cast<CallInst>(I2));
370 return CI->getCallingConv() == cast<InvokeInst>(I2)->getCallingConv() &&
371 CI->getAttributes() == cast<InvokeInst>(I2)->getAttributes() &&
372 CI->hasIdenticalOperandBundleSchema(*cast<InvokeInst>(I2));
374 return IVI->getIndices() == cast<InsertValueInst>(I2)->getIndices();
376 return EVI->getIndices() == cast<ExtractValueInst>(I2)->getIndices();
378 return FI->getOrdering() == cast<FenceInst>(I2)->getOrdering() &&
379 FI->getSynchScope() == cast<FenceInst>(I2)->getSynchScope();
381 return CXI->isVolatile() == cast<AtomicCmpXchgInst>(I2)->isVolatile() &&
382 CXI->isWeak() == cast<AtomicCmpXchgInst>(I2)->isWeak() &&
384 cast<AtomicCmpXchgInst>(I2)->getSuccessOrdering() &&
386 cast<AtomicCmpXchgInst>(I2)->getFailureOrdering() &&
387 CXI->getSynchScope() == cast<AtomicCmpXchgInst>(I2)->getSynchScope();
389 return RMWI->getOperation() == cast<AtomicRMWInst>(I2)->getOperation() &&
390 RMWI->isVolatile() == cast<AtomicRMWInst>(I2)->isVolatile() &&
391 RMWI->getOrdering() == cast<AtomicRMWInst>(I2)->getOrdering() &&
392 RMWI->getSynchScope() == cast<AtomicRMWInst>(I2)->getSynchScope();