Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 14 for dumpparams (0.17 sec)

  1. src/runtime/heapdump.go

    		for j := uintptr(0); j < n; j, p = j+1, p+size {
    			if freemark[j] {
    				freemark[j] = false
    				continue
    			}
    			dumpobj(unsafe.Pointer(p), size, makeheapobjbv(p, size))
    		}
    	}
    }
    
    func dumpparams() {
    	dumpint(tagParams)
    	x := uintptr(1)
    	if *(*byte)(unsafe.Pointer(&x)) == 1 {
    		dumpbool(false) // little-endian ptrs
    	} else {
    		dumpbool(true) // big-endian ptrs
    	}
    	dumpint(goarch.PtrSize)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  2. tensorflow/compiler/mlir/tensorflow/transforms/xla_rewrite.cc

    };
    
    void MoveResourceArgsToEnd(func::FuncOp callee) {
      llvm::DenseMap<BlockArgument, BlockArgument> mapping;
      unsigned num_params = callee.getNumArguments();
      llvm::BitVector removed_params(num_params);
      // Copy the resource-type parameters to the end.
      for (unsigned i = 0; i < num_params; ++i) {
        BlockArgument param = callee.getArgument(i);
        if (mlir::isa<TF::ResourceType>(getElementTypeOrSelf(param.getType()))) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types/identity.go

    		return true
    
    	case TFUNC:
    		// Check parameters and result parameters for type equality.
    		// We intentionally ignore receiver parameters for type
    		// equality, because they're never relevant.
    		if t1.NumParams() != t2.NumParams() ||
    			t1.NumResults() != t2.NumResults() ||
    			t1.IsVariadic() != t2.IsVariadic() {
    			return false
    		}
    
    		fs1 := t1.ParamsResults()
    		fs2 := t2.ParamsResults()
    		for i, f1 := range fs1 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 20:57:01 UTC 2023
    - 4.6K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/typecheck/dcl.go

    	if recv != nil {
    		nrecvs++
    	}
    
    	// TODO(mdempsky): Move this function to types.
    	// TODO(mdempsky): Preserve positions, names, and package from sig+recv.
    
    	params := make([]*types.Field, nrecvs+sig.NumParams())
    	if recv != nil {
    		params[0] = types.NewField(base.Pos, nil, recv)
    	}
    	for i, param := range sig.Params() {
    		d := types.NewField(base.Pos, nil, param.Type)
    		d.SetIsDDD(param.IsDDD())
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 14 13:15:50 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/walk/stmt.go

    // call without arguments or results.
    func validGoDeferCall(call ir.Node) bool {
    	if call, ok := call.(*ir.CallExpr); ok && call.Op() == ir.OCALLFUNC && len(call.KeepAlive) == 0 {
    		sig := call.Fun.Type()
    		return sig.NumParams()+sig.NumResults() == 0
    	}
    	return false
    }
    
    // walkGoDefer walks an OGO or ODEFER node.
    func walkGoDefer(n *ir.GoDeferStmt) ir.Node {
    	if !validGoDeferCall(n.Call) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 06 15:42:30 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/AsmBackedClassGenerator.java

                int numParams = originalParameterTypes.length;
                Type[] closurisedParameterTypes = new Type[numParams];
                System.arraycopy(originalParameterTypes, 0, closurisedParameterTypes, 0, numParams);
                closurisedParameterTypes[numParams - 1] = CLOSURE_TYPE;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 15:40:00 UTC 2024
    - 100.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/walk/walk.go

    	if init == nil {
    		base.Fatalf("mkcall with nil init: %v", fn)
    	}
    	if fn.Type() == nil || fn.Type().Kind() != types.TFUNC {
    		base.Fatalf("mkcall %v %v", fn, fn.Type())
    	}
    
    	n := fn.Type().NumParams()
    	if n != len(va) {
    		base.Fatalf("vmkcall %v needs %v args got %v", fn, n, len(va))
    	}
    
    	call := typecheck.Call(base.Pos, fn, va, false).(*ir.CallExpr)
    	call.SetType(t)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 27 20:56:00 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types/type.go

    func (t *Type) NumRecvs() int   { return len(t.Recvs()) }
    func (t *Type) NumParams() int  { return len(t.Params()) }
    func (t *Type) NumResults() int { return len(t.Results()) }
    
    // IsVariadic reports whether function type t is variadic.
    func (t *Type) IsVariadic() bool {
    	n := t.NumParams()
    	return n > 0 && t.Param(n-1).IsDDD()
    }
    
    // Recv returns the receiver of function type t, if any.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssagen/abi.go

    	// to allocate any stack space). Doing this will require some
    	// extra work in typecheck/walk/ssa, might want to add a new node
    	// OTAILCALL or something to this effect.
    	tailcall := fn.Type().NumResults() == 0 && fn.Type().NumParams() == 0 && fn.Type().NumRecvs() == 0
    	if base.Ctxt.Arch.Name == "ppc64le" && base.Ctxt.Flag_dynlink {
    		// cannot tailcall on PPC64 with dynamic linking, as we need
    		// to restore R2 after call.
    		tailcall = false
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/test/abiutils_test.go

    `)
    
    	abitest(t, ft, exp)
    
    	// Test that NumParamRegs doesn't assign registers to trailing padding.
    	typ := mkstruct(i64, i64, mkstruct())
    	have := configAMD64.NumParamRegs(typ)
    	if have != 2 {
    		t.Errorf("NumParams(%v): have %v, want %v", typ, have, 2)
    	}
    }
    
    func TestABIUtilsSliceString(t *testing.T) {
    	// func(p1 []int32, p2 int8, p3 []int32, p4 int8, p5 string,
    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