Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for AuxInt (0.27 sec)

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

    	for {
    		a := auxIntToInt32(v.AuxInt)
    		x := v_0
    		if v_1.Op != OpPPC64MOVDconst || auxIntToInt64(v_1.AuxInt) != 0 {
    			break
    		}
    		z := v_2
    		v.reset(OpPPC64ISELZ)
    		v.AuxInt = int32ToAuxInt(a)
    		v.AddArg2(x, z)
    		return true
    	}
    	// match: (ISEL [a] (MOVDconst [0]) y z)
    	// result: (ISELZ [a^0x4] y z)
    	for {
    		a := auxIntToInt32(v.AuxInt)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:59:38 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/value.go

    	// AuxInt is used for integer values, Aux is used for other values.
    	// Floats are stored in AuxInt using math.Float64bits(f).
    	// Unused portions of AuxInt are filled by sign-extending the used portion,
    	// even if the represented value is unsigned.
    	// Users of AuxInt which interpret AuxInt as unsigned (e.g. shifts) must be careful.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 16:40:22 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/func.go

    	v.AuxInt = auxint
    	v.Args = v.argstorage[:2]
    	v.argstorage[0] = arg0
    	v.argstorage[1] = arg1
    	arg0.Uses++
    	arg1.Uses++
    	return v
    }
    
    // NewValue2IA returns a new value in the block with two arguments and both an auxint and aux values.
    func (b *Block) NewValue2IA(pos src.XPos, op Op, t *types.Type, auxint int64, aux Aux, arg0, arg1 *Value) *Value {
    	v := b.Func.newValue(op, t, b, pos)
    	v.AuxInt = auxint
    	v.Aux = aux
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 25.8K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssa/check.go

    			case auxBool:
    				if v.AuxInt < 0 || v.AuxInt > 1 {
    					f.Fatalf("bad bool AuxInt value for %v", v)
    				}
    				canHaveAuxInt = true
    			case auxInt8:
    				if v.AuxInt != int64(int8(v.AuxInt)) {
    					f.Fatalf("bad int8 AuxInt value for %v", v)
    				}
    				canHaveAuxInt = true
    			case auxInt16:
    				if v.AuxInt != int64(int16(v.AuxInt)) {
    					f.Fatalf("bad int16 AuxInt value for %v", v)
    				}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 09 16:41:23 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/_gen/PPC64Ops.go

    		{name: "SLDconst", argLength: 1, reg: gp11, asm: "SLD", aux: "Int64"},       // arg0 << auxInt, 0 <= auxInt < 64, 64 bit width
    		{name: "SLWconst", argLength: 1, reg: gp11, asm: "SLW", aux: "Int64"},       // arg0 << auxInt, 0 <= auxInt < 32, 32 bit width
    
    		{name: "ROTLconst", argLength: 1, reg: gp11, asm: "ROTL", aux: "Int64"},   // arg0 rotate left by auxInt bits
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:59:38 UTC 2024
    - 43.8K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/op.go

    const (
    	auxNone           auxType = iota
    	auxBool                   // auxInt is 0/1 for false/true
    	auxInt8                   // auxInt is an 8-bit integer
    	auxInt16                  // auxInt is a 16-bit integer
    	auxInt32                  // auxInt is a 32-bit integer
    	auxInt64                  // auxInt is a 64-bit integer
    	auxInt128                 // auxInt represents a 128-bit integer.  Always 0.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 22 15:29:10 UTC 2024
    - 18.7K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/_gen/genericOps.go

    	// constants. Constant values are stored in the aux or
    	// auxint fields.
    	{name: "ConstBool", aux: "Bool"},     // auxint is 0 for false and 1 for true
    	{name: "ConstString", aux: "String"}, // value is aux.(string)
    	{name: "ConstNil", typ: "BytePtr"},   // nil pointer
    	{name: "Const8", aux: "Int8"},        // auxint is sign-extended 8 bits
    	{name: "Const16", aux: "Int16"},      // auxint is sign-extended 16 bits
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 42.6K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/block.go

    func (b *Block) AuxIntString() string {
    	switch b.Kind.AuxIntType() {
    	case "int8":
    		return fmt.Sprintf("%v", int8(b.AuxInt))
    	case "uint8":
    		return fmt.Sprintf("%v", uint8(b.AuxInt))
    	case "": // no aux int type
    		return ""
    	default: // type specified but not implemented - print as int64
    		return fmt.Sprintf("%v", b.AuxInt)
    	}
    }
    
    // likelyBranch reports whether block b is the likely branch of all of its predecessors.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/deadstore.go

    			ptr := v.Args[0]
    			var off int64
    			for ptr.Op == OpOffPtr { // Walk to base pointer
    				off += ptr.AuxInt
    				ptr = ptr.Args[0]
    			}
    			var sz int64
    			if v.Op == OpStore {
    				sz = v.Aux.(*types.Type).Size()
    			} else { // OpZero
    				sz = v.AuxInt
    			}
    			if ptr.Op == OpLocalAddr {
    				if la, ok := localAddrs[ptr.Aux]; ok {
    					ptr = la
    				}
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 25 20:07:26 UTC 2024
    - 11K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/schedule.go

    		return c > 0 // smaller uses come later
    	}
    	// These comparisons are fairly arbitrary.
    	// The goal here is stability in the face
    	// of unrelated changes elsewhere in the compiler.
    	if c := x.AuxInt - y.AuxInt; c != 0 {
    		return c < 0
    	}
    	if cmp := x.Type.Compare(y.Type); cmp != types.CMPeq {
    		return cmp == types.CMPlt
    	}
    	return x.ID < y.ID
    }
    
    func (op Op) isLoweredGetClosurePtr() bool {
    	switch op {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 08 15:53:17 UTC 2024
    - 16.4K bytes
    - Viewed (0)
Back to top