v / vlib / v2 / insel / insel.v
17 lines · 14 sloc · 540 bytes · a7153322629091f3f2d79f0bf318d0fb2c13c425
Raw
1// Copyright (c) 2026 Alexander Medvednikov. All rights reserved.
2// Use of this source code is governed by an MIT license
3// that can be found in the LICENSE file.
4
5module insel
6
7import v2.mir
8import v2.pref
9
10// select performs target-specific instruction selection on MIR.
11// The current native backends consume MIR opcodes directly, so there is no
12// target-specific rewrite to apply yet. Keep the API as the insertion point for
13// a future real instruction selector.
14pub fn select(mut m mir.Module, arch pref.Arch) {
15 _ = m
16 _ = arch
17}
18