Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for copySource (0.39 sec)

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

    		values := f.NamedValues[*name]
    		for i, v := range values {
    			if v.Op == OpCopy {
    				values[i] = v.Args[0]
    			}
    		}
    	}
    }
    
    // copySource returns the (non-copy) op which is the
    // ultimate source of v.  v must be a copy op.
    func copySource(v *Value) *Value {
    	w := v.Args[0]
    
    	// This loop is just:
    	// for w.Op == OpCopy {
    	//     w = w.Args[0]
    	// }
    	// but we take some extra care to make sure we
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 14:55:18 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  2. pkg/test/framework/components/echo/config/builder.go

    func (b *Builder) Copy() *Builder {
    	return &Builder{
    		t:             b.t,
    		needFrom:      copySources(b.needFrom),
    		needTo:        copySources(b.needTo),
    		needFromAndTo: copySources(b.needFromAndTo),
    		complete:      copySources(b.complete),
    		out:           b.out.Copy(),
    		yamlCount:     b.yamlCount,
    	}
    }
    
    func copySources(sources []Source) []Source {
    	return append([]Source{}, sources...)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Oct 13 23:42:29 UTC 2022
    - 7.6K bytes
    - Viewed (0)
Back to top