Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 51 for variadicOk (0.17 sec)

  1. src/cmd/compile/internal/types2/predicates.go

    					return false
    				}
    			}
    
    			yparams = check.subst(nopos, y.params, smap, nil, ctxt).(*Tuple)
    			yresults = check.subst(nopos, y.results, smap, nil, ctxt).(*Tuple)
    		}
    
    		return x.variadic == y.variadic &&
    			c.identical(x.params, yparams, p) &&
    			c.identical(x.results, yresults, p)
    
    	case *Union:
    		if y, _ := y.(*Union); y != nil {
    			// TODO(rfindley): can this be reached during type checking? If so,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  2. src/go/types/predicates.go

    					return false
    				}
    			}
    
    			yparams = check.subst(nopos, y.params, smap, nil, ctxt).(*Tuple)
    			yresults = check.subst(nopos, y.results, smap, nil, ctxt).(*Tuple)
    		}
    
    		return x.variadic == y.variadic &&
    			c.identical(x.params, yparams, p) &&
    			c.identical(x.results, yresults, p)
    
    	case *Union:
    		if y, _ := y.(*Union); y != nil {
    			// TODO(rfindley): can this be reached during type checking? If so,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  3. src/internal/types/testdata/check/issues0.go

    }
    
    func f0() (a []int)         { return }
    func f1() (a []int, b int)  { return }
    func f2() (a, b []int)      { return }
    
    func append_([]int, ...int) {}
    
    func issue9473(a []int, b ...int) {
    	// variadic builtin function
    	_ = append(f0())
    	_ = append(f0(), f0()...)
    	_ = append(f1())
    	_ = append(f2 /* ERRORx `cannot use .* in argument` */ ())
    	_ = append(f2()... /* ERROR "cannot use ..." */ )
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 05 18:13:11 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/types/typeutil/map.go

    			hash += h.Hash(f.Type())
    		}
    		return hash
    
    	case *types.Pointer:
    		return 9067 + 2*h.Hash(t.Elem())
    
    	case *types.Signature:
    		var hash uint32 = 9091
    		if t.Variadic() {
    			hash *= 8863
    		}
    
    		// Use a separate hasher for types inside of the signature, where type
    		// parameter identity is modified to be (index, constraint). We must use a
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 13.9K bytes
    - Viewed (0)
  5. tensorflow/compiler/mlir/lite/transforms/lift_tflite_flex_ops.cc

            };
        if (tf_op->hasTrait<mlir::OpTrait::AttrSizedOperandSegments>() ||
            tf_op->hasTrait<mlir::OpTrait::AttrSizedResultSegments>()) {
          // The op has multiple variadic operands or results.
          // Calculate operand and result segment sizes using the OpDef.
          tensorflow::NameRangeMap input_ranges, output_ranges;
          // This will fail only if the OpDef is syntactically invalid.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/converter_gen.cc

        verify_ctx.addSubst("_op", "top");
    
        for (int i = 0, e = op.getNumOperands(); i < e; ++i) {
          auto &value = op.getOperand(i);
          // Skip from first variadic operands for now. Else getOperand index used
          // below doesn't match.
          if (value.isVariableLength()) break;
          if (!value.name.empty())
            verify_ctx.addSubst(value.name, formatv("op->getOperand({0})", i));
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Dec 19 15:05:28 UTC 2023
    - 23.7K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/types2/unify.go

    		// and result values, corresponding parameter and result types unify,
    		// and either both functions are variadic or neither is.
    		// Parameter and result names are not required to match.
    		// TODO(gri) handle type parameters or document why we can ignore them.
    		if y, ok := y.(*Signature); ok {
    			return x.variadic == y.variadic &&
    				u.nify(x.params, y.params, emode, p) &&
    				u.nify(x.results, y.results, emode, p)
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  8. src/go/internal/gcimporter/iimport.go

    }
    
    func (r *importReader) signature(recv *types.Var, rparams, tparams []*types.TypeParam) *types.Signature {
    	params := r.paramList()
    	results := r.paramList()
    	variadic := params.Len() > 0 && r.bool()
    	return types.NewSignatureType(recv, rparams, tparams, params, results, variadic)
    }
    
    func (r *importReader) tparamList() []*types.TypeParam {
    	n := r.uint64()
    	if n == 0 {
    		return nil
    	}
    	xs := make([]*types.TypeParam, n)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  9. src/go/types/unify.go

    		// and result values, corresponding parameter and result types unify,
    		// and either both functions are variadic or neither is.
    		// Parameter and result names are not required to match.
    		// TODO(gri) handle type parameters or document why we can ignore them.
    		if y, ok := y.(*Signature); ok {
    			return x.variadic == y.variadic &&
    				u.nify(x.params, y.params, emode, p) &&
    				u.nify(x.results, y.results, emode, p)
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 16:24:39 UTC 2024
    - 27.9K bytes
    - Viewed (0)
  10. src/runtime/sys_darwin_arm64.s

    TEXT notok<>(SB),NOSPLIT,$0
    	MOVD	$0, R8
    	MOVD	R8, (R8)
    	B	0(PC)
    
    TEXT runtime·open_trampoline(SB),NOSPLIT,$0
    	SUB	$16, RSP
    	MOVW	8(R0), R1	// arg 2 flags
    	MOVW	12(R0), R2	// arg 3 mode
    	MOVW	R2, (RSP)	// arg 3 is variadic, pass on stack
    	MOVD	0(R0), R0	// arg 1 pathname
    	BL	libc_open(SB)
    	ADD	$16, RSP
    	RET
    
    TEXT runtime·close_trampoline(SB),NOSPLIT,$0
    	MOVW	0(R0), R0	// arg 1 fd
    	BL	libc_close(SB)
    	RET
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 03 16:07:59 UTC 2023
    - 18.3K bytes
    - Viewed (0)
Back to top