mirror of
https://github.com/azahar-emu/sirit.git
synced 2026-03-26 21:51:03 +01:00
Remove Emit entry in favor of auto-emitting code
All instructions but OpVariable and OpLabel are automatically emitted. These functions have to call AddLocalVariable/AddGlobalVariable or AddLabel respectively.
This commit is contained in:
@@ -16,7 +16,7 @@ Id Module::OpVariable(Id result_type, spv::StorageClass storage_class, Id initia
|
||||
if (initializer) {
|
||||
op->Add(initializer);
|
||||
}
|
||||
return AddCode(std::move(op));
|
||||
return code_store.emplace_back(std::move(op)).get();
|
||||
}
|
||||
|
||||
Id Module::OpLoad(Id result_type, Id pointer, std::optional<spv::MemoryAccessMask> memory_access) {
|
||||
|
||||
Reference in New Issue
Block a user