Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 95 for Delete (0.35 sec)

  1. src/cmd/fix/buildtag.go

    		return false
    	}
    
    	// File is already gofmt-ed, so we know that if there are +build lines,
    	// they are in a comment group that starts with a //go:build line followed
    	// by a blank line. While we cannot delete comments from an AST and
    	// expect consistent output in general, this specific case - deleting only
    	// some lines from a comment block - does format correctly.
    	fixed := false
    	for _, g := range f.Comments {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 22 05:31:47 UTC 2024
    - 1.2K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/deadstore.go

    	// Regions overlap or abut - compute the union.
    	return shadowRange(min(lo, sr.lo()) + max(hi, sr.hi())<<16)
    }
    
    // elimDeadAutosGeneric deletes autos that are never accessed. To achieve this
    // we track the operations that the address of each auto reaches and if it only
    // reaches stores then we delete all the stores. The other operations will then
    // be eliminated by the dead code elimination pass.
    func elimDeadAutosGeneric(f *Func) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 20:07:26 UTC 2024
    - 11K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/types2/builtins_test.go

    	{"copy", `var dst []byte; copy(dst, "hello")`, `func([]byte, string) int`},
    
    	{"delete", `var m map[string]bool; delete(m, "foo")`, `func(map[string]bool, string)`},
    	{"delete", `type (K string; V int); var m map[K]V; delete(m, "foo")`, `func(map[p.K]p.V, p.K)`},
    
    	{"imag", `_ = imag(1i)`, `invalid type`}, // constant
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 20 18:06:31 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  4. src/cmd/go/internal/test/testflag.go

    			explicitArgs = append(explicitArgs, fmt.Sprintf("-test.%s=%v", short, f.Value))
    
    			// This flag has been overridden explicitly, so don't forward its implicit
    			// value from GOFLAGS.
    			delete(addFromGOFLAGS, short)
    			delete(addFromGOFLAGS, "test."+short)
    		}
    
    		args = remainingArgs
    	}
    	if firstUnknownFlag != "" && testC {
    		fmt.Fprintf(os.Stderr, "go: unknown flag %s cannot be used with -c\n", firstUnknownFlag)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 19:25:24 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/test/pgo_inl_test.go

    			fname := m[1]
    			delete(notInlinedReason, curPkg+"."+fname)
    			continue
    		}
    		if m := canInline.FindStringSubmatch(line); m != nil {
    			fname := m[1]
    			fullname := curPkg + "." + fname
    			// If function must be inlined somewhere, being inlinable is not enough
    			if _, ok := must[fullname]; !ok {
    				delete(notInlinedReason, fullname)
    				continue
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 19:58:28 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  6. src/cmd/go/internal/cache/default.go

    // README as a courtesy to explain where it came from.
    const cacheREADME = `This directory holds cached build artifacts from the Go build system.
    Run "go clean -cache" if the directory is getting too large.
    Run "go clean -fuzzcache" to delete the fuzz cache.
    See golang.org to learn more about Go.
    `
    
    // initDefaultCache does the work of finding the default cache
    // the first time Default is called.
    func initDefaultCache() {
    	dir, _ := DefaultDir()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/test/inl_test.go

    			fname := m[1]
    			delete(notInlinedReason, curPkg+"."+fname)
    			continue
    		}
    		if m := canInline.FindStringSubmatch(line); m != nil {
    			fname := m[1]
    			fullname := curPkg + "." + fname
    			// If function must be inlined somewhere, being inlinable is not enough
    			if _, ok := must[fullname]; !ok {
    				delete(notInlinedReason, fullname)
    				continue
    			}
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 04:07:57 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/inline/inlheur/function_properties.go

    // optimization decisions (e.g. "should I inline this call", or
    // "should I unroll this loop") as opposed to potentially unsafe IR
    // alterations that could change program semantics (e.g. "can I delete
    // this variable" or "can I move this statement to a new location").
    //
    //----------------------------------------------------------------
    
    // FuncProps describes a set of function or method properties that may
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 10 18:52:53 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/types2/initorder.go

    				for s := range n.succ {
    					// ignore self-cycles
    					if s != n {
    						p.succ.add(s)
    						s.pred.add(p)
    					}
    				}
    				delete(p.succ, n) // remove edge to n
    			}
    		}
    		for s := range n.succ {
    			delete(s.pred, n) // remove edge to n
    		}
    	}
    
    	// fill in index and ndeps fields
    	for i, n := range G {
    		n.index = i
    		n.ndeps = len(n.succ)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 28 22:06:51 UTC 2024
    - 9.8K bytes
    - Viewed (0)
  10. src/cmd/go/internal/envcmd/env.go

    	for key, val := range add {
    		if p, ok := prev[key]; ok {
    			lines[p] = key + "=" + val + "\n"
    			delete(add, key)
    		}
    	}
    	for key, val := range add {
    		lines = append(lines, key+"="+val+"\n")
    	}
    
    	// Delete requested variables (go env -u).
    	for key := range del {
    		if p, ok := prev[key]; ok {
    			lines[p] = ""
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.6K bytes
    - Viewed (0)
Back to top