aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorReinUsesLisp <[email protected]>2021-03-28 18:52:32 -0300
committerReinUsesLisp <[email protected]>2021-03-28 18:52:32 -0300
commit84fab900242f3565f2ba8eb643aa03ede3ff39e9 (patch)
tree278554fbe4398f51f662d322d70fd5c5ffe7db95 /include
parent0ef6e807abc9ac74343568c27de5b500093d4ae8 (diff)
downloadsirit-84fab900242f3565f2ba8eb643aa03ede3ff39e9.tar.gz
sirit-84fab900242f3565f2ba8eb643aa03ede3ff39e9.zip
Add OpFunctionParameter
Diffstat (limited to 'include')
-rw-r--r--include/sirit/sirit.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sirit/sirit.h b/include/sirit/sirit.h
index 574a9cc..c26304b 100644
--- a/include/sirit/sirit.h
+++ b/include/sirit/sirit.h
@@ -242,6 +242,9 @@ public:
return OpFunctionCall(result_type, function, std::span<const Id>({arguments...}));
}
+ /// Declare a formal parameter of the current function.
+ Id OpFunctionParameter(Id result_type);
+
// Flow
/**