Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for NewLinksymExpr (0.51 sec)

  1. src/cmd/compile/internal/walk/convert.go

    	var value ir.Node
    	switch {
    	case fromType.Size() == 0:
    		// n is zero-sized. Use zerobase.
    		cheapExpr(n, init) // Evaluate n for side-effects. See issue 19246.
    		value = ir.NewLinksymExpr(base.Pos, ir.Syms.Zerobase, types.Types[types.TUINTPTR])
    	case isBool || fromType.Size() == 1 && isInteger:
    		// n is a bool/byte. Use staticuint64s[n * 8] on little-endian
    		// and staticuint64s[n * 8 + 7] on big-endian.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 17:28:22 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ir/func.go

    		name := fn.Nname
    		abi := fn.ABI
    		if abi != wantABI {
    			base.ErrorfAt(pos, 0, "internal/abi.FuncPC%s expects an %v function, %s is defined as %v", wantABI, wantABI, name.Sym().Name, abi)
    		}
    		var e Node = NewLinksymExpr(pos, name.LinksymABI(abi), types.Types[types.TUINTPTR])
    		e = NewAddrExpr(pos, e)
    		e.SetType(types.Types[types.TUINTPTR].PtrTo())
    		e = NewConvExpr(pos, OCONVNOP, types.Types[types.TUINTPTR], e)
    		e.SetTypecheck(1)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:05:44 UTC 2024
    - 21.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/typecheck/subr.go

    }
    
    // LinksymAddr returns a new expression that evaluates to the address
    // of lsym. typ specifies the type of the addressed memory.
    func LinksymAddr(pos src.XPos, lsym *obj.LSym, typ *types.Type) *ir.AddrExpr {
    	n := ir.NewLinksymExpr(pos, lsym, typ)
    	return Expr(NodAddrAt(pos, n)).(*ir.AddrExpr)
    }
    
    func NodNil() ir.Node {
    	return ir.NewNilExpr(base.Pos, types.Types[types.TNIL])
    }
    
    // AddImplicitDots finds missing fields in obj.field that
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 19:45:58 UTC 2023
    - 20.2K bytes
    - Viewed (0)
Back to top