mirror of
https://github.com/azahar-emu/sirit.git
synced 2026-03-28 14:20:59 +01:00
Replace "auto const" with "auto"
This commit is contained in:
@@ -11,7 +11,7 @@ namespace Sirit {
|
||||
|
||||
Ref Module::LoopMerge(Ref merge_block, Ref continue_target, spv::LoopControlMask loop_control,
|
||||
const std::vector<Ref>& literals) {
|
||||
auto const op{new Op(spv::Op::OpLoopMerge)};
|
||||
auto op{new Op(spv::Op::OpLoopMerge)};
|
||||
op->Add(merge_block);
|
||||
op->Add(continue_target);
|
||||
AddEnum(op, loop_control);
|
||||
@@ -20,7 +20,7 @@ Ref Module::LoopMerge(Ref merge_block, Ref continue_target, spv::LoopControlMask
|
||||
}
|
||||
|
||||
Ref Module::SelectionMerge(Ref merge_block, spv::SelectionControlMask selection_control) {
|
||||
auto const op{new Op(spv::Op::OpSelectionMerge)};
|
||||
auto op{new Op(spv::Op::OpSelectionMerge)};
|
||||
op->Add(merge_block);
|
||||
AddEnum(op, selection_control);
|
||||
return AddCode(op);
|
||||
@@ -31,14 +31,14 @@ Ref Module::Label() {
|
||||
}
|
||||
|
||||
Ref Module::Branch(Ref target_label) {
|
||||
auto const op{new Op(spv::Op::OpBranch)};
|
||||
auto op{new Op(spv::Op::OpBranch)};
|
||||
op->Add(target_label);
|
||||
return AddCode(op);
|
||||
}
|
||||
|
||||
Ref Module::BranchConditional(Ref condition, Ref true_label, Ref false_label,
|
||||
std::uint32_t true_weight, std::uint32_t false_weight) {
|
||||
auto const op{new Op(spv::Op::OpBranchConditional)};
|
||||
auto op{new Op(spv::Op::OpBranchConditional)};
|
||||
op->Add(condition);
|
||||
op->Add(true_label);
|
||||
op->Add(false_label);
|
||||
|
||||
Reference in New Issue
Block a user