mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2026-01-01 20:25:23 +01:00
Add OpUndef
This commit is contained in:
parent
01c658b891
commit
93c17d11f9
3 changed files with 23 additions and 0 deletions
|
|
@ -219,6 +219,11 @@ class Module {
|
|||
spv::Decoration decoration,
|
||||
const std::vector<Literal>& literals = {});
|
||||
|
||||
// Misc
|
||||
|
||||
/// Make an intermediate object whose value is undefined.
|
||||
Ref Undef(Ref result_type);
|
||||
|
||||
private:
|
||||
Ref AddCode(Op* op);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue