Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 134 for decls (0.08 sec)

  1. tensorflow/compiler/mlir/lite/stablehlo/BUILD

        ],
    )
    
    gentbl_cc_library(
        name = "passes_inc_gen",
        compatible_with = get_compatible_with_portable(),
        tbl_outs = [
            (
                [
                    "-gen-pass-decls",
                    "-name=OdmlStablehlo",
                ],
                "transforms/passes.h.inc",
            ),
        ],
        tblgen = "@llvm-project//mlir:mlir-tblgen",
        td_file = "transforms/passes.td",
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 28 23:16:05 UTC 2024
    - 24.9K bytes
    - Viewed (0)
  2. src/go/build/read.go

    	if info.parseErr != nil {
    		return nil
    	}
    
    	hasEmbed := false
    	for _, decl := range info.parsed.Decls {
    		d, ok := decl.(*ast.GenDecl)
    		if !ok {
    			continue
    		}
    		for _, dspec := range d.Specs {
    			spec, ok := dspec.(*ast.ImportSpec)
    			if !ok {
    				continue
    			}
    			quoted := spec.Path.Value
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 16:25:21 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssagen/abi.go

    			pprag := &typecheck.Target.CgoPragmas[i]
    			cgoExports[symName] = append(cgoExports[symName], pprag)
    		}
    	}
    
    	// Apply ABI defs and refs to Funcs and generate wrappers.
    	//
    	// This may generate new decls for the wrappers, but we
    	// specifically *don't* want to visit those, lest we create
    	// wrappers for wrappers.
    	for _, fn := range typecheck.Target.Funcs {
    		nam := fn.Nname
    		if ir.IsBlank(nam) {
    			continue
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/asmdecl/asmdecl.go

    	knownFunc := make(map[string]map[string]*asmFunc)
    
    	for _, f := range pass.Files {
    		for _, decl := range f.Decls {
    			if decl, ok := decl.(*ast.FuncDecl); ok && decl.Body == nil {
    				knownFunc[decl.Name.Name] = asmParseDecl(pass, decl)
    			}
    		}
    	}
    
    Files:
    	for _, fname := range sfiles {
    		content, tf, err := analysisutil.ReadFile(pass, fname)
    		if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 02:38:00 UTC 2024
    - 22.8K bytes
    - Viewed (0)
  5. src/go/types/generate_test.go

    		return true
    	})
    }
    
    // insertImportPath inserts the given import path.
    // There must be at least one import declaration present already.
    func insertImportPath(f *ast.File, path string) {
    	for _, d := range f.Decls {
    		if g, _ := d.(*ast.GenDecl); g != nil && g.Tok == token.IMPORT {
    			g.Specs = append(g.Specs, &ast.ImportSpec{Path: &ast.BasicLit{ValuePos: g.End(), Kind: token.STRING, Value: path}})
    			return
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:01:18 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  6. src/text/template/parse/parse_test.go

    	{"template with var", "{{template $v}}", hasError, ""},
    	{"invalid punctuation", "{{printf 3, 4}}", hasError, ""},
    	{"multidecl outside range", "{{with $v, $u := 3}}{{end}}", hasError, ""},
    	{"too many decls in range", "{{range $u, $v, $w := 3}}{{end}}", hasError, ""},
    	{"dot applied to parentheses", "{{printf (printf .).}}", hasError, ""},
    	{"adjacent args", "{{printf 3`x`}}", hasError, ""},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 24K bytes
    - Viewed (0)
  7. src/go/types/api_test.go

    	if gm.Name() == "n" {
    		gm, gn = gn, gm
    	}
    
    	// Collect objects from info.
    	var dm, dn *Func   // the declared methods
    	var dmm, dmn *Func // the methods used in the body of m
    	for _, decl := range f.Decls {
    		fdecl, ok := decl.(*ast.FuncDecl)
    		if !ok {
    			continue
    		}
    		def := info.Defs[fdecl.Name].(*Func)
    		switch fdecl.Name.Name {
    		case "m":
    			dm = def
    			ast.Inspect(fdecl.Body, func(n ast.Node) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 94.2K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/printf.go

    	// Gather potential wrappers and call graph between them.
    	byObj := make(map[*types.Func]*printfWrapper)
    	var wrappers []*printfWrapper
    	for _, file := range pass.Files {
    		for _, decl := range file.Decls {
    			w := maybePrintfWrapper(pass.TypesInfo, decl)
    			if w == nil {
    				continue
    			}
    			byObj[w.obj] = w
    			wrappers = append(wrappers, w)
    		}
    	}
    
    	// Walk the graph to figure out which are really printf wrappers.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 02 02:20:05 UTC 2024
    - 32.5K bytes
    - Viewed (0)
  9. src/cmd/go/internal/load/test.go

    		return err
    	}
    	defer src.Close()
    	f, err := parser.ParseFile(testFileSet, filename, src, parser.ParseComments|parser.SkipObjectResolution)
    	if err != nil {
    		return err
    	}
    	for _, d := range f.Decls {
    		n, ok := d.(*ast.FuncDecl)
    		if !ok {
    			continue
    		}
    		if n.Recv != nil {
    			continue
    		}
    		name := n.Name.String()
    		switch {
    		case name == "TestMain":
    			if isTestFunc(n, "T") {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 14:01:23 UTC 2024
    - 28.2K bytes
    - Viewed (0)
  10. src/go/types/issues_test.go

    	f := mustParse(fset, src)
    
    	var conf Config
    	defs := make(map[*ast.Ident]Object)
    	_, err := conf.Check(f.Name.Name, fset, []*ast.File{f}, &Info{Defs: defs})
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	m := f.Decls[0].(*ast.FuncDecl)
    	res1 := defs[m.Name].(*Func).Signature().Results().At(0)
    	res2 := defs[m.Type.Results.List[0].Names[0]].(*Var)
    
    	if res1 != res2 {
    		t.Errorf("got %s (%p) != %s (%p)", res1, res2, res1, res2)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 28.1K bytes
    - Viewed (0)
Back to top