Lines Matching refs:I2

277 static bool haveSameSpecialState(const Instruction *I1, const Instruction *I2,  in haveSameSpecialState()  argument
279 assert(I1->getOpcode() == I2->getOpcode() && in haveSameSpecialState()
283 return LI->isVolatile() == cast<LoadInst>(I2)->isVolatile() && in haveSameSpecialState()
284 (LI->getAlignment() == cast<LoadInst>(I2)->getAlignment() || in haveSameSpecialState()
286 LI->getOrdering() == cast<LoadInst>(I2)->getOrdering() && in haveSameSpecialState()
287 LI->getSynchScope() == cast<LoadInst>(I2)->getSynchScope(); in haveSameSpecialState()
289 return SI->isVolatile() == cast<StoreInst>(I2)->isVolatile() && in haveSameSpecialState()
290 (SI->getAlignment() == cast<StoreInst>(I2)->getAlignment() || in haveSameSpecialState()
292 SI->getOrdering() == cast<StoreInst>(I2)->getOrdering() && in haveSameSpecialState()
293 SI->getSynchScope() == cast<StoreInst>(I2)->getSynchScope(); in haveSameSpecialState()
295 return CI->getPredicate() == cast<CmpInst>(I2)->getPredicate(); in haveSameSpecialState()
297 return CI->isTailCall() == cast<CallInst>(I2)->isTailCall() && in haveSameSpecialState()
298 CI->getCallingConv() == cast<CallInst>(I2)->getCallingConv() && in haveSameSpecialState()
299 CI->getAttributes() == cast<CallInst>(I2)->getAttributes() && in haveSameSpecialState()
300 CI->hasIdenticalOperandBundleSchema(*cast<CallInst>(I2)); in haveSameSpecialState()
302 return CI->getCallingConv() == cast<InvokeInst>(I2)->getCallingConv() && in haveSameSpecialState()
303 CI->getAttributes() == cast<InvokeInst>(I2)->getAttributes() && in haveSameSpecialState()
304 CI->hasIdenticalOperandBundleSchema(*cast<InvokeInst>(I2)); in haveSameSpecialState()
306 return IVI->getIndices() == cast<InsertValueInst>(I2)->getIndices(); in haveSameSpecialState()
308 return EVI->getIndices() == cast<ExtractValueInst>(I2)->getIndices(); in haveSameSpecialState()
310 return FI->getOrdering() == cast<FenceInst>(I2)->getOrdering() && in haveSameSpecialState()
311 FI->getSynchScope() == cast<FenceInst>(I2)->getSynchScope(); in haveSameSpecialState()
313 return CXI->isVolatile() == cast<AtomicCmpXchgInst>(I2)->isVolatile() && in haveSameSpecialState()
314 CXI->isWeak() == cast<AtomicCmpXchgInst>(I2)->isWeak() && in haveSameSpecialState()
316 cast<AtomicCmpXchgInst>(I2)->getSuccessOrdering() && in haveSameSpecialState()
318 cast<AtomicCmpXchgInst>(I2)->getFailureOrdering() && in haveSameSpecialState()
319 CXI->getSynchScope() == cast<AtomicCmpXchgInst>(I2)->getSynchScope(); in haveSameSpecialState()
321 return RMWI->getOperation() == cast<AtomicRMWInst>(I2)->getOperation() && in haveSameSpecialState()
322 RMWI->isVolatile() == cast<AtomicRMWInst>(I2)->isVolatile() && in haveSameSpecialState()
323 RMWI->getOrdering() == cast<AtomicRMWInst>(I2)->getOrdering() && in haveSameSpecialState()
324 RMWI->getSynchScope() == cast<AtomicRMWInst>(I2)->getSynchScope(); in haveSameSpecialState()