Documentation
¶
Index ¶
- Constants
- func FrontendInlinePolicy() (bodyBudget, moduleBudget, depth int)
- func IsCPackage(name string) bool
- func MergeStaticByteArrays(dst, src map[string][]byte) map[string][]byte
- func NewPackage(prog llssa.Program, pkg *ssa.Package, files []*ast.File) (ret llssa.Package, err error)
- func NewPackageEx(prog llssa.Program, patches Patches, rewrites map[string]string, ...) (ret llssa.Package, externs []string, err error)
- func NewPackageExWithEmbed(prog llssa.Program, ct *CallerTracking, patches Patches, ...) (ret llssa.Package, externs []string, err error)
- func NewPackageExWithEmbedMeta(prog llssa.Program, ct *CallerTracking, patches Patches, ...) (ret llssa.Package, externs []string, err error)
- func NewPackageExWithEmbedMetaOptions(prog llssa.Program, ct *CallerTracking, patches Patches, ...) (ret llssa.Package, externs []string, err error)
- func ParsePkgSyntax(prog llssa.Program, fset *token.FileSet, pkg *types.Package, files []*ast.File) error
- func ParsePkgSyntaxWithOptions(prog llssa.Program, fset *token.FileSet, pkg *types.Package, files []*ast.File, ...) error
- func PkgKindOf(pkg *types.Package) (int, string)
- func PkgSkipsInit(kind int) bool
- func PrepareEscapeAnalysis(prog llssa.Program, input *ssa.Program, patches Patches) *goescape.Result
- func PrepareEscapeAnalysisCached(prog llssa.Program, input *ssa.Program, patches Patches, cache *goescape.Cache) *goescape.Result
- func PrepareEscapeAnalysisImported(prog llssa.Program, input *ssa.Program, patches Patches, cache *goescape.Cache, ...) *goescape.Result
- func PrepareInactiveLocalVariables(prog llssa.Program, fset *token.FileSet, pkg *types.Package, info *types.Info, ...) error
- func PrepareLocalVariables(prog llssa.Program, fset *token.FileSet, pkg *types.Package, info *types.Info, ...) error
- func ResolveInlineTarget(fn *ssa.Function, patches Patches) *ssa.Function
- func SetDebug(dbgFlags dbgFlags)
- func SkipNamesRetainingInit(altFiles []*ast.File) map[string]bool
- func StaticByteArrayKey(pkgPath, name string) string
- func StripLargeStaticByteArrays(pkg *types.Package, files []*ast.File, info *types.Info) map[string][]byte
- func StripLargeStaticByteArraysExcept(pkg *types.Package, files []*ast.File, info *types.Info, ...) map[string][]byte
- type CallerTracking
- func (c *CallerTracking) ExportFrontendFacts(pkg *ssa.Package, fn *ssa.Function) FrontendFacts
- func (c *CallerTracking) ImportFrontendFacts(pkg *ssa.Package, functions map[*ssa.Function]FrontendFacts)
- func (c *CallerTracking) MaterializeFrontendMethods(pkgs []*ssa.Package, extra []types.Type) map[*ssa.Package][]*ssa.Function
- func (c *CallerTracking) Precompute(pkgs []*ssa.Package)
- type FrontendFacts
- type GlobalInitExport
- type GlobalInitInstruction
- type Options
- type Patch
- type Patches
- type ReceiverNilChecks
- type UnusedGlobalInits
Constants ¶
const ( DbgFlagInstruction dbgFlags = 1 << iota DbgFlagGoSSA DbgFlagAll = DbgFlagInstruction | DbgFlagGoSSA )
const ( PkgNormal = iota PkgLLGo PkgPyModule // py.<module> PkgNoInit // noinit: a package that don't need to be initialized PkgDeclOnly // decl: a package that only have declarations PkgLinkIR // link llvm ir (.ll) PkgLinkExtern // link external object (.a/.so/.dll/.dylib/etc.) )
const (
RuntimeInit = llssa.PkgRuntime + ".init"
)
Variables ¶
This section is empty.
Functions ¶
func FrontendInlinePolicy ¶ added in v1.0.10
func FrontendInlinePolicy() (bodyBudget, moduleBudget, depth int)
FrontendInlinePolicy exposes the single import policy to the coordinator, which materializes eligible dependency bodies before backend workers start.
func IsCPackage ¶ added in v1.0.7
IsCPackage reports whether name selects LLGo's package C export convention. This depends on the declared package name, not its import path.
func MergeStaticByteArrays ¶ added in v1.0.9
MergeStaticByteArrays copies src into dst. Empty src is ignored.
func NewPackage ¶
func NewPackage(prog llssa.Program, pkg *ssa.Package, files []*ast.File) (ret llssa.Package, err error)
NewPackage compiles a Go package to LLVM IR package. Deprecated: use NewPackageExWithEmbedMetaOptions with explicit Options.
func NewPackageEx ¶
func NewPackageEx(prog llssa.Program, patches Patches, rewrites map[string]string, pkg *ssa.Package, files []*ast.File) (ret llssa.Package, externs []string, err error)
NewPackageEx compiles a Go package to LLVM IR package.
Parameters:
- prog: target LLVM SSA program context
- patches: optional package patches applied during compilation
- rewrites: per-package string initializers rewritten at compile time
- pkg: SSA package to compile
- files: parsed AST files that belong to the package
The rewrites map uses short variable names (without package qualifier) and only affects string-typed globals defined in the current package. Deprecated: use NewPackageExWithEmbedMetaOptions with explicit Options.
func NewPackageExWithEmbed ¶
func NewPackageExWithEmbed(prog llssa.Program, ct *CallerTracking, patches Patches, rewrites map[string]string, pkg *ssa.Package, files []*ast.File, embedMap goembed.VarMap) (ret llssa.Package, externs []string, err error)
NewPackageExWithEmbed compiles a package using pre-loaded go:embed metadata.
This avoids re-scanning directives when the caller already loaded them. ct carries the compilation-scoped caller-tracking memoization; drivers compiling multiple packages pass the same instance for every package of one compilation (like patches). nil means one-shot: a fresh instance is created for this call. Deprecated: use NewPackageExWithEmbedMetaOptions with explicit Options.
func NewPackageExWithEmbedMeta ¶
func NewPackageExWithEmbedMeta(prog llssa.Program, ct *CallerTracking, patches Patches, rewrites map[string]string, pkg *ssa.Package, files []*ast.File, embedMap goembed.VarMap, metaCollect bool) (ret llssa.Package, externs []string, err error)
NewPackageExWithEmbedMeta compiles a package and optionally collects metadata. Deprecated: use NewPackageExWithEmbedMetaOptions with explicit Options.
func NewPackageExWithEmbedMetaOptions ¶
func NewPackageExWithEmbedMetaOptions(prog llssa.Program, ct *CallerTracking, patches Patches, rewrites map[string]string, pkg *ssa.Package, files []*ast.File, embedMap goembed.VarMap, metaCollect bool, options Options) (ret llssa.Package, externs []string, err error)
NewPackageExWithEmbedMetaOptions is NewPackageExWithEmbedMeta with explicit per-package frontend options.
func ParsePkgSyntax ¶
func ParsePkgSyntax(prog llssa.Program, fset *token.FileSet, pkg *types.Package, files []*ast.File) error
ParsePkgSyntax collects declaration directives in one syntax pass before SSA creation using default frontend options.
func ParsePkgSyntaxWithOptions ¶
func ParsePkgSyntaxWithOptions(prog llssa.Program, fset *token.FileSet, pkg *types.Package, files []*ast.File, options Options) error
ParsePkgSyntaxWithOptions collects all Program-side declaration metadata. LLVM Package effects such as preserving //export symbols are applied later.
func PkgSkipsInit ¶
PkgSkipsInit reports whether packages of kind are excluded from Go package initialization.
func PrepareEscapeAnalysis ¶ added in v1.0.10
func PrepareEscapeAnalysis(prog llssa.Program, input *ssa.Program, patches Patches) *goescape.Result
PrepareEscapeAnalysis runs after all source metadata and SSA bodies are ready, and before isolated backend Programs are created. Its result is immutable.
func PrepareEscapeAnalysisCached ¶ added in v1.0.10
func PrepareEscapeAnalysisCached(prog llssa.Program, input *ssa.Program, patches Patches, cache *goescape.Cache) *goescape.Result
PrepareEscapeAnalysisCached optionally reuses complete validated facts. SSA bodies remain available for feature analysis and cross-package body import.
func PrepareEscapeAnalysisImported ¶ added in v1.0.10
func PrepareEscapeAnalysisImported(prog llssa.Program, input *ssa.Program, patches Patches, cache *goescape.Cache, imports map[*ssa.Function]goescape.Summary, keys map[*ssa.Function]string, extraRoots []*ssa.Function) *goescape.Result
PrepareEscapeAnalysisImported joins cached archive contracts with source bodies that are being rebuilt or imported. The coordinator validates imports and materializes required bodies before publishing the resulting decisions.
func PrepareInactiveLocalVariables ¶
func PrepareInactiveLocalVariables(prog llssa.Program, fset *token.FileSet, pkg *types.Package, info *types.Info, files []*ast.File) error
PrepareInactiveLocalVariables prepares declarations from an alternate package without making them affect the program-wide LocalContext decision. The build driver activates an alternate package only when its canonical package participates in the effective dependency graph.
func PrepareLocalVariables ¶
func PrepareLocalVariables(prog llssa.Program, fset *token.FileSet, pkg *types.Package, info *types.Info, files []*ast.File) error
PrepareLocalVariables extracts replayable initializer helpers before Go SSA construction, then records the storage strategy selected by the independent package-layout planner.
func ResolveInlineTarget ¶ added in v1.0.10
ResolveInlineTarget selects the same implementation for frontend body preloading and backend import. An unresolved patched method must not fall back to its original body. Body availability and cost are checked separately.
func SkipNamesRetainingInit ¶ added in v1.0.9
SkipNamesRetainingInit returns original globals that must keep executable initialization. The alternate package skips them, but original init still runs; processPkg then omits the original global, so restoring via ConstByteArray never happens. skipall and //llgo:skip init drop original init, so stripping those arrays remains valid.
func StaticByteArrayKey ¶ added in v1.0.9
StaticByteArrayKey is the lookup key for a stripped package-level byte array. pkgPath must be types.Package.Path(), not llssa.PathOf: PathOf maps every ordinary main package to "main" and would collide across commands.
func StripLargeStaticByteArrays ¶ added in v1.0.9
func StripLargeStaticByteArrays(pkg *types.Package, files []*ast.File, info *types.Info) map[string][]byte
StripLargeStaticByteArrays extracts payload from large package-level byte array literals and replaces `var x = [N]byte{...}` with `var x [N]byte`. Clearing only CompositeLit.Elts leaves `= [N]byte{}`, and go/ssa then memclr's large arrays in init, wiping the restored LLVM initializer. The returned map is keyed by StaticByteArrayKey of pkg.Path() and the variable name, matching initStaticByteArrayGlobal lookup. Call this after type checking and before ssa.Package.Build. Already-stripped specs (no values) are skipped so a second call does not replace a previous payload with zeros. info.InitOrder entries for stripped variables are removed so go/ssa does not rebuild the initializer from the type checker.
func StripLargeStaticByteArraysExcept ¶ added in v1.0.9
func StripLargeStaticByteArraysExcept(pkg *types.Package, files []*ast.File, info *types.Info, skipped map[string]bool) map[string][]byte
StripLargeStaticByteArraysExcept is StripLargeStaticByteArrays, leaving names in skipped untouched. Partial patches collect skipped from the alternate package via SkipNamesRetainingInit: processPkg omits those original globals, so their InitOrder stores are the only initialization of the replacement when original init is retained.
Types ¶
type CallerTracking ¶
type CallerTracking struct {
// contains filtered or unexported fields
}
CallerTracking memoizes frontend analyses for one compilation. Like Patches, it is compilation-scoped state owned by the driver: create one per compilation and pass it to every NewPackageExWithEmbed call of that compilation, so cross-package queries hit the same caller-tracking and recover facts. It must not outlive the compilation — the caches are keyed by *ssa.Package and *ssa.Function, so anything longer-lived would pin every compiled package's go/types and go/ssa graphs. Concurrent drivers call Precompute before workers start; recover facts also synchronize lazy queries for nested and synthetic functions that are not package members.
func NewCallerTracking ¶
func NewCallerTracking() *CallerTracking
NewCallerTracking creates the frontend-analysis caches for one compilation.
func (*CallerTracking) ExportFrontendFacts ¶ added in v1.0.10
func (c *CallerTracking) ExportFrontendFacts(pkg *ssa.Package, fn *ssa.Function) FrontendFacts
func (*CallerTracking) ImportFrontendFacts ¶ added in v1.0.10
func (c *CallerTracking) ImportFrontendFacts(pkg *ssa.Package, functions map[*ssa.Function]FrontendFacts)
ImportFrontendFacts installs a complete validated package contract. The caller must materialize all required method wrappers and reject incomplete function inventories before calling this method. Source-built packages use the ordinary Precompute path, including dependencies' imported base sets.
func (*CallerTracking) MaterializeFrontendMethods ¶ added in v1.0.10
func (c *CallerTracking) MaterializeFrontendMethods(pkgs []*ssa.Package, extra []types.Type) map[*ssa.Package][]*ssa.Function
MaterializeFrontendMethods restores runtime method requirements before workers start. It includes private/local types absent from the public API.
func (*CallerTracking) Precompute ¶
func (c *CallerTracking) Precompute(pkgs []*ssa.Package)
Precompute resolves caller-tracking and recover data before package backends start. Once it returns, callers may share c for concurrent lookups as long as pkgs contains every package that can be passed to this compilation. A later caller-tracking lookup miss panics instead of mutating the shared maps; recover facts retain their own synchronization for nested and synthetic functions that are not package members.
type FrontendFacts ¶ added in v1.0.10
type FrontendFacts struct {
CallerBase, CallerFrame, RecoverPanicSite bool
UsesRecover, RecoverScope bool
InlineCost int
}
FrontendFacts are the body-independent contracts a caller may need from an archive-cached function. They must be exported from the same analysis and policy that compiled the owning archive, never inferred from an empty body.
type GlobalInitExport ¶ added in v1.0.10
type GlobalInitExport struct {
Names, Keys []string
Instructions []GlobalInitInstruction
}
GlobalInitExport is a program-context plan, not a generic package property. The coordinator keys it by all source inputs and executable roots.
type GlobalInitInstruction ¶ added in v1.0.10
type Options ¶
type Options struct {
// EscapeAnalysis contains immutable storage decisions prepared before
// backend workers. Direct API callers may omit it to analyze their input.
EscapeAnalysis *goescape.Result
// EscapeImports are validated contracts owned by cached dependency archives.
EscapeImports map[*ssa.Function]goescape.Summary
EscapeImportKeys map[*ssa.Function]string
// EscapeRoots includes methods materialized from exported runtime types.
EscapeRoots []*ssa.Function
// DeclarationsOnly preserves source/type bindings for a cached archive;
// its definitions and link metadata are supplied by that archive's export.
DeclarationsOnly bool
Debug bool
DebugSymbols bool
Trace bool
ExportRename bool
// AllowInternalDirectives permits directives reserved for LLGo's runtime.
// Package loaders set it only for verified Go standard-library sources.
AllowInternalDirectives bool
// CExportWrappers keeps //export implementations under their Go symbols;
// the final-link module supplies the public C entry points.
// It does not apply to package C, which defines its exports directly.
CExportWrappers bool
ShadowStack bool
CompactCallerLocations bool
// DebuggerFrames retains logical stacks for every eligible function in
// opt-in Wasm debugger builds, including parked goroutines.
DebuggerFrames bool
// DisableInlineBodyImports leaves cross-package inlining to the linker.
DisableInlineBodyImports bool
// PreloadedSyntax means all Program-side source metadata was collected
// before lowering and is now shared read-only by backend Programs.
PreloadedSyntax bool
// ReceiverNilChecks retains pointer-method selection semantics erased
// during Go SSA construction. It is collected from checked source info.
ReceiverNilChecks *ReceiverNilChecks
UnusedGlobalInits *UnusedGlobalInits
// StaticByteArrays are package-level [N]byte payloads extracted after
// type checking and before ssa.Package.Build so go/ssa does not emit
// one store per element. Keys use StaticByteArrayKey(pkg.Path(), name).
StaticByteArrays map[string][]byte
}
Options contains frontend behavior for one package compilation.
type ReceiverNilChecks ¶ added in v1.0.3
type ReceiverNilChecks struct {
// contains filtered or unexported fields
}
ReceiverNilChecks preserves implicit address-taking in pointer method selections. SSA folds (*p).M into p.M and represents promoted value fields with FieldAddr, neither of which retains the required nil dereference. The maps are immutable after collection and shared by package lowering.
func CollectReceiverNilChecks ¶ added in v1.0.3
func CollectReceiverNilChecks(files []*ast.File, infos ...*types.Info) *ReceiverNilChecks
CollectReceiverNilChecks uses checked selections, not selector spelling: (*T).M is a method expression, whereas (*p).M selects a method value. infos may include both an original package and its runtime source overlay.
type UnusedGlobalInits ¶ added in v1.0.9
type UnusedGlobalInits struct {
// contains filtered or unexported fields
}
UnusedGlobalInits describes package initializations whose destination is never accessed by the program. It is computed before parallel package lowering and is immutable afterwards. CacheKeys must participate in each package's cache key.
func FindUnusedGlobalInits ¶ added in v1.0.9
FindUnusedGlobalInits deliberately examines all functions, including unreachable methods and external entry points. The caller must preserve globals exposed through aliases or native code, and must not apply this plan to a library. Removing dead stores and map operations leaves operand evaluation in place, including calls, channel receives, and expressions that may panic. A fixed point also removes now-unused global loads. Pointer-bearing globals remain GC roots unless their initializer graph is provably private and constant.
func RestoreUnusedGlobalInits ¶ added in v1.0.10
func RestoreUnusedGlobalInits(exports map[*ssa.Package]GlobalInitExport) (*UnusedGlobalInits, error)
RestoreUnusedGlobalInits binds removals only in source-built initializers. Opaque packages already contain this plan in their validated archive.
func (*UnusedGlobalInits) CacheKeys ¶ added in v1.0.9
func (p *UnusedGlobalInits) CacheKeys(pkg *ssa.Package) []string
CacheKeys identifies the exact instruction plan, including discarded blank initializers that have no named destination. Alternate packages have separate SSA identities, so their keys must also be included in the compiled module.
func (*UnusedGlobalInits) Export ¶ added in v1.0.10
func (p *UnusedGlobalInits) Export(pkg *ssa.Package) GlobalInitExport
Source Files
¶
- compile.go
- constiface.go
- debug_alloc.go
- debug_scope.go
- embed.go
- escape.go
- finalizer.go
- fresh_append.go
- frontend_facts.go
- gcroot.go
- import.go
- inline.go
- instr.go
- instr_escape.go
- keepalive.go
- llvm_intrinsic.go
- locality.go
- locality_lower.go
- maplit.go
- receiver_nil.go
- recover.go
- safepoint.go
- simd.go
- simd_fmv.go
- ssa_referrers.go
- static_byte_array.go
- static_init.go
- uintptr_escapes.go
- unused_global_init.go
- variadic_forward.go
Directories
¶
| Path | Synopsis |
|---|---|
|
_test127
|
|
|
genericmethod
command
|
|
|
_testdata
|
|
|
cpkg
LITTEST
|
LITTEST |
|
cpkgimp
command
LITTEST
|
LITTEST |
|
debug
command
LITTEST
|
LITTEST |
|
embedunexport
LITTEST
|
LITTEST |
|
floatint
command
LITTEST: POST-ABI darwin/arm64 linux/amd64 linux/arm64 windows/amd64 Scope: arch (arm64/amd64 float-to-integer ABI)
|
LITTEST: POST-ABI darwin/arm64 linux/amd64 linux/arm64 windows/amd64 Scope: arch (arm64/amd64 float-to-integer ABI) |
|
foo
LITTEST NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\QBar\E|\QF\E|\QFoo.Pb\E|\Q(*Foo).Pb\E) --check-globals=smart
|
LITTEST NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\QBar\E|\QF\E|\QFoo.Pb\E|\Q(*Foo).Pb\E) --check-globals=smart |
|
geometry1370
LITTEST NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\QNewRectangle\E|\Q(*Rectangle).Area\E|\Q(*Rectangle).GetID\E|\Q(*Rectangle).setID\E|\Q(*Rectangle).validate\E|\QRegisterShape\E) --check-globals=smart
|
LITTEST NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\QNewRectangle\E|\Q(*Rectangle).Area\E|\Q(*Rectangle).GetID\E|\Q(*Rectangle).setID\E|\Q(*Rectangle).validate\E|\QRegisterShape\E) --check-globals=smart |
|
importpkg
command
LITTEST
|
LITTEST |
|
llgointrinsics
LITTEST darwin/arm64 linux/amd64 Scope: arch (arm64/amd64 function-value ABI; intrinsic lowering otherwise common)
|
LITTEST darwin/arm64 linux/amd64 Scope: arch (arm64/amd64 function-value ABI; intrinsic lowering otherwise common) |
|
llgosyscall
LITTEST NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\QUse\E|\QUse5F64\E|\QUse6\E|\QUse6X\E|\QUsePtr\E|\QUseRaw\E|\QUseRaw6\E) --check-globals=smart
|
LITTEST NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\QUse\E|\QUse5F64\E|\QUse6\E|\QUse6X\E|\QUsePtr\E|\QUseRaw\E|\QUseRaw6\E) --check-globals=smart |
|
vargs
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
_testdrop
|
|
|
c_export_callback
command
LITTEST
|
LITTEST |
|
direct_func
command
LITTEST
|
LITTEST |
|
direct_method
command
LITTEST
|
LITTEST |
|
exported_method_crosspkg
command
LITTEST
|
LITTEST |
|
generic_interface_crosspkg
command
LITTEST
|
LITTEST |
|
generic_interface_func_crosspkg
command
LITTEST
|
LITTEST |
|
iface_flow_crosspkg
command
LITTEST
|
LITTEST |
|
interface_demand_fixedpoint
command
LITTEST
|
LITTEST |
|
interface_match
command
LITTEST
|
LITTEST |
|
interface_slot
command
LITTEST
|
LITTEST |
|
promoted_method_wrapper
command
LITTEST
|
LITTEST |
|
reflect_dynamic_iface_crosspkg
command
LITTEST
|
LITTEST |
|
reflect_field_addr_iface
command
LITTEST
|
LITTEST |
|
reflect_method_result
command
LITTEST
|
LITTEST |
|
reflect_named_method
command
LITTEST
|
LITTEST |
|
source64_crosspkg
command
LITTEST
|
LITTEST |
|
unexported_method_identity
command
LITTEST
|
LITTEST |
|
_testgo
|
|
|
abimethod
command
LITTEST
|
LITTEST |
|
alias
command
LITTEST NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\Qmain.(*Point).Move\E|\Qmain.(*Point).Scale\E|\Qmain.main\E) --check-globals=smart
|
LITTEST NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\Qmain.(*Point).Move\E|\Qmain.(*Point).Scale\E|\Qmain.main\E) --check-globals=smart |
|
arith-divrem
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
blankfield
command
LITTEST
|
LITTEST |
|
cgobasic
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
cgocfiles
command
LITTEST Scope: os (host CGo errno and aggregate ABI)
|
LITTEST Scope: os (host CGo errno and aggregate ABI) |
|
cgodefer
command
LITTEST Scope: arch (arm64/amd64 closure/defer calling convention)
|
LITTEST Scope: arch (arm64/amd64 closure/defer calling convention) |
|
chan
command
LITTEST darwin/arm64 linux/amd64
|
LITTEST darwin/arm64 linux/amd64 |
|
closureall
command
LITTEST darwin/arm64 linux/amd64 windows/arm64 windows/amd64 Scope: arch (arm64, amd64)
|
LITTEST darwin/arm64 linux/amd64 windows/arm64 windows/amd64 Scope: arch (arm64, amd64) |
|
closureenv
command
LITTEST darwin/arm64 linux/amd64
|
LITTEST darwin/arm64 linux/amd64 |
|
complitassign
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
cursor
command
LITTEST darwin/arm64 linux/amd64 windows/arm64 windows/amd64 Scope: common
|
LITTEST darwin/arm64 linux/amd64 windows/arm64 windows/amd64 Scope: common |
|
defer1
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
defer3
command
LITTEST
|
LITTEST |
|
defer4
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
defer5
command
LITTEST darwin/arm64 linux/amd64 windows/arm64 windows/amd64
|
LITTEST darwin/arm64 linux/amd64 windows/arm64 windows/amd64 |
|
deferclosure
command
LITTEST darwin/arm64 linux/amd64
|
LITTEST darwin/arm64 linux/amd64 |
|
defercomplex
command
LITTEST darwin/arm64 linux/amd64
|
LITTEST darwin/arm64 linux/amd64 |
|
deferiface
command
LITTEST
|
LITTEST |
|
deferpanicterm
command
LITTEST
|
LITTEST |
|
embedunexport-1598
command
LITTEST NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\Qmain.Wrapped.Name\E|\Qmain.Wrapped.github.com/xgo-dev/llgo/cl/_testdata/embedunexport.setName\E|\Qmain.(*Wrapped).Name\E|\Qmain.(*Wrapped).github.com/xgo-dev/llgo/cl/_testdata/embedunexport.setName\E) --check-globals=smart
|
LITTEST NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\Qmain.Wrapped.Name\E|\Qmain.Wrapped.github.com/xgo-dev/llgo/cl/_testdata/embedunexport.setName\E|\Qmain.(*Wrapped).Name\E|\Qmain.(*Wrapped).github.com/xgo-dev/llgo/cl/_testdata/embedunexport.setName\E) --check-globals=smart |
|
equal
command
LITTEST darwin/arm64 linux/amd64
|
LITTEST darwin/arm64 linux/amd64 |
|
genericembediface
command
LITTEST
|
LITTEST |
|
genericiter
command
LITTEST darwin/arm64 linux/amd64
|
LITTEST darwin/arm64 linux/amd64 |
|
goroutine
command
LITTEST darwin/arm64 linux/amd64
|
LITTEST darwin/arm64 linux/amd64 |
|
ifaceconv
command
LITTEST
|
LITTEST |
|
ifaceprom
command
LITTEST darwin/arm64 linux/amd64
|
LITTEST darwin/arm64 linux/amd64 |
|
indexerr
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
interface1370
command
LITTEST
|
LITTEST |
|
invoke
command
LITTEST darwin/arm64 linux/amd64
|
LITTEST darwin/arm64 linux/amd64 |
|
loop
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
makeslice
command
LITTEST
|
LITTEST |
|
mapfast
command
LITTEST
|
LITTEST |
|
mapindirect
command
LITTEST NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\Qmain.main\E|\Qmain.lookup[main.LargeKey]\E) --check-globals=smart
|
LITTEST NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\Qmain.main\E|\Qmain.lookup[main.LargeKey]\E) --check-globals=smart |
|
multiret
command
LITTEST darwin/arm64 linux/amd64 Scope: arch (arm64/amd64 closure-call ABI; aggregate results otherwise common)
|
LITTEST darwin/arm64 linux/amd64 Scope: arch (arm64/amd64 closure-call ABI; aggregate results otherwise common) |
|
postabi
command
LITTEST: POST-ABI darwin/arm64 linux/amd64 wasip1/wasm CHECK: target triple = " DARWIN-ARM64-SAME: {{.*}}-apple-{{.*}}" LINUX-AMD64-SAME: {{.*}}-linux{{.*}}" WASIP1-WASM-SAME: wasm32-unknown-wasip1"
|
LITTEST: POST-ABI darwin/arm64 linux/amd64 wasip1/wasm CHECK: target triple = " DARWIN-ARM64-SAME: {{.*}}-apple-{{.*}}" LINUX-AMD64-SAME: {{.*}}-linux{{.*}}" WASIP1-WASM-SAME: wasm32-unknown-wasip1" |
|
print
command
LITTEST
|
LITTEST |
|
reflect
command
LITTEST darwin/arm64 linux/amd64
|
LITTEST darwin/arm64 linux/amd64 |
|
reflectconv
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
reflectmk
command
LITTEST
|
LITTEST |
|
reflectmkfn
command
LITTEST darwin/arm64 linux/amd64
|
LITTEST darwin/arm64 linux/amd64 |
|
resultaddr
command
|
|
|
returnorder
command
LITTEST
|
LITTEST |
|
rewrite
command
LITTEST
|
LITTEST |
|
runextest
command
LITTEST
|
LITTEST |
|
runtest
command
LITTEST
|
LITTEST |
|
select
command
LITTEST darwin/arm64 linux/amd64
|
LITTEST darwin/arm64 linux/amd64 |
|
staticmapslice
command
LITTEST
|
LITTEST |
|
strucintf
command
LITTEST
|
LITTEST |
|
struczero
command
LITTEST NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\Qmain.Bar\E|\Qmain.Foo\E|\Qmain.main\E) --check-globals=smart
|
LITTEST NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\Qmain.Bar\E|\Qmain.Foo\E|\Qmain.main\E) --check-globals=smart |
|
tpindex
command
LITTEST
|
LITTEST |
|
tpinst
command
LITTEST
|
LITTEST |
|
tplocalclosureiface
command
LITTEST darwin/arm64 linux/amd64
|
LITTEST darwin/arm64 linux/amd64 |
|
tplocaltype
command
LITTEST
|
LITTEST |
|
tpnamed
command
LITTEST darwin/arm64 linux/amd64
|
LITTEST darwin/arm64 linux/amd64 |
|
tprecur
command
LITTEST NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\Qmain.main\E|\Qmain.recursive\E|\Qmain.recur1[main.T.1.0]\E|\Qmain.recur2[main.T.1.0]\E) --check-globals=smart
|
LITTEST NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\Qmain.main\E|\Qmain.recursive\E|\Qmain.recur1[main.T.1.0]\E|\Qmain.recur2[main.T.1.0]\E) --check-globals=smart |
|
tptypes
command
LITTEST NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\Qmain\E|\Q(*Slice[[]int,int]).Append\E|\Q(*Slice[[]string,string]).Append\E|\Q(*Slice[[]int,int]).Append2\E) --check-globals=smart
|
LITTEST NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\Qmain\E|\Q(*Slice[[]int,int]).Append\E|\Q(*Slice[[]string,string]).Append\E|\Q(*Slice[[]int,int]).Append2\E) --check-globals=smart |
|
typerecur
command
LITTEST darwin/arm64 linux/amd64
|
LITTEST darwin/arm64 linux/amd64 |
|
_testlibc
|
|
|
aliasrecv
command
|
|
|
argv
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
atomic
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
callbackmethod
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
complex
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
cppabi
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
defer
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
once
command
LITTEST Scope: os (Darwin/Linux pthread_once ABI)
|
LITTEST Scope: os (Darwin/Linux pthread_once ABI) |
|
setjmp
command
LITTEST darwin/arm64 linux/amd64 windows/386 windows/amd64 windows/arm64 Scope: os+arch (setjmp symbols, buffer layout, and dispatch ABI)
|
LITTEST darwin/arm64 linux/amd64 windows/386 windows/amd64 windows/arm64 Scope: os+arch (setjmp symbols, buffer layout, and dispatch ABI) |
|
umuloverflow
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
_testlto
|
|
|
abitype_runtime
command
|
|
|
anonymous_alias
command
LITTEST
|
LITTEST |
|
caller_inline_entry
command
|
|
|
globaldce_abitype_fakeuse
command
|
|
|
globaldce_interface_matrix
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
globaldce_interface_method_typeid
command
LITTEST
|
LITTEST |
|
globaldce_reflect_method
command
LITTEST
|
LITTEST |
|
globaldce_reflect_method_by_name_ltoplugin
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
globaldce_reflect_method_by_name_ltoplugin_concat
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
globaldce_reflect_method_by_name_ltoplugin_global
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
globaldce_reflect_method_by_name_ltoplugin_loop
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
globaldce_reflect_method_by_name_ltoplugin_string_abi
command
LITTEST
|
LITTEST |
|
globaldce_reflect_type_method
command
LITTEST
|
LITTEST |
|
globaldce_reflect_type_method_by_name
command
LITTEST
|
LITTEST |
|
globaldce_reflect_type_method_metadata_only
command
LITTEST
|
LITTEST |
|
globaldce_reflect_value_method
command
LITTEST
|
LITTEST |
|
globaldce_static_itab_devirt
command
LITTEST
|
LITTEST |
|
globaldce_static_itab_partial_root
command
LITTEST
|
LITTEST |
|
globaldce_typeid_dce
command
LITTEST
|
LITTEST |
|
globaldce_unexported_method_identity
command
LITTEST
|
LITTEST |
|
ifaceconv_runtime
command
|
|
|
reflectmk_runtime
command
|
|
|
reflectmkfn_runtime
command
|
|
|
testpcline
command
|
|
|
typed_runtime
command
|
|
|
_testmeta
|
|
|
ifaceuse_basic
command
|
|
|
interface_anyonmous
command
|
|
|
interface_exported_var
command
|
|
|
interface_generic
command
|
|
|
interface_generic_crosspkg
command
|
|
|
interface_imported
command
|
|
|
interface_named
command
|
|
|
interface_unexported
command
|
|
|
methodinfo_imported
command
|
|
|
reflect_dynamic
command
|
|
|
reflect_named
command
|
|
|
typechildren_basic
command
|
|
|
_testpy
|
|
|
callpy
command
LITTEST Scope: os+arch (Python C long width; call forms otherwise common)
|
LITTEST Scope: os+arch (Python C long width; call forms otherwise common) |
|
list
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
math
LITTEST Scope: common
|
LITTEST Scope: common |
|
_testrt
|
|
|
abinamed
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
allocstr
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
asmfull
command
LITTEST darwin/arm64 linux/amd64 windows/386 windows/amd64 windows/arm64
|
LITTEST darwin/arm64 linux/amd64 windows/386 windows/amd64 windows/arm64 |
|
builtin
command
LITTEST darwin/arm64 linux/amd64
|
LITTEST darwin/arm64 linux/amd64 |
|
cast
command
LITTEST
|
LITTEST |
|
clear
LITTEST
|
LITTEST |
|
closurebound
command
LITTEST darwin/arm64 linux/amd64
|
LITTEST darwin/arm64 linux/amd64 |
|
closureconv
command
LITTEST darwin/arm64 linux/amd64
|
LITTEST darwin/arm64 linux/amd64 |
|
closureiface
command
LITTEST darwin/arm64 darwin/amd64 linux/arm64 linux/amd64 windows/arm64 windows/amd64 NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\Qmain.main\E|\Qmain.main$1\E) --check-globals=smart
|
LITTEST darwin/arm64 darwin/amd64 linux/arm64 linux/amd64 windows/arm64 windows/amd64 NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\Qmain.main\E|\Qmain.main$1\E) --check-globals=smart |
|
complex
command
LITTEST NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\Qmain.main\E) --check-globals=smart
|
LITTEST NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\Qmain.main\E) --check-globals=smart |
|
concat
command
LITTEST NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\Qmain.concat\E|\Qmain.info\E|\Qmain.main\E) --check-globals=smart
|
LITTEST NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\Qmain.concat\E|\Qmain.info\E|\Qmain.main\E) --check-globals=smart |
|
constiface
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
cvar
command
LITTEST darwin/arm64 linux/amd64 windows/386 windows/amd64 windows/arm64 Scope: common (native global storage, including function-pointer fields)
|
LITTEST darwin/arm64 linux/amd64 windows/386 windows/amd64 windows/arm64 Scope: common (native global storage, including function-pointer fields) |
|
eface
command
LITTEST darwin/amd64 darwin/arm64 linux/386 linux/amd64 linux/arm64 windows/386 windows/amd64 windows/arm64
|
LITTEST darwin/amd64 darwin/arm64 linux/386 linux/amd64 linux/arm64 windows/386 windows/amd64 windows/arm64 |
|
float2any
command
LITTEST NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\Qmain.check32\E|\Qmain.check64\E|\Qmain.f32\E|\Qmain.f64\E|\Qmain.main\E) --check-globals=smart
|
LITTEST NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\Qmain.check32\E|\Qmain.check64\E|\Qmain.f32\E|\Qmain.f64\E|\Qmain.main\E) --check-globals=smart |
|
freevars
command
LITTEST darwin/arm64 darwin/amd64 linux/amd64 linux/arm64 windows/amd64 windows/arm64 NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\Qmain.main\E|\Qmain.main$1\E|\Qmain.main$1$1\E|\Qmain.main$2\E) --check-globals=smart
|
LITTEST darwin/arm64 darwin/amd64 linux/amd64 linux/arm64 windows/amd64 windows/arm64 NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\Qmain.main\E|\Qmain.main$1\E|\Qmain.main$1$1\E|\Qmain.main$2\E) --check-globals=smart |
|
funcdecl
command
LITTEST
|
LITTEST |
|
gblarray
command
LITTEST NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\Qmain.Basic\E|\Qmain.basicType\E|\Qmain.init\E|\Qmain.main\E) --check-globals=smart Scope: common
|
LITTEST NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\Qmain.Basic\E|\Qmain.basicType\E|\Qmain.init\E|\Qmain.main\E) --check-globals=smart Scope: common |
|
hostlayout
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
index
command
LITTEST
|
LITTEST |
|
len
command
LITTEST
|
LITTEST |
|
linkname
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
makemap
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
mapclosure
command
LITTEST darwin/arm64 linux/amd64
|
LITTEST darwin/arm64 linux/amd64 |
|
maplit
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
maplitsafety
command
LITTEST Scope: common CHECK: define {{.*}} @main.publication(
|
LITTEST Scope: common CHECK: define {{.*}} @main.publication( |
|
mask
command
LITTEST NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\Qmain.mask\E|\Qmain.mask_shl\E|\Qmain.mask_shl8\E|\Qmain.mask_shl8u\E|\Qmain.mask_shr\E|\Qmain.mask_shr8\E|\Qmain.mask_shr8u\E) --check-globals=smart
|
LITTEST NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\Qmain.mask\E|\Qmain.mask_shl\E|\Qmain.mask_shl8\E|\Qmain.mask_shl8u\E|\Qmain.mask_shr\E|\Qmain.mask_shr8\E|\Qmain.mask_shr8u\E) --check-globals=smart |
|
methodthunk
command
LITTEST NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\Qmain.main\E|\Qmain.(*outer).M$thunk\E|\Qmain.(*InnerInt).M$thunk\E) --check-globals=smart
|
LITTEST NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\Qmain.main\E|\Qmain.(*outer).M$thunk\E|\Qmain.(*InnerInt).M$thunk\E) --check-globals=smart |
|
named
command
LITTEST darwin/arm64 linux/amd64 Scope: arch (arm64, amd64)
|
LITTEST darwin/arm64 linux/amd64 Scope: arch (arm64, amd64) |
|
ptrtothislazy
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
qsortfn
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
reflectclosureenv
command
LITTEST darwin/arm64 linux/amd64
|
LITTEST darwin/arm64 linux/amd64 |
|
slice2array
command
LITTEST
|
LITTEST |
|
stacksave
command
LITTEST
|
LITTEST |
|
staticifacebox
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
staticitab
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
struct
command
LITTEST
|
LITTEST |
|
tpabi
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
tpfunc
command
LITTEST
|
LITTEST |
|
tpmap
command
LITTEST NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\Qmain.main\E) --check-globals=smart
|
LITTEST NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\Qmain.main\E) --check-globals=smart |
|
tpmethod
command
LITTEST darwin/arm64 darwin/amd64 linux/amd64 linux/arm64 windows/amd64 windows/arm64 NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\Qmain.ReadFile\E|\Qmain.ReadFile$1\E|\Qmain.main\E|\Qmain.main$1\E|\Qmain.Async[main.Tuple[error]]\E|\Qmain.Tuple[error].Get\E|\Qmain.(*future[main.Tuple[error]]).Then\E|\Qmain.(*Tuple[error]).Get\E) --check-globals=smart
|
LITTEST darwin/arm64 darwin/amd64 linux/amd64 linux/arm64 windows/amd64 windows/arm64 NOTE: Assertions have been autogenerated by chore/litgen UTC_ARGS: --function=(?:\Qmain.ReadFile\E|\Qmain.ReadFile$1\E|\Qmain.main\E|\Qmain.main$1\E|\Qmain.Async[main.Tuple[error]]\E|\Qmain.Tuple[error].Get\E|\Qmain.(*future[main.Tuple[error]]).Then\E|\Qmain.(*Tuple[error]).Get\E) --check-globals=smart |
|
tpunsafe
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
typalias
command
LITTEST
|
LITTEST |
|
typed
command
LITTEST darwin/amd64 darwin/arm64 linux/386 linux/amd64 linux/arm64 windows/386 windows/amd64 windows/arm64 Scope: common
|
LITTEST darwin/amd64 darwin/arm64 linux/386 linux/amd64 linux/arm64 windows/386 windows/amd64 windows/arm64 Scope: common |
|
unsafe
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
vamethod
command
LITTEST Scope: common
|
LITTEST Scope: common |
|
_testsimd
|
|
|
dispatch
command
LITTEST linux/amd64 windows/amd64 darwin/arm64 wasip1/wasm Scope: common
|
LITTEST linux/amd64 windows/amd64 darwin/arm64 wasip1/wasm Scope: common |