mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2026-01-06 22:49:28 +01:00
Add OpVariable
This commit is contained in:
parent
c0aaf8989e
commit
a3022e4969
3 changed files with 29 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue