Query wrapper for instruction metadata and wrap flags.
Declared in <llvm/Analysis/SimplifyQuery.h>
struct InstrInfoQuery;
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.
| Name | Description |
|---|---|
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. |
| Name | Description |
|---|---|
UseInstrInfo | Whether metadata and wrap flags on instructions may be used. |