aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorReinUsesLisp <[email protected]>2021-02-12 21:08:46 -0300
committerReinUsesLisp <[email protected]>2021-02-12 21:08:46 -0300
commitc374bfd9fdff02a0cff85d005488967b1b0f675e (patch)
tree595716e08a665cc05bab62937444ed7901436dac /include
parent1f7b70730d610cfbd5099ab93dd38ec8a78e7e35 (diff)
downloadsirit-c374bfd9fdff02a0cff85d005488967b1b0f675e.tar.gz
sirit-c374bfd9fdff02a0cff85d005488967b1b0f675e.zip
Add Phi support
Diffstat (limited to 'include')
-rw-r--r--include/sirit/sirit.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/sirit/sirit.h b/include/sirit/sirit.h
index 781f84a..0a204d7 100644
--- a/include/sirit/sirit.h
+++ b/include/sirit/sirit.h
@@ -232,6 +232,12 @@ public:
// Flow
+ /**
+ * The SSA phi function.
+ * @param operands An immutable span of variable, parent block pairs
+ */
+ Id OpPhi(Id result_type, std::span<const Id> operands);
+
/// Declare a structured loop.
Id OpLoopMerge(Id merge_block, Id continue_target, spv::LoopControlMask loop_control,
std::span<const Id> literals = {});