Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 46 for funcType (0.13 sec)

  1. src/go/parser/parser_test.go

    	{name: "chan2", format: "package main; var x «<-chan »int"},
    	{name: "interface", format: "package main; var x «interface { M() «int» }»", scope: true, scopeMultiplier: 2}, // Scopes: InterfaceType, FuncType
    	{name: "map", format: "package main; var x «map[int]»int"},
    	{name: "slicelit", format: "package main; var x = «[]any{«»}»", parseMultiplier: 2},             // Parser nodes: UnaryExpr, CompositeLit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 20:26:14 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/decl.go

    	// its methods, and we don't want a cycle error in that case.
    	// TODO(gri) review if this is correct and/or whether we still need this?
    	saved := obj.color_
    	obj.color_ = black
    	fdecl := decl.fdecl
    	check.funcType(sig, fdecl.Recv, fdecl.TParamList, fdecl.Type)
    	obj.color_ = saved
    
    	// Set the scope's extent to the complete "func (...) { ... }"
    	// so that Scope.Innermost works correctly.
    	sig.scope.pos = fdecl.Pos()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.6K bytes
    - Viewed (0)
  3. src/cmd/doc/pkg.go

    		if n.Assign.IsValid() {
    			sep = " = "
    		}
    		tparams := pkg.formatTypeParams(n.TypeParams, depth)
    		return fmt.Sprintf("type %s%s%s%s", n.Name.Name, tparams, sep, pkg.oneLineNodeDepth(n.Type, depth))
    
    	case *ast.FuncType:
    		var params []string
    		if n.Params != nil {
    			for _, field := range n.Params.List {
    				params = append(params, pkg.oneLineField(field, depth))
    			}
    		}
    		needParens := false
    		var results []string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 08 20:15:52 UTC 2024
    - 32K bytes
    - Viewed (0)
  4. src/go/types/decl.go

    	// its methods, and we don't want a cycle error in that case.
    	// TODO(gri) review if this is correct and/or whether we still need this?
    	saved := obj.color_
    	obj.color_ = black
    	fdecl := decl.fdecl
    	check.funcType(sig, fdecl.Recv, fdecl.Type)
    	obj.color_ = saved
    
    	// Set the scope's extent to the complete "func (...) { ... }"
    	// so that Scope.Innermost works correctly.
    	sig.scope.pos = fdecl.Pos()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 31K bytes
    - Viewed (0)
  5. src/cmd/internal/dwarf/dwarf.go

    			{DW_AT_name, DW_FORM_string},
    			{DW_AT_type, DW_FORM_ref_addr},
    			{DW_AT_go_kind, DW_FORM_data1},
    			{DW_AT_go_runtime_type, DW_FORM_addr},
    			{DW_AT_go_elem, DW_FORM_ref_addr},
    		},
    	},
    
    	/* FUNCTYPE */
    	{
    		DW_TAG_subroutine_type,
    		DW_CHILDREN_yes,
    		[]dwAttrForm{
    			{DW_AT_name, DW_FORM_string},
    			{DW_AT_byte_size, DW_FORM_udata},
    			{DW_AT_go_kind, DW_FORM_data1},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 43K bytes
    - Viewed (0)
  6. src/cmd/link/internal/ld/dwarf_test.go

    		t.Fatalf("error reading DWARF: %v", err)
    	}
    
    	want := map[string]bool{
    		"internal/abi.Type":          true,
    		"internal/abi.ArrayType":     true,
    		"internal/abi.ChanType":      true,
    		"internal/abi.FuncType":      true,
    		"internal/abi.MapType":       true,
    		"internal/abi.PtrType":       true,
    		"internal/abi.SliceType":     true,
    		"internal/abi.StructType":    true,
    		"internal/abi.InterfaceType": true,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 01:38:11 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/rulegen.go

    		u.scope.objects[name] = &object{
    			name: name,
    			pos:  node.Pos(),
    		}
    	case *ast.FuncDecl:
    		u.node(node.Type)
    		if node.Body != nil {
    			u.node(node.Body)
    		}
    	case *ast.FuncType:
    		if node.Params != nil {
    			u.node(node.Params)
    		}
    		if node.Results != nil {
    			u.node(node.Results)
    		}
    	case *ast.FieldList:
    		for _, field := range node.List {
    			u.node(field)
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 02 22:09:21 UTC 2023
    - 48.7K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tf2xla/api/v1/compile_mlir_util.cc

          module.lookupSymbol<mlir::func::FuncOp>("main");
      mlir::FunctionType func_type = main_func.getFunctionType();
    
      outputs->clear();
      outputs->reserve(func_type.getNumResults());
      resource_updates->clear();
      resource_updates->reserve(func_type.getNumResults());
    
      std::vector<xla::Shape> shapes;
      shapes.reserve(func_type.getNumResults());
    
      llvm::SmallDenseMap<unsigned, unsigned> output_to_input_alias;
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 17:24:39 UTC 2024
    - 45.3K bytes
    - Viewed (0)
  9. tensorflow/compiler/mlir/lite/utils/lstm_utils_test.cc

                                             projection_type,
                                             layer_norm_scale_type};
      auto func_type = builder->getFunctionType(input_types, output_type);
    
      auto func = func::FuncOp::create(
          mlir::NameLoc::get(builder->getStringAttr("fused_func")), "fused_func",
          func_type, {});
      func.addEntryBlock();
    
      std::vector<std::string> attributes;
      if (ln) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 10K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tensorflow/transforms/promote_resources_to_args.cc

        func::FuncOp function, bool add_validation,
        llvm::SmallVectorImpl<std::string>* var_handle_shared_names) {
      Block& block = function.front();
      auto func_type = function.getFunctionType();
    
      auto func_arg_types = llvm::to_vector<4>(func_type.getInputs());
      llvm::SmallDenseMap<llvm::StringRef, int> var_arg_index_by_name;
      for (auto var_handle_op :
           llvm::make_early_inc_range(block.getOps<TF::VarHandleOp>())) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.1K bytes
    - Viewed (0)
Back to top