Add OpUndef

This commit is contained in:
ReinUsesLisp 2018-10-31 04:26:35 -03:00
parent 01c658b891
commit 93c17d11f9
3 changed files with 23 additions and 0 deletions

View file

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