• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /freebsd-13-stable/contrib/llvm-project/llvm/lib/IR/

Lines Matching refs:I2

407 static bool haveSameSpecialState(const Instruction *I1, const Instruction *I2,
409 assert(I1->getOpcode() == I2->getOpcode() &&
413 return AI->getAllocatedType() == cast<AllocaInst>(I2)->getAllocatedType() &&
414 (AI->getAlignment() == cast<AllocaInst>(I2)->getAlignment() ||
417 return LI->isVolatile() == cast<LoadInst>(I2)->isVolatile() &&
418 (LI->getAlignment() == cast<LoadInst>(I2)->getAlignment() ||
420 LI->getOrdering() == cast<LoadInst>(I2)->getOrdering() &&
421 LI->getSyncScopeID() == cast<LoadInst>(I2)->getSyncScopeID();
423 return SI->isVolatile() == cast<StoreInst>(I2)->isVolatile() &&
424 (SI->getAlignment() == cast<StoreInst>(I2)->getAlignment() ||
426 SI->getOrdering() == cast<StoreInst>(I2)->getOrdering() &&
427 SI->getSyncScopeID() == cast<StoreInst>(I2)->getSyncScopeID();
429 return CI->getPredicate() == cast<CmpInst>(I2)->getPredicate();
431 return CI->isTailCall() == cast<CallInst>(I2)->isTailCall() &&
432 CI->getCallingConv() == cast<CallInst>(I2)->getCallingConv() &&
433 CI->getAttributes() == cast<CallInst>(I2)->getAttributes() &&
434 CI->hasIdenticalOperandBundleSchema(*cast<CallInst>(I2));
436 return CI->getCallingConv() == cast<InvokeInst>(I2)->getCallingConv() &&
437 CI->getAttributes() == cast<InvokeInst>(I2)->getAttributes() &&
438 CI->hasIdenticalOperandBundleSchema(*cast<InvokeInst>(I2));
440 return CI->getCallingConv() == cast<CallBrInst>(I2)->getCallingConv() &&
441 CI->getAttributes() == cast<CallBrInst>(I2)->getAttributes() &&
442 CI->hasIdenticalOperandBundleSchema(*cast<CallBrInst>(I2));
444 return IVI->getIndices() == cast<InsertValueInst>(I2)->getIndices();
446 return EVI->getIndices() == cast<ExtractValueInst>(I2)->getIndices();
448 return FI->getOrdering() == cast<FenceInst>(I2)->getOrdering() &&
449 FI->getSyncScopeID() == cast<FenceInst>(I2)->getSyncScopeID();
451 return CXI->isVolatile() == cast<AtomicCmpXchgInst>(I2)->isVolatile() &&
452 CXI->isWeak() == cast<AtomicCmpXchgInst>(I2)->isWeak() &&
454 cast<AtomicCmpXchgInst>(I2)->getSuccessOrdering() &&
456 cast<AtomicCmpXchgInst>(I2)->getFailureOrdering() &&
458 cast<AtomicCmpXchgInst>(I2)->getSyncScopeID();
460 return RMWI->getOperation() == cast<AtomicRMWInst>(I2)->getOperation() &&
461 RMWI->isVolatile() == cast<AtomicRMWInst>(I2)->isVolatile() &&
462 RMWI->getOrdering() == cast<AtomicRMWInst>(I2)->getOrdering() &&
463 RMWI->getSyncScopeID() == cast<AtomicRMWInst>(I2)->getSyncScopeID();
466 cast<ShuffleVectorInst>(I2)->getShuffleMask();