-
Notifications
You must be signed in to change notification settings - Fork 268
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wazevo(amd64): adds stubs for all necessary methods
Signed-off-by: Takeshi Yoneda <[email protected]>
- Loading branch information
Showing
3 changed files
with
158 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
internal/engine/wazevo/backend/isa/amd64/machine_regalloc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
package amd64 | ||
|
||
import ( | ||
"github.com/tetratelabs/wazero/internal/engine/wazevo/backend" | ||
"github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc" | ||
"github.com/tetratelabs/wazero/internal/engine/wazevo/ssa" | ||
) | ||
|
||
// InsertMoveBefore implements backend.RegAllocFunctionMachine. | ||
func (m *machine) InsertMoveBefore(dst, src regalloc.VReg, instr *instruction) { | ||
// TODO implement me | ||
panic("implement me") | ||
} | ||
|
||
// InsertStoreRegisterAt implements backend.RegAllocFunctionMachine. | ||
func (m *machine) InsertStoreRegisterAt(v regalloc.VReg, instr *instruction, after bool) *instruction { | ||
// TODO implement me | ||
panic("implement me") | ||
} | ||
|
||
// InsertReloadRegisterAt implements backend.RegAllocFunctionMachine. | ||
func (m *machine) InsertReloadRegisterAt(v regalloc.VReg, instr *instruction, after bool) *instruction { | ||
// TODO implement me | ||
panic("implement me") | ||
} | ||
|
||
// ClobberedRegisters implements backend.RegAllocFunctionMachine. | ||
func (m *machine) ClobberedRegisters(regs []regalloc.VReg) { | ||
m.clobberedRegs = append(m.clobberedRegs[:0], regs...) | ||
} | ||
|
||
// Swap implements backend.RegAllocFunctionMachine. | ||
func (m *machine) Swap(cur *instruction, x1, x2, tmp regalloc.VReg) { | ||
// TODO implement me | ||
panic("implement me") | ||
} | ||
|
||
// LastInstrForInsertion implements backend.RegAllocFunctionMachine. | ||
func (m *machine) LastInstrForInsertion(begin, end *instruction) *instruction { | ||
// TODO implement me | ||
panic("implement me") | ||
} | ||
|
||
// SSABlockLabel implements backend.RegAllocFunctionMachine. | ||
func (m *machine) SSABlockLabel(id ssa.BasicBlockID) backend.Label { | ||
// TODO implement me | ||
panic("implement me") | ||
} |