Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 440 for rewrites (0.16 sec)

  1. src/runtime/stubs.go

    //
    //go:linkname add
    //go:nosplit
    func add(p unsafe.Pointer, x uintptr) unsafe.Pointer {
    	return unsafe.Pointer(uintptr(p) + x)
    }
    
    // getg returns the pointer to the current g.
    // The compiler rewrites calls to this function into instructions
    // that fetch the g directly (from TLS or from the dedicated register).
    func getg() *g
    
    // mcall switches from the g to the g0 stack and invokes fn(g),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 17:58:53 UTC 2024
    - 20.2K bytes
    - Viewed (0)
  2. src/syscall/exec_windows.go

    package syscall
    
    import (
    	"internal/bytealg"
    	"runtime"
    	"sync"
    	"unicode/utf16"
    	"unsafe"
    )
    
    // ForkLock is not used on Windows.
    var ForkLock sync.RWMutex
    
    // EscapeArg rewrites command line argument s as prescribed
    // in https://msdn.microsoft.com/en-us/library/ms880421.
    // This function returns "" (2 double quotes) if s is empty.
    // Alternatively, these transformations are done:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 28 18:29:48 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  3. cluster/images/etcd-version-monitor/etcd-version-monitor.go

    	results := make([]*dto.MetricFamily, 0, len(metrics))
    	for n, mf := range metrics {
    		if e, ok := m.exported[n]; ok {
    			// Apply rewrite rules for metrics that have them.
    			if e.rewriters == nil {
    				results = append(results, mf)
    			} else {
    				for _, rewriter := range e.rewriters {
    					new, err := rewriter(mf)
    					if err != nil {
    						return nil, err
    					}
    					results = append(results, new)
    				}
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Dec 16 06:50:02 UTC 2023
    - 11.5K bytes
    - Viewed (0)
  4. tensorflow/compiler/mlir/tensorflow/transforms/sparsecore/embedding_program_key.cc

      return success();
    }
    
    // Rewrites the program_key input of `preprocess_op` to use the output of
    // _TPUCompileMlir.
    void RewritePreprocessInputs(OpBuilder* builder, func::FuncOp func_op,
                                 Operation* preprocess_op) {
      if (preprocess_op->getParentOp() == nullptr) return;
    
      // Find predecessor TPUCompile Op and rewrite the program key.
      Operation* tpu_compile_predecessor =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 17.4K bytes
    - Viewed (0)
  5. src/cmd/vendor/golang.org/x/arch/arm/armasm/decode.go

    		}
    		return Mem{Base: Reg((x >> 16) & (1<<4 - 1)), Mode: mode}
    
    	case arg_R_rotate:
    		Rm := Reg(x & (1<<4 - 1))
    		typ, count := decodeShift(x)
    		// ROR #0 here means ROR #0, but decodeShift rewrites to RRX #1.
    		if typ == RotateRightExt {
    			return Rm
    		}
    		return RegShift{Rm, typ, count}
    
    	case arg_R_shift_R:
    		Rm := Reg(x & (1<<4 - 1))
    		Rs := Reg((x >> 8) & (1<<4 - 1))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 22 17:16:14 UTC 2022
    - 12.6K bytes
    - Viewed (0)
  6. src/cmd/vendor/golang.org/x/tools/go/ast/astutil/imports.go

    	}
    
    	return
    }
    
    // RewriteImport rewrites any import of path oldPath to path newPath.
    func RewriteImport(fset *token.FileSet, f *ast.File, oldPath, newPath string) (rewrote bool) {
    	for _, imp := range f.Imports {
    		if importPath(imp) == oldPath {
    			rewrote = true
    			// record old End, because the default is to compute
    			// it using the length of imp.Path.Value.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 10 21:56:21 UTC 2022
    - 13.4K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/shortcircuit.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package ssa
    
    // shortcircuit finds situations where branch directions
    // are always correlated and rewrites the CFG to take
    // advantage of that fact.
    // This optimization is useful for compiling && and || expressions.
    func shortcircuit(f *Func) {
    	// Step 1: Replace a phi arg with a constant if that arg
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 03 17:47:02 UTC 2022
    - 12.6K bytes
    - Viewed (0)
  8. src/cmd/fix/fix.go

    			f.Imports = f.Imports[:len(f.Imports)-1]
    			break
    		}
    	}
    
    	return
    }
    
    // rewriteImport rewrites any import of path oldPath to path newPath.
    func rewriteImport(f *ast.File, oldPath, newPath string) (rewrote bool) {
    	for _, imp := range f.Imports {
    		if importPath(imp) == oldPath {
    			rewrote = true
    			// record old End, because the default is to compute
    			// it using the length of imp.Path.Value.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 14.6K bytes
    - Viewed (0)
  9. src/regexp/onepass.go

    	p := &onePassProg{
    		Start:  prog.Start,
    		NumCap: prog.NumCap,
    		Inst:   make([]onePassInst, len(prog.Inst)),
    	}
    	for i, inst := range prog.Inst {
    		p.Inst[i] = onePassInst{Inst: inst}
    	}
    
    	// rewrites one or more common Prog constructs that enable some otherwise
    	// non-onepass Progs to be onepass. A:BD (for example) means an InstAlt at
    	// ip A, that points to ips B & C.
    	// A:BC + B:DA => A:BC + B:CD
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 25 19:36:03 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/x86/ssa.go

    				n.To.Reg = x86.REG_DX
    			}
    
    			j.To.SetTarget(n)
    			j2.To.SetTarget(s.Pc())
    		}
    
    	case ssa.Op386HMULL, ssa.Op386HMULLU:
    		// the frontend rewrites constant division by 8/16/32 bit integers into
    		// HMUL by a constant
    		// SSA rewrites generate the 64 bit versions
    
    		// Arg[0] is already in AX as it's the only register we allow
    		// and DX is the only output we care about (the high bits)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 01:26:58 UTC 2023
    - 26.7K bytes
    - Viewed (0)
Back to top