Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,083 for rewrites (0.24 sec)

  1. src/cmd/fix/doc.go

    directory tree.  When fix rewrites a file, it prints a line to standard
    error giving the name of the file and the rewrite applied.
    
    If the -diff flag is set, no files are rewritten. Instead fix prints
    the differences a rewrite would introduce.
    
    The -r flag restricts the set of rewrites considered to those in the
    named list.  By default fix considers all known rewrites.  Fix's
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 11 16:34:30 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  2. src/cmd/internal/objabi/line.go

    		if i == len(rewrites) || rewrites[i] == ';' {
    			if new, ok := applyRewrite(file, rewrites[start:i]); ok {
    				return new, true
    			}
    			start = i + 1
    		}
    	}
    
    	return file, false
    }
    
    // applyRewrite applies the rewrite to the path,
    // returning the rewritten path and a boolean
    // indicating whether the rewrite applied at all.
    func applyRewrite(path, rewrite string) (string, bool) {
    	prefix, replace := rewrite, ""
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 23:10:31 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/lower.go

    package ssa
    
    // convert to machine-dependent ops.
    func lower(f *Func) {
    	// repeat rewrites until we find no more rewrites
    	applyRewrite(f, f.Config.lowerBlock, f.Config.lowerValue, removeDeadValues)
    }
    
    // lateLower applies those rules that need to be run after the general lower rules.
    func lateLower(f *Func) {
    	// repeat rewrites until we find no more rewrites
    	if f.Config.lateLowerValue != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 16 00:16:13 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  4. test/codegen/logic.go

    	return z
    }
    
    // Verify (OR x (NOT y)) rewrites to (ORN x y) where supported
    func ornot(x, y int) int {
    	// ppc64x:"ORN"
    	z := x | ^y
    	return z
    }
    
    // Verify that (OR (NOT x) (NOT y)) rewrites to (NOT (AND x y))
    func orDemorgans(x, y int) int {
    	// amd64:"AND",-"OR"
    	z := ^x | ^y
    	return z
    }
    
    // Verify that (AND (NOT x) (NOT y)) rewrites to (NOT (OR x y))
    func andDemorgans(x, y int) int {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 10 16:32:25 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  5. tensorflow/compiler/aot/codegen.cc

          count *= shape.dimensions(dim);
        }
      }
      rewrites->push_back({"{{I}}", absl::StrCat(i)});
      rewrites->push_back({"{{TYPE}}", type});
      rewrites->push_back({"{{DIM_VARS}}", absl::StrJoin(dim_vars, ", ")});
      rewrites->push_back({"{{DIM_SIZES}}", dim_sizes});
      rewrites->push_back({"{{INDICES}}", indices});
      rewrites->push_back({"{{COUNT}}", absl::StrCat(count)});
      return absl::OkStatus();
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 02 01:20:01 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  6. src/cmd/internal/objabi/line_test.go

    func TestAbsFile(t *testing.T) {
    	for _, tt := range absFileTests {
    		abs := filepath.FromSlash(AbsFile(filepath.FromSlash(tt.dir), filepath.FromSlash(tt.file), tt.rewrites))
    		want := filepath.FromSlash(tt.abs)
    		if abs != want {
    			t.Errorf("AbsFile(%q, %q, %q) = %q, want %q", tt.dir, tt.file, tt.rewrites, abs, want)
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 24 12:01:30 UTC 2019
    - 1.2K bytes
    - Viewed (0)
  7. src/cmd/gofmt/testdata/rewrite8.golden

    //gofmt -r=interface{}->int
    
    // Copyright 2013 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Check that literal type expression rewrites are accepted.
    // Was issue 4406.
    
    package p
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 22 00:25:13 UTC 2014
    - 292 bytes
    - Viewed (0)
  8. src/cmd/gofmt/testdata/rewrite8.input

    //gofmt -r=interface{}->int
    
    // Copyright 2013 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Check that literal type expression rewrites are accepted.
    // Was issue 4406.
    
    package p
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 22 00:25:13 UTC 2014
    - 300 bytes
    - Viewed (0)
  9. platforms/core-runtime/logging/src/main/java/org/gradle/internal/logging/slf4j/ContextAwareTaskLogger.java

        interface MessageRewriter {
    
            /**
             * Rewrites log message.
             *
             * @param logLevel the logging level
             * @param message the original message
             * @return the rewritten message or null if this message should be silenced
             */
            @Nullable
            String rewrite(LogLevel logLevel, String message);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:05:18 UTC 2023
    - 1.4K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/loopreschedchecks.go

    // a rewriteTarget is a value-argindex pair indicating
    // where a rewrite is applied.  Note that this is for values,
    // not for block controls, because block controls are not targets
    // for the rewrites performed in inserting rescheduling checks.
    type rewriteTarget struct {
    	v *Value
    	i int
    }
    
    type rewrite struct {
    	before, after *Value          // before is the expected value before rewrite, after is the new value installed.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 22 21:17:10 UTC 2023
    - 16K bytes
    - Viewed (0)
Back to top