Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for applyRewrite (0.52 sec)

  1. src/cmd/compile/internal/ssa/lower.go

    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 {
    		applyRewrite(f, f.Config.lateLowerBlock, f.Config.lateLowerValue, removeDeadValues)
    	}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 16 00:16:13 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  2. src/cmd/internal/objabi/line.go

    func ApplyRewrites(file, rewrites string) (string, bool) {
    	start := 0
    	for i := 0; i <= len(rewrites); i++ {
    		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,
    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/opt.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package ssa
    
    // machine-independent optimization.
    func opt(f *Func) {
    	applyRewrite(f, rewriteBlockgeneric, rewriteValuegeneric, removeDeadValues)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 309 bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/softfloat.go

    					v.Fatalf("bad float type with size %d", size)
    				}
    			}
    		}
    	}
    
    	if newInt64 && f.Config.RegSize == 4 {
    		// On 32bit arch, decompose Uint64 introduced in the switch above.
    		decomposeBuiltIn(f)
    		applyRewrite(f, rewriteBlockdec64, rewriteValuedec64, removeDeadValues)
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 03 16:14:24 UTC 2021
    - 2K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/decompose.go

    	}
    
    	// Decompose other values
    	// Note: Leave dead values because we need to keep the original
    	// values around so the name component resolution below can still work.
    	applyRewrite(f, rewriteBlockdec, rewriteValuedec, leaveDeadValues)
    	if f.Config.RegSize == 4 {
    		applyRewrite(f, rewriteBlockdec64, rewriteValuedec64, leaveDeadValues)
    	}
    
    	// Split up named values into their components.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 21:22:15 UTC 2022
    - 13.4K bytes
    - Viewed (0)
  6. pkg/kube/inject/webhook.go

    	if pod.Labels == nil {
    		pod.Labels = map[string]string{}
    	}
    
    	overwriteClusterInfo(pod, req)
    
    	if err := applyPrometheusMerge(pod, req.meshConfig); err != nil {
    		return err
    	}
    
    	if err := applyRewrite(pod, req); err != nil {
    		return err
    	}
    
    	applyMetadata(pod, injectedPod, req)
    
    	if err := reorderPod(pod, req); err != nil {
    		return err
    	}
    
    	return nil
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 17:59:39 UTC 2024
    - 42.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/rewrite.go

    type deadValueChoice bool
    
    const (
    	leaveDeadValues  deadValueChoice = false
    	removeDeadValues                 = true
    )
    
    // deadcode indicates whether rewrite should try to remove any values that become dead.
    func applyRewrite(f *Func, rb blockRewriter, rv valueRewriter, deadcode deadValueChoice) {
    	// repeat rewrites until we find no more rewrites
    	pendingLines := f.cachedLineStarts // Holds statement boundaries that need to be moved to a new value/block
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
Back to top