Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for AddArgs (0.21 sec)

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

    func (v *Value) AddArg6(w1, w2, w3, w4, w5, w6 *Value) {
    	v.Args = append(v.Args, w1, w2, w3, w4, w5, w6)
    	w1.Uses++
    	w2.Uses++
    	w3.Uses++
    	w4.Uses++
    	w5.Uses++
    	w6.Uses++
    }
    
    func (v *Value) AddArgs(a ...*Value) {
    	if v.Args == nil {
    		v.resetArgs() // use argstorage
    	}
    	v.Args = append(v.Args, a...)
    	for _, x := range a {
    		x.Uses++
    	}
    }
    func (v *Value) SetArg(i int, w *Value) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:40:22 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/expand_calls.go

    		mem = x.decomposeAsNecessary(v.Pos, v.Block, a, mem, rc)
    	}
    	var preArgStore [2]*Value
    	preArgs := append(preArgStore[:0], v.Args[0:firstArg]...)
    	v.resetArgs()
    	v.AddArgs(preArgs...)
    	v.AddArgs(allResults...)
    	v.AddArg(mem)
    	for _, a := range oldArgs {
    		if a.Uses == 0 {
    			x.invalidateRecursively(a)
    		}
    	}
    
    	return
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 05:13:40 UTC 2023
    - 31.9K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/decompose.go

    	}
    	for _, a := range v.Args {
    		for i := 0; i < n; i++ {
    			fields[i].AddArg(a.Block.NewValue1I(v.Pos, OpStructSelect, t.FieldType(i), int64(i), a))
    		}
    	}
    	v.reset(StructMakeOp(n))
    	v.AddArgs(fields[:n]...)
    
    	// Recursively decompose phis for each field.
    	for _, f := range fields[:n] {
    		decomposeUserPhi(f)
    	}
    }
    
    // decomposeArrayPhi replaces phi-of-array with arraymake(phi-of-array-element),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 21:22:15 UTC 2022
    - 13.4K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/addressingmodes.go

    			}
    			// Combine the operations.
    			tmp = append(tmp[:0], v.Args[:ptrIndex]...)
    			tmp = append(tmp, p.Args...)
    			tmp = append(tmp, v.Args[ptrIndex+1:]...)
    			v.resetArgs()
    			v.Op = c
    			v.AddArgs(tmp...)
    			if needSplit[c] {
    				// It turns out that some of the combined instructions have faster two-instruction equivalents,
    				// but not the two instructions that led to them being combined here.  For example
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jul 26 17:19:57 UTC 2023
    - 24.3K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/sccp.go

    	// change its value immediately after visiting Phi, because some of its input
    	// edges may still not be visited at this moment.
    	constValue := f.newValue(val.Op, val.Type, f.Entry, val.Pos)
    	constValue.AddArgs(args...)
    	matched := rewriteValuegeneric(constValue)
    	if matched {
    		if isConst(constValue) {
    			return lattice{constant, constValue}
    		}
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:54:50 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssagen/phi.go

    			if a == v {
    				continue // self-reference
    			}
    			if a == w {
    				continue // already have this witness
    			}
    			if w != nil {
    				// two witnesses, need a phi value
    				v.Op = ssa.OpPhi
    				v.AddArgs(args...)
    				v.Aux = nil
    				continue loop
    			}
    			w = a // save witness
    		}
    		if w == nil {
    			s.s.Fatalf("no witness for reachable phi %s", v)
    		}
    		// One witness. Make v a copy of w.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Nov 18 17:59:44 UTC 2022
    - 15.2K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/writebarrier.go

    	for i := 0; i < nargs; i++ {
    		argTypes[i] = typ
    	}
    	call := b.NewValue0A(pos, OpStaticCall, types.TypeResultMem, StaticAuxCall(fn, b.Func.ABIDefault.ABIAnalyzeTypes(argTypes, nil)))
    	call.AddArgs(args...)
    	call.AuxInt = int64(nargs) * typ.Size()
    	return b.NewValue1I(pos, OpSelectN, types.TypeMem, 0, call)
    }
    
    // round to a multiple of r, r is a power of 2.
    func round(o int64, r int64) int64 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:09:14 UTC 2023
    - 23.5K bytes
    - Viewed (0)
Back to top