|
My Project
|
Integer types can have arbitrary bitwidth up to a large fixed limit. More...
#include <StandardTypes.h>


Public Member Functions | |
| unsigned | getWidth () const |
| Return the bitwidth of this integer type. More... | |
Static Public Member Functions | |
| static IntegerType | get (unsigned width, MLIRContext *context) |
| static IntegerType | getChecked (unsigned width, MLIRContext *context, Location location) |
| static LogicalResult | verifyConstructionInvariants (Optional< Location > loc, MLIRContext *context, unsigned width) |
| Verify the construction of an integer type. More... | |
| static bool | kindof (unsigned kind) |
| Methods for support type inquiry through isa, cast, and dyn_cast. More... | |
Static Public Member Functions inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT > | |
| static ClassID * | getClassID () |
| Return a unique identifier for the concrete type. More... | |
| template<typename T > | |
| static bool | classof (T val) |
Static Public Attributes | |
| static constexpr unsigned | kMaxWidth = 4096 |
| Integer representation maximal bitwidth. More... | |
Additional Inherited Members | |
Public Types inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT > | |
| using | Base = StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT > |
| Utility declarations for the concrete attribute class. More... | |
| using | ImplType = StorageT |
Protected Member Functions inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT > | |
| ImplType * | getImpl () const |
| Utility for easy access to the storage instance. More... | |
Static Protected Member Functions inherited from mlir::detail::StorageUserBase< ConcreteT, BaseT, StorageT, UniquerT > | |
| template<typename... Args> | |
| static ConcreteT | get (MLIRContext *ctx, unsigned kind, Args... args) |
| template<typename... Args> | |
| static ConcreteT | getChecked (const Location &loc, MLIRContext *ctx, unsigned kind, Args... args) |
| template<typename... Args> | |
| static LogicalResult | verifyConstructionInvariants (Args... args) |
| Default implementation that just returns success. More... | |
Integer types can have arbitrary bitwidth up to a large fixed limit.
|
static |
Get or create a new IntegerType of the given width within the context. Assume the width is within the allowed range and assert on failures. Use getChecked to handle failures gracefully.
|
static |
Get or create a new IntegerType of the given width within the context, defined at the given, potentially unknown, location. If the width is outside the allowed range, emit errors and return a null type.
| unsigned IntegerType::getWidth | ( | ) | const |
Return the bitwidth of this integer type.
|
inlinestatic |
Methods for support type inquiry through isa, cast, and dyn_cast.
|
static |
Verify the construction of an integer type.
|
static |
Integer representation maximal bitwidth.
1.8.13