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

@@ -1,6 +1,6 @@
package build
import "github.com/mmcloughlin/avo/attr"
import "sources.truenas.cloud/code/avo/attr"
// TEXT and DATA attribute values included for convenience.
const (

View File

@@ -7,8 +7,8 @@ import (
"os"
"runtime/pprof"
"github.com/mmcloughlin/avo/pass"
"github.com/mmcloughlin/avo/printer"
"sources.truenas.cloud/code/avo/pass"
"sources.truenas.cloud/code/avo/printer"
)
// Config contains options for an avo main function.

View File

@@ -7,12 +7,12 @@ import (
"golang.org/x/tools/go/packages"
"github.com/mmcloughlin/avo/attr"
"github.com/mmcloughlin/avo/buildtags"
"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/attr"
"sources.truenas.cloud/code/avo/buildtags"
"sources.truenas.cloud/code/avo/gotypes"
"sources.truenas.cloud/code/avo/ir"
"sources.truenas.cloud/code/avo/operand"
"sources.truenas.cloud/code/avo/reg"
)
//go:generate avogen -output zinstructions.go build

View File

@@ -5,8 +5,8 @@ import (
"fmt"
"log"
"github.com/mmcloughlin/avo/internal/stack"
"github.com/mmcloughlin/avo/src"
"sources.truenas.cloud/code/avo/internal/stack"
"sources.truenas.cloud/code/avo/src"
)
// Error represents an error during building, optionally tagged with the position at which it happened.

View File

@@ -7,7 +7,7 @@ import (
"log"
"testing"
"github.com/mmcloughlin/avo/src"
"sources.truenas.cloud/code/avo/src"
)
func TestLogErrorNil(t *testing.T) {

View File

@@ -4,12 +4,12 @@ import (
"flag"
"os"
"github.com/mmcloughlin/avo/attr"
"github.com/mmcloughlin/avo/buildtags"
"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/attr"
"sources.truenas.cloud/code/avo/buildtags"
"sources.truenas.cloud/code/avo/gotypes"
"sources.truenas.cloud/code/avo/ir"
"sources.truenas.cloud/code/avo/operand"
"sources.truenas.cloud/code/avo/reg"
)
// ctx provides a global build context.

View File

@@ -1,10 +1,10 @@
package build
import (
"github.com/mmcloughlin/avo/attr"
"github.com/mmcloughlin/avo/gotypes"
"github.com/mmcloughlin/avo/operand"
"github.com/mmcloughlin/avo/reg"
"sources.truenas.cloud/code/avo/attr"
"sources.truenas.cloud/code/avo/gotypes"
"sources.truenas.cloud/code/avo/operand"
"sources.truenas.cloud/code/avo/reg"
)
//go:generate avogen -output zmov.go mov

View File

@@ -3,9 +3,9 @@
package build
import (
"github.com/mmcloughlin/avo/ir"
"github.com/mmcloughlin/avo/operand"
"github.com/mmcloughlin/avo/x86"
"sources.truenas.cloud/code/avo/ir"
"sources.truenas.cloud/code/avo/operand"
"sources.truenas.cloud/code/avo/x86"
)
func (c *Context) addinstruction(i *ir.Instruction, err error) {

View File

@@ -8,8 +8,8 @@ import (
"math"
"testing"
"github.com/mmcloughlin/avo/operand"
"github.com/mmcloughlin/avo/reg"
"sources.truenas.cloud/code/avo/operand"
"sources.truenas.cloud/code/avo/reg"
)
var (

View File

@@ -5,7 +5,7 @@ package build
import (
"go/types"
"github.com/mmcloughlin/avo/operand"
"sources.truenas.cloud/code/avo/operand"
)
func (c *Context) mov(a, b operand.Op, an, bn int, t *types.Basic) {