Refactor: remove unsupported extended float types (f128-f1024) #249
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Remove f128, f256, f512, and f1024 float types from lexer and parser as they are not supported by LLVM's standard code generation.
Changes
Type System Updates
FloatTypeenumF128,F256,F512,F1024enum variantsF32andF64(standard IEEE 754 formats)Lexer Changes
"f128","f256","f512","f1024"Parser Changes
FloatType::F{128,256,512,1024}match armsTest Suite Updates
test67.wave: Demonstratei8,u8,i32,u32,i128,u128usagetest68.wave: Showi1024bit shifting (arbitrary precision int)test69.wave: Testi1024overflow behavior with large valuesRationale
LLVM's core code generator only supports
f32(float) andf64(double) natively. Extended precision floats (f128, f256, etc.) would require:Wave focuses on standard IEEE 754 floats for portability and LLVM compatibility. Arbitrary precision integers (i1024, etc.) remain supported through LLVM's APInt infrastructure.
Users requiring extended float precision should use external libraries or explicit soft-float implementations rather than built-in types.