Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 12 for funcargs (0.12 sec)

  1. src/cmd/compile/internal/types/sizeof_test.go

    	}{
    		{Sym{}, 32, 64},
    		{Type{}, 64, 104},
    		{Map{}, 12, 24},
    		{Forward{}, 20, 32},
    		{Func{}, 32, 56},
    		{Struct{}, 12, 24},
    		{Interface{}, 0, 0},
    		{Chan{}, 8, 16},
    		{Array{}, 12, 16},
    		{FuncArgs{}, 4, 8},
    		{ChanArgs{}, 4, 8},
    		{Ptr{}, 4, 8},
    		{Slice{}, 4, 8},
    	}
    
    	for _, tt := range tests {
    		want := tt._32bit
    		if _64bit {
    			want = tt._64bit
    		}
    		got := reflect.TypeOf(tt.val).Size()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 18 17:08:44 UTC 2024
    - 1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types/type.go

    func (t *Type) ChanArgs() *Type {
    	t.wantEtype(TCHANARGS)
    	return t.extra.(ChanArgs).T
    }
    
    // FuncArgs returns the func type for TFUNCARGS type t.
    func (t *Type) FuncArgs() *Type {
    	t.wantEtype(TFUNCARGS)
    	return t.extra.(FuncArgs).T
    }
    
    // IsFuncArgStruct reports whether t is a struct representing function parameters or results.
    func (t *Type) IsFuncArgStruct() bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 04 14:29:45 UTC 2024
    - 49.5K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types/size.go

    		t.intRegs = 1
    		t.setAlg(ANOEQ)
    		t.ptrBytes = int64(PtrSize)
    
    	// function is 3 cated structures;
    	// compute their widths as side-effect.
    	case TFUNCARGS:
    		t1 := t.FuncArgs()
    		// TODO(mdempsky): Should package abi be responsible for computing argwid?
    		w = calcStructOffset(t1, t1.Recvs(), 0)
    		w = calcStructOffset(t1, t1.Params(), w)
    		w = RoundUp(w, int64(RegSize))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:53:03 UTC 2024
    - 15K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/promote_resources_to_args.cc

      // itself as the current live value.
      auto func_args = function.getArguments().take_front(
          function.getNumArguments() - var_handle_shared_names.size());
      for (BlockArgument& func_arg : func_args) {
        auto resource_type = mlir::dyn_cast<TF::ResourceType>(
            getElementTypeOrSelf(func_arg.getType()));
        if (!resource_type) continue;
        if (failed(ValidateResourceArgument(function, func_arg, resource_type)))
          return failure();
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
  5. src/reflect/type.go

    	}
    	if abid.stackPtrs.n > 0 {
    		x.GCData = &abid.stackPtrs.data[0]
    	}
    
    	var s string
    	if rcvr != nil {
    		s = "methodargs(" + stringFor(rcvr) + ")(" + stringFor(&t.Type) + ")"
    	} else {
    		s = "funcargs(" + stringFor(&t.Type) + ")"
    	}
    	x.Str = resolveReflectName(newName(s, "", false, false))
    
    	// cache result for future callers
    	framePool = &sync.Pool{New: func() any {
    		return unsafe_New(x)
    	}}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 85.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/quantization/tensorflow/passes/preprocess_op.cc

        func::FuncOp float_func =
            dyn_cast<func::FuncOp>(symbol_table.lookup(function_name));
        OperandRange func_args = op.getArgs();
        func::FuncOp new_float_func = float_func.clone();
    
        SmallVector<Value> new_float_func_args{func_args.begin(), func_args.end()};
        new_float_func_args[weight_operand_idx] = reshape_op;
        new_float_func.getArgument(weight_operand_idx).setType(new_shape);
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/quantization/stablehlo/passes/unwrap_xla_call_module_op.cc

                       builder.create<mhlo::ConstantOp>(
                           func_op.getLoc(), builder.getI16IntegerAttr(0)));
      }
      for (auto [func_arg, operand] : llvm::zip_equal(
               func_op.getArguments().take_back(call_op.getNumOperands()),
               call_op.getOperands())) {
        arg_mapper.map(func_arg, operand);
      }
    
      Region& function_body = func_op.getBody();
      IRMapping new_op_mapper;
      for (Operation& op : function_body.getOps()) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Mar 05 07:39:40 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/swig/swig_test.go

    	t.Run("lto", func(t *testing.T) { run(t, "testdata/callback", true, "Callback") })
    }
    
    func run(t *testing.T, dir string, lto bool, args ...string) {
    	runArgs := append([]string{"run", "."}, args...)
    	cmd := exec.Command("go", runArgs...)
    	cmd.Dir = dir
    	if lto {
    		// On the builders we're using the default /usr/bin/ld, but
    		// that has problems when asking for LTO in particular. Force
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 12:38:14 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. platforms/jvm/language-java/src/integTest/groovy/org/gradle/api/tasks/JavaExecWithLongCommandLineIntegrationTest.groovy

                    def runExecutable = run.executable ? run.executable : null
                    def runClasspath = run.classpath
                    def runMain = run.mainClass
                    def runArgs = run.args
                    def execOps = services.get(ExecOperations)
                    doLast {
                        execOps.javaexec {
                            if (runExecutable) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 28 23:38:57 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  10. src/internal/fuzz/worker.go

    	Duration time.Duration
    
    	// Count is the number of values tested.
    	Count int64
    }
    
    // fuzzArgs contains arguments to workerServer.fuzz. The value to fuzz is
    // passed in shared memory.
    type fuzzArgs struct {
    	// Timeout is the time to spend fuzzing, not including starting or
    	// cleaning up.
    	Timeout time.Duration
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 37.7K bytes
    - Viewed (0)
Back to top