spirv: switch_br lowering
Implements lowering switch statements in the SPIR-V backend.
This commit is contained in:
@@ -132,6 +132,11 @@ pub fn allocId(self: *Module) spec.IdResult {
|
||||
return .{ .id = self.next_result_id };
|
||||
}
|
||||
|
||||
pub fn allocIds(self: *Module, n: u32) spec.IdResult {
|
||||
defer self.next_result_id += n;
|
||||
return .{ .id = self.next_result_id };
|
||||
}
|
||||
|
||||
pub fn idBound(self: Module) Word {
|
||||
return self.next_result_id;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user