Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 46 for RType (0.08 sec)

  1. src/cmd/link/internal/loadxcoff/ldxcoff.go

    					return errorf("section %s: relocation R_POS has length different from 64: %d", sect.Name, rx.Length)
    				}
    				rSize = 8
    				rType = objabi.R_CONST
    				rAdd = int64(rx.Symbol.Value)
    
    			case xcoff.R_RBR:
    				rSize = 4
    				rType = objabi.R_CALLPOWER
    				rAdd = 0
    			}
    			r, _ := sb.AddRel(rType)
    			r.SetOff(rOff)
    			r.SetSiz(rSize)
    			r.SetSym(rSym)
    			r.SetAdd(rAdd)
    		}
    	}
    	return textp, nil
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Dec 14 17:22:18 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/walk/switch.go

    	done    ir.Nodes
    	clauses []exprClause
    }
    
    type exprClause struct {
    	pos    src.XPos
    	lo, hi ir.Node
    	rtype  ir.Node // *runtime._type for OEQ node
    	jmp    ir.Node
    }
    
    func (s *exprSwitch) Add(pos src.XPos, expr, rtype, jmp ir.Node) {
    	c := exprClause{pos: pos, lo: expr, hi: expr, rtype: rtype, jmp: jmp}
    	if types.IsOrdered[s.exprname.Type().Kind()] && expr.Op() == ir.OLITERAL {
    		s.clauses = append(s.clauses, c)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:34:01 UTC 2024
    - 30.1K bytes
    - Viewed (0)
  3. src/runtime/runtime1.go

    }
    
    // reflectlite_resolveTypeOff resolves an *rtype offset from a base type.
    //
    //go:linkname reflectlite_resolveTypeOff internal/reflectlite.resolveTypeOff
    func reflectlite_resolveTypeOff(rtype unsafe.Pointer, off int32) unsafe.Pointer {
    	return unsafe.Pointer(toRType((*_type)(rtype)).typeOff(typeOff(off)))
    }
    
    // reflect_addReflectOff adds a pointer to the reflection offset lookup map.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 17:52:17 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  4. src/cmd/link/testdata/linkname/badlinkname.go

    package main
    
    import (
    	_ "reflect"
    	"unsafe"
    )
    
    //go:linkname noescape runtime.noescape
    func noescape(unsafe.Pointer) unsafe.Pointer
    
    //go:linkname rtype_String reflect.(*rtype).String
    func rtype_String(unsafe.Pointer) string
    
    func main() {
    	println(rtype_String(noescape(nil)))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 16:48:00 UTC 2024
    - 620 bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/tensorflow/transforms/tf_passes.td

          %ri = "tf.TPUReplicatedInput"(%pi_0, %pi_1) : (!rtype, !rtype) -> !rtype
          return %ri : !rtype
        }
        ```
    
        will be transformed into:
    
        ```mlir
        !rtype = type tensor<!tf_type.resource<tensor<10x3xf32>>>
        func @data_and_model_parallelism(%arg0: !rtype, %arg1: !rtype, %arg2: !rtype, %arg3: !rtype) -> !rtype {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:18:05 UTC 2024
    - 99.6K bytes
    - Viewed (0)
  6. src/cmd/link/internal/ld/testdata/deadcode/structof_funcof.go

    // Copyright 2023 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Methods of reflect.rtype use StructOf and FuncOf which in turn depend on
    // reflect.Value.Method. StructOf and FuncOf must not disable the DCE.
    
    package main
    
    import "reflect"
    
    type S int
    
    func (s S) M() { println("S.M") }
    
    func (s S) N() { println("S.N") }
    
    type T float64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 01 15:07:26 UTC 2023
    - 994 bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/testinggoroutine/testinggoroutine.go

    	}
    	return x, sel, fn
    }
    
    func formatMethod(sel *types.Selection, fn *types.Func) string {
    	var ptr string
    	rtype := sel.Recv()
    	if p, ok := aliases.Unalias(rtype).(*types.Pointer); ok {
    		ptr = "*"
    		rtype = p.Elem()
    	}
    	return fmt.Sprintf("(%s%s).%s", ptr, rtype.String(), fn.Name())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/walk/complit.go

    	// make the map var
    	args := []ir.Node{ir.TypeNode(n.Type()), ir.NewInt(base.Pos, n.Len+int64(len(n.List)))}
    	a := typecheck.Expr(ir.NewCallExpr(base.Pos, ir.OMAKE, nil, args)).(*ir.MakeExpr)
    	a.RType = n.RType
    	a.SetEsc(n.Esc())
    	appendWalkStmt(init, ir.NewAssignStmt(base.Pos, m, a))
    
    	entries := n.List
    
    	// The order pass already removed any dynamic (runtime-computed) entries.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:03:54 UTC 2023
    - 19.5K bytes
    - Viewed (0)
  9. src/internal/reflectlite/export_test.go

    	// so v.ptr + field.offset is still the correct address.
    	ptr := add(v.ptr, field.Offset, "same as non-reflect &v.field")
    	return Value{typ, ptr, fl}
    }
    
    func TField(typ Type, i int) Type {
    	t := typ.(rtype)
    	if t.Kind() != Struct {
    		panic("reflect: Field of non-struct type")
    	}
    	tt := (*structType)(unsafe.Pointer(t.Type))
    
    	return StructFieldType(tt, i)
    }
    
    // Field returns the i'th struct field.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 17:01:54 UTC 2024
    - 3K bytes
    - Viewed (0)
  10. cmd/kubeadm/app/cmd/util/cmdutil.go

    	return cfgValue
    }
    
    // TypeMismatchErr return an error which indicates how the type is mismatched.
    func TypeMismatchErr(opt, rType string) error {
    	return errors.Errorf("type mismatch, %s is expected to be a pointer to %s", opt, rType)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 05:14:21 UTC 2024
    - 5.3K bytes
    - Viewed (0)
Back to top