This reverts commit 539961072c
.
This commit is contained in:
@@ -36,6 +36,16 @@ unsigned type::get_primitive_size_in_bits() const {
|
||||
unsigned type::get_integer_bitwidth() const
|
||||
{ assert(id_ == IntegerTyID); return ((integer_type*)(this))->get_bitwidth(); }
|
||||
|
||||
signedness type::get_integer_signedness() const
|
||||
{ assert(id_ == IntegerTyID); return ((integer_type*)(this))->get_signedness(); }
|
||||
|
||||
bool type::is_integer_signed() const {
|
||||
if (id_ != IntegerTyID) {
|
||||
throw std::logic_error("type is " + repr() + ", not integer");
|
||||
}
|
||||
return ((integer_type*)(this))->get_signedness() == signedness::SIGNED;
|
||||
}
|
||||
|
||||
unsigned type::get_tile_bitwidth() const
|
||||
{ return ((block_type*)(this))->get_bitwidth(); }
|
||||
|
||||
@@ -135,6 +145,10 @@ integer_type *type::get_int16_ty(context &ctx) { return &ctx.p_impl->int16_ty; }
|
||||
integer_type *type::get_int32_ty(context &ctx) { return &ctx.p_impl->int32_ty; }
|
||||
integer_type *type::get_int64_ty(context &ctx) { return &ctx.p_impl->int64_ty; }
|
||||
integer_type *type::get_int128_ty(context &ctx) { return &ctx.p_impl->int128_ty; }
|
||||
integer_type *type::get_uint8_ty(context &ctx) { return &ctx.p_impl->uint8_ty; }
|
||||
integer_type *type::get_uint16_ty(context &ctx) { return &ctx.p_impl->uint16_ty; }
|
||||
integer_type *type::get_uint32_ty(context &ctx) { return &ctx.p_impl->uint32_ty; }
|
||||
integer_type *type::get_uint64_ty(context &ctx) { return &ctx.p_impl->uint64_ty; }
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user