LLVM 22.0.0git
llvm::InstrInfoQuery Struct Reference

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/SimplifyQuery.h"

Public Member Functions

 InstrInfoQuery (bool UMD)
 InstrInfoQuery ()=default
MDNodegetMetadata (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
template<class InstT>
bool hasNoSignedZeros (const InstT *Op) const

Public Attributes

bool UseInstrInfo = true

Detailed 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.

Definition at line 26 of file SimplifyQuery.h.

Constructor & Destructor Documentation

◆ InstrInfoQuery() [1/2]

llvm::InstrInfoQuery::InstrInfoQuery ( bool UMD)
inline

Definition at line 27 of file SimplifyQuery.h.

References UseInstrInfo.

◆ InstrInfoQuery() [2/2]

llvm::InstrInfoQuery::InstrInfoQuery ( )
default

Member Function Documentation

◆ getMetadata()

MDNode * llvm::InstrInfoQuery::getMetadata ( const Instruction * I,
unsigned KindID ) const
inline

◆ hasNoSignedWrap()

◆ hasNoSignedZeros()

template<class InstT>
bool llvm::InstrInfoQuery::hasNoSignedZeros ( const InstT * Op) const
inline

Definition at line 55 of file SimplifyQuery.h.

References UseInstrInfo.

Referenced by computeKnownFPClass().

◆ hasNoUnsignedWrap()

◆ isExact()

Member Data Documentation

◆ UseInstrInfo


The documentation for this struct was generated from the following file: