mirror of
https://git.suyu.dev/suyu/sirit.git
synced 2025-12-27 01:36:46 +01:00
Add OpUnreachable
This commit is contained in:
parent
84fab90024
commit
f1cccfd0f3
2 changed files with 8 additions and 0 deletions
|
|
@ -67,6 +67,11 @@ void Module::OpReturn() {
|
|||
*code << spv::Op::OpReturn << EndOp{};
|
||||
}
|
||||
|
||||
void Module::OpUnreachable() {
|
||||
code->Reserve(1);
|
||||
*code << spv::Op::OpUnreachable << EndOp{};
|
||||
}
|
||||
|
||||
Id Module::OpReturnValue(Id value) {
|
||||
code->Reserve(2);
|
||||
return *code << spv::Op::OpReturnValue << value << EndOp{};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue