struct InstrInfoQuery
Declaration
struct InstrInfoQuery { /* full declaration omitted */ };
Description
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.
Declared at: llvm/include/llvm/Analysis/InstructionSimplify.h:60
Member Variables
- public bool UseInstrInfo = true
Method Overview
- public InstrInfoQuery(bool UMD)
- public InstrInfoQuery()
- public llvm::MDNode * getMetadata(const llvm::Instruction * I, unsigned int KindID) const
- public template <class InstT>bool hasNoSignedWrap(const InstT * Op) const
- public template <class InstT>bool hasNoUnsignedWrap(const InstT * Op) const
- public bool isExact(const llvm::BinaryOperator * Op) const
Methods
¶InstrInfoQuery(bool UMD)
InstrInfoQuery(bool UMD)
Declared at: llvm/include/llvm/Analysis/InstructionSimplify.h:61
Parameters
- bool UMD
¶InstrInfoQuery()
InstrInfoQuery()
Declared at: llvm/include/llvm/Analysis/InstructionSimplify.h:62
¶llvm::MDNode* getMetadata(
const llvm::Instruction* I,
unsigned int KindID) const
llvm::MDNode* getMetadata(
const llvm::Instruction* I,
unsigned int KindID) const
Declared at: llvm/include/llvm/Analysis/InstructionSimplify.h:65
Parameters
- const llvm::Instruction* I
- unsigned int KindID
¶template <class InstT>
bool hasNoSignedWrap(const InstT* Op) const
template <class InstT>
bool hasNoSignedWrap(const InstT* Op) const
Declared at: llvm/include/llvm/Analysis/InstructionSimplify.h:77
Templates
- InstT
Parameters
- const InstT* Op
¶template <class InstT>
bool hasNoUnsignedWrap(const InstT* Op) const
template <class InstT>
bool hasNoUnsignedWrap(const InstT* Op) const
Declared at: llvm/include/llvm/Analysis/InstructionSimplify.h:71
Templates
- InstT
Parameters
- const InstT* Op
¶bool isExact(const llvm::BinaryOperator* Op) const
bool isExact(const llvm::BinaryOperator* Op) const
Declared at: llvm/include/llvm/Analysis/InstructionSimplify.h:83
Parameters
- const llvm::BinaryOperator* Op