Source file src/cmd/compile/internal/ir/symtab.go

     1  // Copyright 2009 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package ir
     6  
     7  import (
     8  	"cmd/compile/internal/types"
     9  	"cmd/internal/obj"
    10  )
    11  
    12  // Syms holds known symbols.
    13  var Syms symsStruct
    14  
    15  type symsStruct struct {
    16  	AssertE2I         *obj.LSym
    17  	AssertE2I2        *obj.LSym
    18  	Asanread          *obj.LSym
    19  	Asanwrite         *obj.LSym
    20  	CgoCheckMemmove   *obj.LSym
    21  	CgoCheckPtrWrite  *obj.LSym
    22  	CheckPtrAlignment *obj.LSym
    23  	Deferproc         *obj.LSym
    24  	Deferprocat       *obj.LSym
    25  	DeferprocStack    *obj.LSym
    26  	Deferreturn       *obj.LSym
    27  	Duffcopy          *obj.LSym
    28  	Duffzero          *obj.LSym
    29  	GCWriteBarrier    [8]*obj.LSym
    30  	Goschedguarded    *obj.LSym
    31  	Growslice         *obj.LSym
    32  	InterfaceSwitch   *obj.LSym
    33  	Memmove           *obj.LSym
    34  	Msanread          *obj.LSym
    35  	Msanwrite         *obj.LSym
    36  	Msanmove          *obj.LSym
    37  	Newobject         *obj.LSym
    38  	Newproc           *obj.LSym
    39  	Panicdivide       *obj.LSym
    40  	Panicshift        *obj.LSym
    41  	PanicdottypeE     *obj.LSym
    42  	PanicdottypeI     *obj.LSym
    43  	Panicnildottype   *obj.LSym
    44  	Panicoverflow     *obj.LSym
    45  	Racefuncenter     *obj.LSym
    46  	Racefuncexit      *obj.LSym
    47  	Raceread          *obj.LSym
    48  	Racereadrange     *obj.LSym
    49  	Racewrite         *obj.LSym
    50  	Racewriterange    *obj.LSym
    51  	TypeAssert        *obj.LSym
    52  	WBZero            *obj.LSym
    53  	WBMove            *obj.LSym
    54  	// Wasm
    55  	SigPanic         *obj.LSym
    56  	Staticuint64s    *obj.LSym
    57  	Typedmemmove     *obj.LSym
    58  	Udiv             *obj.LSym
    59  	WriteBarrier     *obj.LSym
    60  	Zerobase         *obj.LSym
    61  	ARM64HasATOMICS  *obj.LSym
    62  	ARMHasVFPv4      *obj.LSym
    63  	Loong64HasLAM_BH *obj.LSym
    64  	Loong64HasLSX    *obj.LSym
    65  	X86HasFMA        *obj.LSym
    66  	X86HasPOPCNT     *obj.LSym
    67  	X86HasSSE41      *obj.LSym
    68  	// Wasm
    69  	WasmDiv *obj.LSym
    70  	// Wasm
    71  	WasmTruncS *obj.LSym
    72  	// Wasm
    73  	WasmTruncU *obj.LSym
    74  }
    75  
    76  // Pkgs holds known packages.
    77  var Pkgs struct {
    78  	Go           *types.Pkg
    79  	Itab         *types.Pkg
    80  	Runtime      *types.Pkg
    81  	InternalMaps *types.Pkg
    82  	Coverage     *types.Pkg
    83  }
    84  

View as plain text