LLVM 17.0.0git
|
InstrInfoQuery provides an interface to query additional information for instructions like metadata or keywords like nsw, which provides conservative results if the users specified it is safe to use. More...
#include "llvm/Analysis/InstructionSimplify.h"
Public Member Functions | |
InstrInfoQuery (bool UMD) | |
InstrInfoQuery ()=default | |
MDNode * | getMetadata (const Instruction *I, unsigned KindID) const |
template<class InstT > | |
bool | hasNoUnsignedWrap (const InstT *Op) const |
template<class InstT > | |
bool | hasNoSignedWrap (const InstT *Op) const |
bool | isExact (const BinaryOperator *Op) const |
Public Attributes | |
bool | UseInstrInfo = true |
InstrInfoQuery provides an interface to query additional information for instructions like metadata or keywords like nsw, which provides conservative results if the users specified it is safe to use.
Definition at line 63 of file InstructionSimplify.h.
|
inline |
Definition at line 64 of file InstructionSimplify.h.
|
default |
|
inline |
Definition at line 68 of file InstructionSimplify.h.
References I, and UseInstrInfo.
Referenced by llvm::computeConstantRange(), and simplifyICmpInst().
Definition at line 80 of file InstructionSimplify.h.
References UseInstrInfo.
Referenced by setLimitsForBinOp(), setLimitsForSelectPattern(), simplifyAndOfICmpsWithAdd(), simplifyDivRem(), simplifyICmpWithBinOp(), simplifyInstructionWithOperands(), and simplifyOrOfICmpsWithAdd().
|
inline |
Definition at line 74 of file InstructionSimplify.h.
References UseInstrInfo.
Referenced by setLimitsForBinOp(), simplifyAndOfICmpsWithAdd(), simplifyDivRem(), simplifyICmpWithBinOp(), simplifyInstructionWithOperands(), and simplifyOrOfICmpsWithAdd().
|
inline |
Definition at line 86 of file InstructionSimplify.h.
References UseInstrInfo.
Referenced by setLimitsForBinOp(), simplifyICmpWithBinOp(), and simplifyInstructionWithOperands().
Definition at line 66 of file InstructionSimplify.h.
Referenced by computePointerICmp(), getMetadata(), hasNoSignedWrap(), hasNoUnsignedWrap(), isExact(), simplifyAShrInst(), simplifyICmpInst(), simplifyICmpWithConstant(), simplifyICmpWithZero(), simplifyMulInst(), simplifyRem(), and simplifyShlInst().