Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 56 for setConst (0.2 sec)

  1. src/go/types/operand.go

    	// )
    	if expr != "" {
    		buf.WriteByte(')')
    	}
    
    	return buf.String()
    }
    
    func (x *operand) String() string {
    	return operandString(x, nil)
    }
    
    // setConst sets x to the untyped constant for literal lit.
    func (x *operand) setConst(k token.Token, lit string) {
    	var kind BasicKind
    	switch k {
    	case token.INT:
    		kind = UntypedInt
    	case token.FLOAT:
    		kind = UntypedFloat
    	case token.IMAG:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  2. src/cmd/compile/internal/types2/operand.go

    	// )
    	if expr != "" {
    		buf.WriteByte(')')
    	}
    
    	return buf.String()
    }
    
    func (x *operand) String() string {
    	return operandString(x, nil)
    }
    
    // setConst sets x to the untyped constant for literal lit.
    func (x *operand) setConst(k syntax.LitKind, lit string) {
    	var kind BasicKind
    	switch k {
    	case syntax.IntLit:
    		kind = UntypedInt
    	case syntax.FloatLit:
    		kind = UntypedFloat
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 21:17:10 UTC 2024
    - 11K 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/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)
  5. src/go/types/expr.go

    				goto Error
    			}
    		}
    		x.setConst(e.Kind, e.Value)
    		if x.mode == invalid {
    			// The parser already establishes syntactic correctness.
    			// If we reach here it's because of number under-/overflow.
    			// TODO(gri) setConst (and in turn the go/constant package)
    			// should return an error describing the issue.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/types2/expr.go

    				goto Error
    			}
    		}
    		x.setConst(e.Kind, e.Value)
    		if x.mode == invalid {
    			// The parser already establishes syntactic correctness.
    			// If we reach here it's because of number under-/overflow.
    			// TODO(gri) setConst (and in turn the go/constant package)
    			// should return an error describing the issue.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 29 02:09:54 UTC 2024
    - 51.7K bytes
    - Viewed (0)
  7. 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)
  8. src/cmd/internal/obj/link.go

    	}
    	return nil
    }
    func (a *Addr) SetTarget(t *Prog) {
    	if a.Type != TYPE_BRANCH {
    		panic("setting branch target when type is not TYPE_BRANCH")
    	}
    	a.Val = t
    }
    
    func (a *Addr) SetConst(v int64) {
    	a.Sym = nil
    	a.Type = TYPE_CONST
    	a.Offset = v
    }
    
    // Prog describes a single machine instruction.
    //
    // The general instruction form is:
    //
    //	(1) As.Scond From [, ...RestArgs], To
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ppc64/ssa.go

    			p.AddRestSourceReg(ppc64.REG_R0)
    		}
    		// AuxInt values 4,5,6 implemented with reverse operand order from 0,1,2
    		if v.AuxInt > 3 {
    			p.Reg, p.GetFrom3().Reg = p.GetFrom3().Reg, p.Reg
    		}
    		p.From.SetConst(v.AuxInt & 3)
    
    	case ssa.OpPPC64SETBC, ssa.OpPPC64SETBCR:
    		p := s.Prog(v.Op.Asm())
    		p.To.Type = obj.TYPE_REG
    		p.To.Reg = v.Reg()
    		p.From.Type = obj.TYPE_REG
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 19:59:38 UTC 2024
    - 55.4K bytes
    - Viewed (0)
  10. src/cmd/compile/internal/ssa/_gen/LOONG64.rules

    (SGTconst [c] (MOVBUreg _)) && 0xff < c => (MOVVconst [1])
    (SGTconst [c] (MOVBUreg _)) && c < 0 => (MOVVconst [0])
    (SGTUconst [c] (MOVBUreg _)) && 0xff < uint64(c) => (MOVVconst [1])
    (SGTconst [c] (MOVHreg _)) && 0x7fff < c => (MOVVconst [1])
    (SGTconst [c] (MOVHreg _)) && c <= -0x8000 => (MOVVconst [0])
    (SGTconst [c] (MOVHUreg _)) && 0xffff < c => (MOVVconst [1])
    (SGTconst [c] (MOVHUreg _)) && c < 0 => (MOVVconst [0])
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 19:26:25 UTC 2023
    - 31.8K bytes
    - Viewed (0)
Back to top