This commit is contained in:
2026-03-06 20:14:02 +00:00
parent 39eaafea25
commit 33208a2356
146 changed files with 673 additions and 1986 deletions

View File

@@ -5,7 +5,7 @@ import (
"math"
"sort"
"github.com/mmcloughlin/avo/reg"
"sources.truenas.cloud/code/avo/reg"
)
// edge is an edge of the interference graph, indicating that registers X and Y

View File

@@ -3,7 +3,7 @@ package pass
import (
"testing"
"github.com/mmcloughlin/avo/reg"
"sources.truenas.cloud/code/avo/reg"
)
func TestAllocatorSimple(t *testing.T) {

View File

@@ -4,7 +4,7 @@ import (
"errors"
"fmt"
"github.com/mmcloughlin/avo/ir"
"sources.truenas.cloud/code/avo/ir"
)
// LabelTarget populates the LabelTarget of the given function. This maps from

View File

@@ -5,8 +5,8 @@ import (
"sort"
"testing"
"github.com/mmcloughlin/avo/ir"
"github.com/mmcloughlin/avo/operand"
"sources.truenas.cloud/code/avo/ir"
"sources.truenas.cloud/code/avo/operand"
)
func TestLabelTarget(t *testing.T) {

View File

@@ -1,8 +1,8 @@
package pass
import (
"github.com/mmcloughlin/avo/ir"
"github.com/mmcloughlin/avo/operand"
"sources.truenas.cloud/code/avo/ir"
"sources.truenas.cloud/code/avo/operand"
)
// PruneJumpToFollowingLabel removes jump instructions that target an

View File

@@ -4,11 +4,11 @@ import (
"reflect"
"testing"
"github.com/mmcloughlin/avo/build"
"github.com/mmcloughlin/avo/ir"
"github.com/mmcloughlin/avo/operand"
"github.com/mmcloughlin/avo/pass"
"github.com/mmcloughlin/avo/reg"
"sources.truenas.cloud/code/avo/build"
"sources.truenas.cloud/code/avo/ir"
"sources.truenas.cloud/code/avo/operand"
"sources.truenas.cloud/code/avo/pass"
"sources.truenas.cloud/code/avo/reg"
)
func TestPruneSelfMoves(t *testing.T) {

View File

@@ -3,7 +3,7 @@ package pass
import (
"sort"
"github.com/mmcloughlin/avo/ir"
"sources.truenas.cloud/code/avo/ir"
)
// RequiredISAExtensions determines ISA extensions required for the given

View File

@@ -4,7 +4,7 @@ import (
"reflect"
"testing"
"github.com/mmcloughlin/avo/ir"
"sources.truenas.cloud/code/avo/ir"
)
func TestRequiredISAExtensions(t *testing.T) {

View File

@@ -4,8 +4,8 @@ package pass
import (
"io"
"github.com/mmcloughlin/avo/ir"
"github.com/mmcloughlin/avo/printer"
"sources.truenas.cloud/code/avo/ir"
"sources.truenas.cloud/code/avo/printer"
)
// Compile pass compiles an avo file. Upon successful completion the avo file

View File

@@ -3,10 +3,10 @@ package pass
import (
"errors"
"github.com/mmcloughlin/avo/gotypes"
"github.com/mmcloughlin/avo/ir"
"github.com/mmcloughlin/avo/operand"
"github.com/mmcloughlin/avo/reg"
"sources.truenas.cloud/code/avo/gotypes"
"sources.truenas.cloud/code/avo/ir"
"sources.truenas.cloud/code/avo/operand"
"sources.truenas.cloud/code/avo/reg"
)
// ZeroExtend32BitOutputs applies the rule that "32-bit operands generate a

View File

@@ -3,12 +3,12 @@ package pass_test
import (
"testing"
"github.com/mmcloughlin/avo/attr"
"github.com/mmcloughlin/avo/build"
"github.com/mmcloughlin/avo/ir"
"github.com/mmcloughlin/avo/operand"
"github.com/mmcloughlin/avo/pass"
"github.com/mmcloughlin/avo/reg"
"sources.truenas.cloud/code/avo/attr"
"sources.truenas.cloud/code/avo/build"
"sources.truenas.cloud/code/avo/ir"
"sources.truenas.cloud/code/avo/operand"
"sources.truenas.cloud/code/avo/pass"
"sources.truenas.cloud/code/avo/reg"
)
func TestZeroExtend32BitOutputs(t *testing.T) {

View File

@@ -1,8 +1,8 @@
package pass
import (
"github.com/mmcloughlin/avo/attr"
"github.com/mmcloughlin/avo/ir"
"sources.truenas.cloud/code/avo/attr"
"sources.truenas.cloud/code/avo/ir"
)
// IncludeTextFlagHeader includes textflag.h if necessary.

View File

@@ -3,10 +3,10 @@ package pass_test
import (
"testing"
"github.com/mmcloughlin/avo/build"
"github.com/mmcloughlin/avo/internal/test"
"github.com/mmcloughlin/avo/ir"
"github.com/mmcloughlin/avo/pass"
"sources.truenas.cloud/code/avo/build"
"sources.truenas.cloud/code/avo/internal/test"
"sources.truenas.cloud/code/avo/ir"
"sources.truenas.cloud/code/avo/pass"
)
// BuildFunction is a helper to compile a build context containing a single

View File

@@ -3,8 +3,8 @@ package pass
import (
"errors"
"github.com/mmcloughlin/avo/ir"
"github.com/mmcloughlin/avo/operand"
"sources.truenas.cloud/code/avo/ir"
"sources.truenas.cloud/code/avo/operand"
)
// Verify pass validates an avo file.

View File

@@ -4,9 +4,9 @@ import (
"strings"
"testing"
"github.com/mmcloughlin/avo/ir"
"github.com/mmcloughlin/avo/operand"
"github.com/mmcloughlin/avo/reg"
"sources.truenas.cloud/code/avo/ir"
"sources.truenas.cloud/code/avo/operand"
"sources.truenas.cloud/code/avo/reg"
)
func TestVerifyMemOperands(t *testing.T) {