mirror of
https://github.com/azahar-emu/sirit.git
synced 2026-05-11 14:38:18 +02:00
Add OpSwitch
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user