Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 65 for intconst (0.16 sec)

  1. src/go/types/assignments.go

    		} else {
    			check.errorf(x, code, "cannot use %s as %s value in %s", x, T, context)
    		}
    		x.mode = invalid
    	}
    }
    
    func (check *Checker) initConst(lhs *Const, x *operand) {
    	if x.mode == invalid || !isValid(x.typ) || !isValid(lhs.typ) {
    		if lhs.typ == nil {
    			lhs.typ = Typ[Invalid]
    		}
    		return
    	}
    
    	// rhs must be a constant
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Apr 03 18:48:38 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/assignments.go

    		} else {
    			check.errorf(x, code, "cannot use %s as %s value in %s", x, T, context)
    		}
    		x.mode = invalid
    	}
    }
    
    func (check *Checker) initConst(lhs *Const, x *operand) {
    	if x.mode == invalid || !isValid(x.typ) || !isValid(lhs.typ) {
    		if lhs.typ == nil {
    			lhs.typ = Typ[Invalid]
    		}
    		return
    	}
    
    	// rhs must be a constant
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 23 21:21:43 UTC 2024
    - 16.4K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/liveness/plive.go

    	fninfo := ls.Func()
    	fninfo.GCArgs, fninfo.GCLocals = lv.emit()
    
    	p := pp.Prog(obj.AFUNCDATA)
    	p.From.SetConst(rtabi.FUNCDATA_ArgsPointerMaps)
    	p.To.Type = obj.TYPE_MEM
    	p.To.Name = obj.NAME_EXTERN
    	p.To.Sym = fninfo.GCArgs
    
    	p = pp.Prog(obj.AFUNCDATA)
    	p.From.SetConst(rtabi.FUNCDATA_LocalsPointerMaps)
    	p.To.Type = obj.TYPE_MEM
    	p.To.Name = obj.NAME_EXTERN
    	p.To.Sym = fninfo.GCLocals
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 15:22:22 UTC 2024
    - 45.2K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssagen/ssa.go

    			p := s.pp.Prog(obj.APCALIGNMAX)
    			p.From.SetConst(hotAlign)
    			p.To.SetConst(hotRequire)
    		}
    
    		s.bstart[b.ID] = s.pp.Next
    
    		if idx, ok := argLiveBlockMap[b.ID]; ok && idx != argLiveIdx {
    			argLiveIdx = idx
    			p := s.pp.Prog(obj.APCDATA)
    			p.From.SetConst(rtabi.PCDATA_ArgLiveIndex)
    			p.To.SetConst(int64(idx))
    		}
    
    		// Emit values in block
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 19:44:43 UTC 2024
    - 284.9K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/ssa/_gen/S390X.rules

    // Remove redundant *const ops
    (ADDconst [0] x) => x
    (ADDWconst [c] x) && int32(c)==0 => x
    (SUBconst [0] x) => x
    (SUBWconst [c] x) && int32(c) == 0 => x
    (ANDconst [0] _)                 => (MOVDconst [0])
    (ANDWconst [c] _) && int32(c)==0  => (MOVDconst [0])
    (ANDconst [-1] x)                => x
    (ANDWconst [c] x) && int32(c)==-1 => x
    (ORconst [0] x)                  => x
    (ORWconst [c] x) && int32(c)==0   => x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 12 18:09:26 UTC 2023
    - 74.3K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/walk/convert.go

    }
    
    // walkStringToBytes walks an OSTR2BYTES node.
    func walkStringToBytes(n *ir.ConvExpr, init *ir.Nodes) ir.Node {
    	s := n.X
    	if ir.IsConst(s, constant.String) {
    		sc := ir.StringVal(s)
    
    		// Allocate a [n]byte of the right size.
    		t := types.NewArray(types.Types[types.TUINT8], int64(len(sc)))
    		var a ir.Node
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Oct 09 17:28:22 UTC 2023
    - 18.2K bytes
    - Viewed (0)
  7. src/cmd/internal/obj/ppc64/obj9.go

    			if val&mask == val || (val>>(shift+16) == -1 && (val>>shift)<<shift == val) {
    				// Rewrite this value into MOVD $const>>shift, Rto; SLD $shift, Rto
    				q := obj.Appendp(p, c.newprog)
    				q.As = ASLD
    				q.From.SetConst(int64(shift))
    				q.To = p.To
    				p.From.Offset >>= shift
    				p = q
    			} else if isPPC64DoublewordRotateMask(val) {
    				// This constant is a mask value, generate MOVD $-1, Rto; RLDIC Rto, ^me, mb, Rto
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 18:17:17 UTC 2024
    - 40.8K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/ssa/rewrite.go

    // and return mask & m.
    func mergePPC64RShiftMask(m, s, nbits int64) int64 {
    	smask := uint64((1<<uint(nbits))-1) >> uint(s)
    	return m & int64(smask)
    }
    
    // Combine (ANDconst [m] (SRWconst [s])) into (RLWINM [y]) or return 0
    func mergePPC64AndSrwi(m, s int64) int64 {
    	mask := mergePPC64RShiftMask(m, s, 32)
    	if !isPPC64WordRotateMask(mask) {
    		return 0
    	}
    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/walk/assign.go

    	// The care of overflow of the len argument to make will be handled by an explicit check of int(len) < 0 during runtime.
    	y := mk.Len
    	if !ir.IsConst(y, constant.Int) && y.Type().Size() > types.Types[types.TUINT].Size() {
    		return false
    	}
    
    	return true
    }
    
    // extendSlice rewrites append(l1, make([]T, l2)...) to
    //
    //	init {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:09:06 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/types2/decl.go

    			// init expression evaluation since that is all we have
    			// (see issues go.dev/issue/42991, go.dev/issue/42992).
    			check.errpos = obj.pos
    		}
    		check.expr(nil, &x, init)
    	}
    	check.initConst(obj, &x)
    }
    
    func (check *Checker) varDecl(obj *Var, lhs []*Var, typ, init syntax.Expr) {
    	assert(obj.typ == nil)
    
    	// determine type, if any
    	if typ != nil {
    		obj.typ = check.varType(typ)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 29.6K bytes
    - Viewed (0)
Back to top