mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2026-01-01 20:25:23 +01:00
Implement main conversion instructions
This commit is contained in:
parent
8747340c44
commit
a6c435dcb7
2 changed files with 32 additions and 6 deletions
|
|
@ -321,6 +321,22 @@ class Module {
|
|||
|
||||
// Conversion
|
||||
|
||||
Id OpConvertFToU(Id result_type, Id operand);
|
||||
|
||||
Id OpConvertFToS(Id result_type, Id operand);
|
||||
|
||||
Id OpConvertSToF(Id result_type, Id operand);
|
||||
|
||||
Id OpConvertUToF(Id result_type, Id operand);
|
||||
|
||||
Id OpUConvert(Id result_type, Id operand);
|
||||
|
||||
Id OpSConvert(Id result_type, Id operand);
|
||||
|
||||
Id OpFConvert(Id result_type, Id operand);
|
||||
|
||||
Id OpQuantizeToF16(Id result_type, Id operand);
|
||||
|
||||
/// Bit pattern-preserving type conversion.
|
||||
Id OpBitcast(Id result_type, Id operand);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue