Lines Matching refs:cast
120 cast<OverflowingBinaryOperator>(this)->setHasNoUnsignedWrap(b); in setHasNoUnsignedWrap()
124 cast<OverflowingBinaryOperator>(this)->setHasNoSignedWrap(b); in setHasNoSignedWrap()
128 cast<PossiblyExactOperator>(this)->setIsExact(b); in setIsExact()
132 return cast<OverflowingBinaryOperator>(this)->hasNoUnsignedWrap(); in hasNoUnsignedWrap()
136 return cast<OverflowingBinaryOperator>(this)->hasNoSignedWrap(); in hasNoSignedWrap()
145 cast<OverflowingBinaryOperator>(this)->setHasNoUnsignedWrap(false); in dropPoisonGeneratingFlags()
146 cast<OverflowingBinaryOperator>(this)->setHasNoSignedWrap(false); in dropPoisonGeneratingFlags()
153 cast<PossiblyExactOperator>(this)->setIsExact(false); in dropPoisonGeneratingFlags()
157 cast<GetElementPtrInst>(this)->setIsInBounds(false); in dropPoisonGeneratingFlags()
165 return cast<PossiblyExactOperator>(this)->isExact(); in isExact()
170 cast<FPMathOperator>(this)->setFast(B); in setFast()
175 cast<FPMathOperator>(this)->setHasAllowReassoc(B); in setHasAllowReassoc()
180 cast<FPMathOperator>(this)->setHasNoNaNs(B); in setHasNoNaNs()
185 cast<FPMathOperator>(this)->setHasNoInfs(B); in setHasNoInfs()
190 cast<FPMathOperator>(this)->setHasNoSignedZeros(B); in setHasNoSignedZeros()
195 cast<FPMathOperator>(this)->setHasAllowReciprocal(B); in setHasAllowReciprocal()
200 cast<FPMathOperator>(this)->setHasAllowContract(B); in setHasAllowContract()
205 cast<FPMathOperator>(this)->setHasApproxFunc(B); in setHasApproxFunc()
210 cast<FPMathOperator>(this)->setFastMathFlags(FMF); in setFastMathFlags()
215 cast<FPMathOperator>(this)->copyFastMathFlags(FMF); in copyFastMathFlags()
220 return cast<FPMathOperator>(this)->isFast(); in isFast()
225 return cast<FPMathOperator>(this)->hasAllowReassoc(); in hasAllowReassoc()
230 return cast<FPMathOperator>(this)->hasNoNaNs(); in hasNoNaNs()
235 return cast<FPMathOperator>(this)->hasNoInfs(); in hasNoInfs()
240 return cast<FPMathOperator>(this)->hasNoSignedZeros(); in hasNoSignedZeros()
245 return cast<FPMathOperator>(this)->hasAllowReciprocal(); in hasAllowReciprocal()
250 return cast<FPMathOperator>(this)->hasAllowContract(); in hasAllowContract()
255 return cast<FPMathOperator>(this)->hasApproxFunc(); in hasApproxFunc()
260 return cast<FPMathOperator>(this)->getFastMathFlags(); in getFastMathFlags()
410 return AI->getAllocatedType() == cast<AllocaInst>(I2)->getAllocatedType() && in haveSameSpecialState()
411 (AI->getAlignment() == cast<AllocaInst>(I2)->getAlignment() || in haveSameSpecialState()
414 return LI->isVolatile() == cast<LoadInst>(I2)->isVolatile() && in haveSameSpecialState()
415 (LI->getAlignment() == cast<LoadInst>(I2)->getAlignment() || in haveSameSpecialState()
417 LI->getOrdering() == cast<LoadInst>(I2)->getOrdering() && in haveSameSpecialState()
418 LI->getSyncScopeID() == cast<LoadInst>(I2)->getSyncScopeID(); in haveSameSpecialState()
420 return SI->isVolatile() == cast<StoreInst>(I2)->isVolatile() && in haveSameSpecialState()
421 (SI->getAlignment() == cast<StoreInst>(I2)->getAlignment() || in haveSameSpecialState()
423 SI->getOrdering() == cast<StoreInst>(I2)->getOrdering() && in haveSameSpecialState()
424 SI->getSyncScopeID() == cast<StoreInst>(I2)->getSyncScopeID(); in haveSameSpecialState()
426 return CI->getPredicate() == cast<CmpInst>(I2)->getPredicate(); in haveSameSpecialState()
428 return CI->isTailCall() == cast<CallInst>(I2)->isTailCall() && in haveSameSpecialState()
429 CI->getCallingConv() == cast<CallInst>(I2)->getCallingConv() && in haveSameSpecialState()
430 CI->getAttributes() == cast<CallInst>(I2)->getAttributes() && in haveSameSpecialState()
431 CI->hasIdenticalOperandBundleSchema(*cast<CallInst>(I2)); in haveSameSpecialState()
433 return CI->getCallingConv() == cast<InvokeInst>(I2)->getCallingConv() && in haveSameSpecialState()
434 CI->getAttributes() == cast<InvokeInst>(I2)->getAttributes() && in haveSameSpecialState()
435 CI->hasIdenticalOperandBundleSchema(*cast<InvokeInst>(I2)); in haveSameSpecialState()
437 return CI->getCallingConv() == cast<CallBrInst>(I2)->getCallingConv() && in haveSameSpecialState()
438 CI->getAttributes() == cast<CallBrInst>(I2)->getAttributes() && in haveSameSpecialState()
439 CI->hasIdenticalOperandBundleSchema(*cast<CallBrInst>(I2)); in haveSameSpecialState()
441 return IVI->getIndices() == cast<InsertValueInst>(I2)->getIndices(); in haveSameSpecialState()
443 return EVI->getIndices() == cast<ExtractValueInst>(I2)->getIndices(); in haveSameSpecialState()
445 return FI->getOrdering() == cast<FenceInst>(I2)->getOrdering() && in haveSameSpecialState()
446 FI->getSyncScopeID() == cast<FenceInst>(I2)->getSyncScopeID(); in haveSameSpecialState()
448 return CXI->isVolatile() == cast<AtomicCmpXchgInst>(I2)->isVolatile() && in haveSameSpecialState()
449 CXI->isWeak() == cast<AtomicCmpXchgInst>(I2)->isWeak() && in haveSameSpecialState()
451 cast<AtomicCmpXchgInst>(I2)->getSuccessOrdering() && in haveSameSpecialState()
453 cast<AtomicCmpXchgInst>(I2)->getFailureOrdering() && in haveSameSpecialState()
455 cast<AtomicCmpXchgInst>(I2)->getSyncScopeID(); in haveSameSpecialState()
457 return RMWI->getOperation() == cast<AtomicRMWInst>(I2)->getOperation() && in haveSameSpecialState()
458 RMWI->isVolatile() == cast<AtomicRMWInst>(I2)->isVolatile() && in haveSameSpecialState()
459 RMWI->getOrdering() == cast<AtomicRMWInst>(I2)->getOrdering() && in haveSameSpecialState()
460 RMWI->getSyncScopeID() == cast<AtomicRMWInst>(I2)->getSyncScopeID(); in haveSameSpecialState()
463 cast<ShuffleVectorInst>(I2)->getShuffleMask(); in haveSameSpecialState()
490 const PHINode *otherPHI = cast<PHINode>(I); in isIdenticalToWhenDefined()
528 const Instruction *I = cast<Instruction>(U.getUser()); in isUsedOutsideOfBlock()
556 return !cast<CallBase>(this)->doesNotReadMemory(); in mayReadFromMemory()
558 return !cast<StoreInst>(this)->isUnordered(); in mayReadFromMemory()
576 return !cast<CallBase>(this)->onlyReadsMemory(); in mayWriteToMemory()
578 return !cast<LoadInst>(this)->isUnordered(); in mayWriteToMemory()
591 return cast<LoadInst>(this)->getOrdering() != AtomicOrdering::NotAtomic; in isAtomic()
593 return cast<StoreInst>(this)->getOrdering() != AtomicOrdering::NotAtomic; in isAtomic()
668 return cast<FPMathOperator>(this)->hasAllowReassoc() && in isAssociative()
669 cast<FPMathOperator>(this)->hasNoSignedZeros(); in isAssociative()
735 MDString *MDName = cast<MDString>(ProfileData->getOperand(0)); in swapProfMetadata()
774 New = cast<clas>(this)->cloneImpl(); \ in clone()