Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 72 for AuxInt (0.11 sec)

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

    		return true
    	}
    	if a.tag != b.tag {
    		return false
    	}
    	if a.tag == constant {
    		// The same content of const value may be different, we should
    		// compare with auxInt instead
    		v1 := a.val
    		v2 := b.val
    		if v1.Op == v2.Op && v1.AuxInt == v2.AuxInt {
    			return true
    		} else {
    			return false
    		}
    	}
    	return true
    }
    
    // possibleConst checks if Value can be folded to const. For those Values that can
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jan 22 16:54:50 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/_gen/rulegen.go

    	default:
    		log.Fatalf("too many controls: %d", outdata.controls)
    	}
    
    	if auxint != "" {
    		// Make sure auxint value has the right type.
    		rr.add(stmtf("b.AuxInt = %sToAuxInt(%s)", unTitle(outdata.auxIntType()), auxint))
    	}
    	if aux != "" {
    		// Make sure aux value has the right type.
    		rr.add(stmtf("b.Aux = %sToAux(%s)", unTitle(outdata.auxType()), aux))
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Sep 02 22:09:21 UTC 2023
    - 48.7K bytes
    - Viewed (0)
  3. 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)
  4. src/cmd/compile/internal/ssa/cse.go

    func cmpVal(v, w *Value, auxIDs auxmap) types.Cmp {
    	// Try to order these comparison by cost (cheaper first)
    	if v.Op != w.Op {
    		return lt2Cmp(v.Op < w.Op)
    	}
    	if v.AuxInt != w.AuxInt {
    		return lt2Cmp(v.AuxInt < w.AuxInt)
    	}
    	if len(v.Args) != len(w.Args) {
    		return lt2Cmp(len(v.Args) < len(w.Args))
    	}
    	if v.Op == OpPhi && v.Block != w.Block {
    		return lt2Cmp(v.Block.ID < w.Block.ID)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 31 21:41:20 UTC 2022
    - 9.6K bytes
    - Viewed (0)
  5. 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)
  6. src/cmd/compile/internal/ssa/prove.go

    		old, ok := ft.limits[v.ID]
    		if !ok {
    			old = noLimit
    			if v.isGenericIntConst() {
    				switch d {
    				case signed:
    					old.min, old.max = v.AuxInt, v.AuxInt
    					if v.AuxInt >= 0 {
    						old.umin, old.umax = uint64(v.AuxInt), uint64(v.AuxInt)
    					}
    				case unsigned:
    					old.umin = v.AuxUnsigned()
    					old.umax = old.umin
    					if int64(old.umin) >= 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:30:21 UTC 2024
    - 48.9K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/x86/ssa.go

    		a := v.Args[0].Reg()
    		if r == a {
    			if v.AuxInt == 1 {
    				p := s.Prog(x86.AINCL)
    				p.To.Type = obj.TYPE_REG
    				p.To.Reg = r
    				return
    			}
    			if v.AuxInt == -1 {
    				p := s.Prog(x86.ADECL)
    				p.To.Type = obj.TYPE_REG
    				p.To.Reg = r
    				return
    			}
    			p := s.Prog(v.Op.Asm())
    			p.From.Type = obj.TYPE_CONST
    			p.From.Offset = v.AuxInt
    			p.To.Type = obj.TYPE_REG
    			p.To.Reg = r
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 24 01:26:58 UTC 2023
    - 26.7K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/rewrite.go

    	}
    	return int32(sh<<16 | mb<<8 | me)
    }
    
    func GetPPC64Shiftsh(auxint int64) int64 {
    	return int64(int8(auxint >> 16))
    }
    
    func GetPPC64Shiftmb(auxint int64) int64 {
    	return int64(int8(auxint >> 8))
    }
    
    func GetPPC64Shiftme(auxint int64) int64 {
    	return int64(int8(auxint))
    }
    
    // Test if this value can encoded as a mask for a rlwinm like
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 19:02:52 UTC 2024
    - 64.2K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/_gen/WasmOps.go

    		{name: "LoweredInterCall", argLength: 2, reg: regInfo{inputs: []regMask{gp}, clobbers: callerSave}, aux: "CallOff", call: true},          // call fn by pointer. arg0=codeptr, arg1=mem, auxint=argsize, returns mem
    
    		{name: "LoweredAddr", argLength: 1, reg: gp11, aux: "SymOff", rematerializeable: true, symEffect: "Addr"}, // returns base+aux+auxint, arg0=base
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 24 00:21:13 UTC 2023
    - 17.7K bytes
    - Viewed (0)
  10. 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)
Back to top