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

Lines Matching refs:I2

380 static bool haveSameSpecialState(const Instruction *I1, const Instruction *I2,
382 assert(I1->getOpcode() == I2->getOpcode() &&
386 return AI->getAllocatedType() == cast<AllocaInst>(I2)->getAllocatedType() &&
387 (AI->getAlignment() == cast<AllocaInst>(I2)->getAlignment() ||
390 return LI->isVolatile() == cast<LoadInst>(I2)->isVolatile() &&
391 (LI->getAlignment() == cast<LoadInst>(I2)->getAlignment() ||
393 LI->getOrdering() == cast<LoadInst>(I2)->getOrdering() &&
394 LI->getSyncScopeID() == cast<LoadInst>(I2)->getSyncScopeID();
396 return SI->isVolatile() == cast<StoreInst>(I2)->isVolatile() &&
397 (SI->getAlignment() == cast<StoreInst>(I2)->getAlignment() ||
399 SI->getOrdering() == cast<StoreInst>(I2)->getOrdering() &&
400 SI->getSyncScopeID() == cast<StoreInst>(I2)->getSyncScopeID();
402 return CI->getPredicate() == cast<CmpInst>(I2)->getPredicate();
404 return CI->isTailCall() == cast<CallInst>(I2)->isTailCall() &&
405 CI->getCallingConv() == cast<CallInst>(I2)->getCallingConv() &&
406 CI->getAttributes() == cast<CallInst>(I2)->getAttributes() &&
407 CI->hasIdenticalOperandBundleSchema(*cast<CallInst>(I2));
409 return CI->getCallingConv() == cast<InvokeInst>(I2)->getCallingConv() &&
410 CI->getAttributes() == cast<InvokeInst>(I2)->getAttributes() &&
411 CI->hasIdenticalOperandBundleSchema(*cast<InvokeInst>(I2));
413 return CI->getCallingConv() == cast<CallBrInst>(I2)->getCallingConv() &&
414 CI->getAttributes() == cast<CallBrInst>(I2)->getAttributes() &&
415 CI->hasIdenticalOperandBundleSchema(*cast<CallBrInst>(I2));
417 return IVI->getIndices() == cast<InsertValueInst>(I2)->getIndices();
419 return EVI->getIndices() == cast<ExtractValueInst>(I2)->getIndices();
421 return FI->getOrdering() == cast<FenceInst>(I2)->getOrdering() &&
422 FI->getSyncScopeID() == cast<FenceInst>(I2)->getSyncScopeID();
424 return CXI->isVolatile() == cast<AtomicCmpXchgInst>(I2)->isVolatile() &&
425 CXI->isWeak() == cast<AtomicCmpXchgInst>(I2)->isWeak() &&
427 cast<AtomicCmpXchgInst>(I2)->getSuccessOrdering() &&
429 cast<AtomicCmpXchgInst>(I2)->getFailureOrdering() &&
431 cast<AtomicCmpXchgInst>(I2)->getSyncScopeID();
433 return RMWI->getOperation() == cast<AtomicRMWInst>(I2)->getOperation() &&
434 RMWI->isVolatile() == cast<AtomicRMWInst>(I2)->isVolatile() &&
435 RMWI->getOrdering() == cast<AtomicRMWInst>(I2)->getOrdering() &&
436 RMWI->getSyncScopeID() == cast<AtomicRMWInst>(I2)->getSyncScopeID();