Add OpVariable

This commit is contained in:
ReinUsesLisp 2018-10-18 04:27:17 -03:00
parent c0aaf8989e
commit a3022e4969
3 changed files with 29 additions and 0 deletions

View file

@ -191,6 +191,12 @@ class Module {
/// @return target
Ref Name(Ref target, const std::string& name);
// Memory
/// Allocate an object in memory, resulting in a copy to it.
Ref Variable(Ref result_type, spv::StorageClass storage_class,
Ref initializer = nullptr);
// Literals
static Operand* Literal(std::uint32_t value);
static Operand* Literal(std::uint64_t value);