aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorReinUsesLisp <[email protected]>2019-01-05 23:58:43 -0300
committerReinUsesLisp <[email protected]>2019-01-05 23:58:43 -0300
commit2b0a59d89098aef40b4400771587b6691810f97b (patch)
treeca596ccd4e8be20cf735a67e394c77965e07056c /include
parente7971b445177d3a4b793def9c1479479371312c2 (diff)
downloadsirit-2b0a59d89098aef40b4400771587b6691810f97b.tar.gz
sirit-2b0a59d89098aef40b4400771587b6691810f97b.zip
Add OpSwitch
Diffstat (limited to 'include')
-rw-r--r--include/sirit/sirit.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sirit/sirit.h b/include/sirit/sirit.h
index 253e152..eded07e 100644
--- a/include/sirit/sirit.h
+++ b/include/sirit/sirit.h
@@ -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();