33 static auto From(const ::mlir::Type &type,
const std::shared_ptr<::mlir::ModuleOp>& module) -> std::shared_ptr<BuiltinType>;
50 size_t &
width() {
return _width; }
56 size_t width()
const {
return _width; }
72 std::string
store(
Tree &symbols)
const override;
88 size_t &
width() {
return _width; }
94 size_t width()
const {
return _width; }
96 std::string
store(
Tree &symbols)
const override;
A tree struct for symbol tree. It's just a simple wrapper for root node.
A wrapper class of mlir::Type that serializes it into simple-and-plain text.
size_t width() const
Gets bit-width of float.
std::string store(Tree &symbols) const override
Stores this type into symbol tree if necessary and Returns reference string for this type.
size_t & width()
Gets bit-width of float.
BuiltinFPType(size_t width)
size_t & width()
Gets bit-width of integer.
bool signed_() const
Gets signedness of integer.
size_t width() const
Gets bit-width of integer.
bool & signed_()
Gets signedness of integer.
std::string store(Tree &symbols) const override
Stores this type into symbol tree if necessary and Returns reference string for this type.
BuiltinIntType(size_t width, bool _signed)
Wrapper class for types in builtin MLIR dialect to serialize it to simple-and-plain text.
static auto From(const ::mlir::Type &type, const std::shared_ptr<::mlir::ModuleOp > &module) -> std::shared_ptr< BuiltinType >