llvm::InstrInfoQuery

Query wrapper for instruction metadata and wrap flags.

Synopsis

Declared in <llvm/Analysis/SimplifyQuery.h>

struct InstrInfoQuery;

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.

Member Functions

NameDescription
InstrInfoQuery [constructor]Constructors
getMetadata Return metadata of kind KindID on I, or null if info is disabled.
hasNoSignedWrap Return the nsw flag of Op, or false if instruction info is disabled.
hasNoSignedZeros Return the nsz flag of Op, or false if instruction info is disabled.
hasNoUnsignedWrap Return the nuw flag of Op, or false if instruction info is disabled.
isExact Return the exact flag of Op, or false if instruction info is disabled.

Data Members

NameDescription
UseInstrInfo Whether metadata and wrap flags on instructions may be used.