mirror of
https://github.com/yuzu-emu/sirit.git
synced 2024-12-01 19:24:22 +01:00
Add name overload to OpLabel
This commit is contained in:
parent
ba92d8ea08
commit
ee4ce61e62
@ -176,10 +176,14 @@ public:
|
|||||||
/// Declare a structured selection.
|
/// Declare a structured selection.
|
||||||
Id OpSelectionMerge(Id merge_block, spv::SelectionControlMask selection_control);
|
Id OpSelectionMerge(Id merge_block, spv::SelectionControlMask selection_control);
|
||||||
|
|
||||||
/// The block label instruction: Any reference to a block is through this
|
/// The block label instruction: Any reference to a block is through this ref.
|
||||||
/// ref.
|
|
||||||
Id OpLabel();
|
Id OpLabel();
|
||||||
|
|
||||||
|
/// The block label instruction: Any reference to a block is through this ref.
|
||||||
|
Id OpLabel(const std::string label_name) {
|
||||||
|
return Name(OpLabel(), label_name);
|
||||||
|
}
|
||||||
|
|
||||||
/// Unconditional jump to label.
|
/// Unconditional jump to label.
|
||||||
Id OpBranch(Id target_label);
|
Id OpBranch(Id target_label);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user