[FRONTEND] Semantic analysis refactor (#473)
Moved dispatch.cc to semantic.py Integer signedness now moved from C++ to python Cleaner frontend type Co-authored-by: Phil Tillet <phil@openai.com>
This commit is contained in:
@@ -19,18 +19,12 @@ context_impl::context_impl(context &ctx)
|
||||
fp32_ty(ctx, type::FP32TyID),
|
||||
fp64_ty(ctx, type::FP64TyID),
|
||||
// integers
|
||||
int1_ty(ctx, 1, signedness::SIGNED),
|
||||
int8_ty(ctx, 8, signedness::SIGNED),
|
||||
int16_ty(ctx, 16, signedness::SIGNED),
|
||||
int32_ty(ctx, 32, signedness::SIGNED),
|
||||
int64_ty(ctx, 64, signedness::SIGNED),
|
||||
int128_ty(ctx, 128, signedness::SIGNED),
|
||||
uint8_ty(ctx, 8, signedness::UNSIGNED),
|
||||
uint16_ty(ctx, 16, signedness::UNSIGNED),
|
||||
uint32_ty(ctx, 32, signedness::UNSIGNED),
|
||||
uint64_ty(ctx, 64, signedness::UNSIGNED){
|
||||
|
||||
}
|
||||
int1_ty(ctx, 1),
|
||||
int8_ty(ctx, 8),
|
||||
int16_ty(ctx, 16),
|
||||
int32_ty(ctx, 32),
|
||||
int64_ty(ctx, 64),
|
||||
int128_ty(ctx, 128) {}
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// context
|
||||
|
Reference in New Issue
Block a user