mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2026-01-02 04:35:38 +01:00
Add OpSwitch
This commit is contained in:
parent
e7971b4451
commit
2b0a59d890
2 changed files with 21 additions and 0 deletions
|
|
@ -192,6 +192,11 @@ class Module {
|
|||
std::uint32_t true_weight = 0,
|
||||
std::uint32_t false_weight = 0);
|
||||
|
||||
/// Multi-way branch to one of the operand label.
|
||||
Id OpSwitch(Id selector, Id default_label,
|
||||
const std::vector<Literal>& literals,
|
||||
const std::vector<Id>& labels);
|
||||
|
||||
/// Returns with no value from a function with void return type.
|
||||
Id OpReturn();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue