aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorReinUsesLisp <[email protected]>2021-02-24 18:30:10 -0300
committerReinUsesLisp <[email protected]>2021-02-24 18:30:10 -0300
commitf6a713048603381aa07e37c16b3cb30925719730 (patch)
treed39784eb647d81b65bac1d8648a12e4e5e23fccf /include
parent9a08dab7eed7bcf8b66686a3e9769477736518fe (diff)
downloadsirit-f6a713048603381aa07e37c16b3cb30925719730.tar.gz
sirit-f6a713048603381aa07e37c16b3cb30925719730.zip
Add support for self-referencing phi nodes
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 b675650..51d1782 100644
--- a/include/sirit/sirit.h
+++ b/include/sirit/sirit.h
@@ -90,6 +90,9 @@ public:
/// Generate a new id for forward declarations
[[nodiscard]] Id ForwardDeclarationId();
+ /// Returns the current generator id, useful for self-referencing phi nodes
+ [[nodiscard]] Id CurrentId() const noexcept;
+
/// Assign a new id and return the old one, useful for defining forward declarations
Id ExchangeCurrentId(Id new_current_id);