Add support for self-referencing phi nodes

This commit is contained in:
ReinUsesLisp 2021-02-24 18:30:10 -03:00
parent 9a08dab7ee
commit f6a7130486
2 changed files with 7 additions and 0 deletions

View file

@ -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);