Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 2,634 for Tstruct (0.25 sec)

  1. src/cmd/compile/internal/ssa/expand_calls.go

    	if i >= 0 { // float PR
    		return OpArgFloatReg, i
    	}
    	return OpArgIntReg, int64(r)
    }
    
    type selKey struct {
    	from          *Value // what is selected from
    	offsetOrIndex int64  // whatever is appropriate for the selector
    	size          int64
    	typ           *types.Type
    }
    
    type expandState struct {
    	f       *Func
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 05:13:40 UTC 2023
    - 31.9K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types/fmt.go

    		// type literal. For example, given "type Int = int" (#50190),
    		// it would be incorrect to format "struct{ Int }" as either
    		// "struct{ int }" or "struct{ Int int }", because those each
    		// represent other, distinct types.
    		//
    		// So for the purpose of LinkString (i.e., fmtTypeID), we use
    		// the non-standard syntax "struct{ Int = int }" to represent
    		// embedded fields that have been renamed through the use of
    		// type aliases.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Sep 12 15:41:17 UTC 2023
    - 15.7K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/walk/compare.go

    		if expr == nil {
    			expr = cond
    		} else {
    			expr = ir.NewLogicalExpr(base.Pos, andor, expr, cond)
    		}
    	}
    	cmpl = safeExpr(cmpl, init)
    	cmpr = safeExpr(cmpr, init)
    	if t.IsStruct() {
    		conds, _ := compare.EqStruct(t, cmpl, cmpr)
    		if n.Op() == ir.OEQ {
    			for _, cond := range conds {
    				and(cond)
    			}
    		} else {
    			for _, cond := range conds {
    				notCond := ir.NewUnaryExpr(base.Pos, ir.ONOT, cond)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 21:55:14 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/types/size.go

    // when a type's width should be known, we call CheckSize
    // to compute it.  during a declaration like
    //
    //	type T *struct { next T }
    //
    // it is necessary to defer the calculation of the struct width
    // until after T has been initialized to be a pointer to that struct.
    // similarly, during import processing structs may be used
    // before their definition.  in those situations, calling
    // DeferCheckSize() stops width calculations until
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 15K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/value.go

    		// not supported on SSA variables.
    		// TODO: allow if all indexes are constant.
    		if t.NumElem() <= 1 {
    			return CanSSA(t.Elem())
    		}
    		return false
    	case types.TSTRUCT:
    		if t.NumFields() > MaxStruct {
    			return false
    		}
    		for _, t1 := range t.Fields() {
    			if !CanSSA(t1.Type) {
    				return false
    			}
    		}
    		return true
    	default:
    		return true
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:40:22 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/typecheck/subr.go

    		}
    	}
    
    	return ir.OXXX, ""
    }
    
    // Code to resolve elided DOTs in embedded types.
    
    // A dlist stores a pointer to a TFIELD Type embedded within
    // a TSTRUCT or TINTER Type.
    type dlist struct {
    	field *types.Field
    }
    
    // dotpath computes the unique shortest explicit selector path to fully qualify
    // a selection expression x.f, where x is of type t and f is the symbol s.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 05 19:45:58 UTC 2023
    - 20.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/liveness/plive.go

    	case types.TSTRING:
    		// struct { byte *str; int len; }
    		clobberPtr(b, v, offset)
    
    	case types.TINTER:
    		// struct { Itab *tab; void *data; }
    		// or, when isnilinter(t)==true:
    		// struct { Type *type; void *data; }
    		clobberPtr(b, v, offset)
    		clobberPtr(b, v, offset+int64(types.PtrSize))
    
    	case types.TSLICE:
    		// struct { byte *array; int len; int cap; }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 15:22:22 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/typecheck/expr.go

    // index'th field of the given expression, which must be of struct or
    // pointer-to-struct type.
    func DotField(pos src.XPos, x ir.Node, index int) *ir.SelectorExpr {
    	op, typ := ir.ODOT, x.Type()
    	if typ.IsPtr() {
    		op, typ = ir.ODOTPTR, typ.Elem()
    	}
    	if !typ.IsStruct() {
    		base.FatalfAt(pos, "DotField of non-struct: %L", x)
    	}
    
    	// TODO(mdempsky): This is the backend's responsibility.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 23.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/typecheck/typecheck.go

    	types.TFLOAT32:    "float32",
    	types.TFLOAT64:    "float64",
    	types.TBOOL:       "bool",
    	types.TSTRING:     "string",
    	types.TPTR:        "pointer",
    	types.TUNSAFEPTR:  "unsafe.Pointer",
    	types.TSTRUCT:     "struct",
    	types.TINTER:      "interface",
    	types.TCHAN:       "chan",
    	types.TMAP:        "map",
    	types.TARRAY:      "array",
    	types.TSLICE:      "slice",
    	types.TFUNC:       "func",
    	types.TNIL:        "nil",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 20 19:08:34 UTC 2024
    - 30.5K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/test/abiutils_test.go

            IN 3: R{ } offset: 40 typ: struct { float64; struct { [2]int64; struct {} }; struct {} }
            IN 4: R{ } offset: 80 typ: struct { float64; struct { [2]int64; struct {} }; struct {} }
            OUT 0: R{ } offset: 120 typ: struct { float64; struct { [2]int64; struct {} }; struct {} }
            OUT 1: R{ } offset: 160 typ: [2]bool
            OUT 2: R{ } offset: 168 typ: struct { float64; struct { [2]int64; struct {} }; struct {} }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 04 15:11:40 UTC 2023
    - 14.2K bytes
    - Viewed (0)
Back to top