Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 26 for AuxInt (0.21 sec)

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

    	// match: (ADDSconstflags [c] x)
    	// cond: !isARM64addcon(c)
    	// result: (ADDSflags x (MOVDconst [c]))
    	for {
    		c := auxIntToInt64(v.AuxInt)
    		x := v_0
    		if !(!isARM64addcon(c)) {
    			break
    		}
    		v.reset(OpARM64ADDSflags)
    		v0 := b.NewValue0(v.Pos, OpARM64MOVDconst, typ.UInt64)
    		v0.AuxInt = int64ToAuxInt(c)
    		v.AddArg2(x, v0)
    		return true
    	}
    	return false
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 12 19:38:41 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/ssa/func_test.go

    	f.f.freeValue(v1)
    	f.f.freeValue(v2)
    	v3 := f.f.ConstBool(c.config.Types.Bool, false)
    	v4 := f.f.ConstBool(c.config.Types.Bool, true)
    	if v3.AuxInt != 0 {
    		t.Errorf("expected %s to have auxint of 0\n", v3.LongString())
    	}
    	if v4.AuxInt != 1 {
    		t.Errorf("expected %s to have auxint of 1\n", v4.LongString())
    	}
    
    }
    
    // opcodeMap returns a map from opcode to the number of times that opcode
    // appears in the function.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:01:04 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. src/cmd/compile/internal/ssa/expand_calls.go

    					mem := x.memForCall[call.ID]
    					if mem == nil {
    						v.AuxInt = int64(aux.abiInfo.OutRegistersUsed())
    						x.memForCall[call.ID] = v
    					} else {
    						panic(fmt.Errorf("Saw two memories for call %v, %v and %v", call, mem, v))
    					}
    				} else {
    					selects = append(selects, v)
    				}
    
    			case OpSelectNAddr:
    				call := v.Args[0]
    				which := v.AuxInt
    				aux := call.Aux.(*AuxCall)
    				pt := v.Type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 05:13:40 UTC 2023
    - 31.9K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/writebarrier.go

    				memThen = bThen.NewValue1(pos, OpSelect1, types.TypeMem, curCall)
    			}
    			// Store value in write buffer
    			num := curCall.AuxInt
    			curCall.AuxInt = num + 1
    			wbuf := bThen.NewValue1I(pos, OpOffPtr, types.Types[types.TUINTPTR].PtrTo(), num*f.Config.PtrSize, curPtr)
    			memThen = bThen.NewValue3A(pos, OpStore, types.TypeMem, types.Types[types.TUINTPTR], wbuf, v, memThen)
    		}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:09:14 UTC 2023
    - 23.5K bytes
    - Viewed (0)
  10. 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)
Back to top