Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 44 for secconst (0.28 sec)

  1. 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)
  2. src/cmd/compile/internal/ssa/rewriteARM64.go

    	v_0 := v.Args[0]
    	// match: (SLLconst [c] (MOVDconst [d]))
    	// result: (MOVDconst [d<<uint64(c)])
    	for {
    		c := auxIntToInt64(v.AuxInt)
    		if v_0.Op != OpARM64MOVDconst {
    			break
    		}
    		d := auxIntToInt64(v_0.AuxInt)
    		v.reset(OpARM64MOVDconst)
    		v.AuxInt = int64ToAuxInt(d << uint64(c))
    		return true
    	}
    	// match: (SLLconst [c] (SRLconst [c] x))
    	// cond: 0 < c && c < 64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 608.6K bytes
    - Viewed (0)
  3. src/cmd/compile/internal/ssa/sccp.go

    	//
    	//  res := lattice{constant, nil}
    	// 	switch op {
    	// 	case OpAdd16:
    	//		res.val = newConst(argLt1.val.AuxInt16() + argLt2.val.AuxInt16())
    	// 	case OpAdd32:
    	// 		res.val = newConst(argLt1.val.AuxInt32() + argLt2.val.AuxInt32())
    	//	case OpDiv8:
    	//		if !isDivideByZero(argLt2.val.AuxInt8()) {
    	//			res.val = newConst(argLt1.val.AuxInt8() / argLt2.val.AuxInt8())
    	//		}
    	//  ...
    	// 	}
    	//
    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. tensorflow/compiler/mlir/lite/transforms/dense_to_sparse.cc

                                                            compressed_data);
            auto s_qconst =
                builder.create<SparseQConstOp>(op->getLoc(), cst.getQtypeAttr(),
                                               cst.getValue(), s_param, new_value);
            value.replaceAllUsesWith(s_qconst.getResult());
            cst.erase();
          }
    
          if (result.needs_densify) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 16.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/universe.go

    	{"false", UntypedBool, constant.MakeBool(false)},
    	{"iota", UntypedInt, constant.MakeInt64(0)},
    }
    
    func defPredeclaredConsts() {
    	for _, c := range predeclaredConsts {
    		def(NewConst(nopos, nil, c.name, Typ[c.kind], c.val))
    	}
    }
    
    func defPredeclaredNil() {
    	def(&Nil{object{name: "nil", typ: Typ[UntypedNil], color_: black}})
    }
    
    // A builtinId is the id of a builtin function.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  6. src/go/types/universe.go

    	{"false", UntypedBool, constant.MakeBool(false)},
    	{"iota", UntypedInt, constant.MakeInt64(0)},
    }
    
    func defPredeclaredConsts() {
    	for _, c := range predeclaredConsts {
    		def(NewConst(nopos, nil, c.name, Typ[c.kind], c.val))
    	}
    }
    
    func defPredeclaredNil() {
    	def(&Nil{object{name: "nil", typ: Typ[UntypedNil], color_: black}})
    }
    
    // A builtinId is the id of a builtin function.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  7. src/cmd/compile/internal/ssa/rewriteLOONG64.go

    		return true
    	}
    	// match: (SGTconst [c] (MOVBreg _))
    	// cond: 0x7f < c
    	// result: (MOVVconst [1])
    	for {
    		c := auxIntToInt64(v.AuxInt)
    		if v_0.Op != OpLOONG64MOVBreg || !(0x7f < c) {
    			break
    		}
    		v.reset(OpLOONG64MOVVconst)
    		v.AuxInt = int64ToAuxInt(1)
    		return true
    	}
    	// match: (SGTconst [c] (MOVBreg _))
    	// cond: c <= -0x80
    	// result: (MOVVconst [0])
    	for {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 21 19:26:25 UTC 2023
    - 195.8K bytes
    - Viewed (0)
  8. src/cmd/compile/internal/types2/object.go

    // A Const represents a declared constant.
    type Const struct {
    	object
    	val constant.Value
    }
    
    // NewConst returns a new constant with value val.
    // The remaining arguments set the attributes found with all Objects.
    func NewConst(pos syntax.Pos, pkg *Package, name string, typ Type, val constant.Value) *Const {
    	return &Const{object{nil, pos, pkg, name, typ, 0, colorFor(typ), nopos}, val}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 20.1K bytes
    - Viewed (0)
  9. src/cmd/compile/internal/ssa/poset.go

    	if !f && n.isGenericIntConst() {
    		po.newconst(n)
    		i, f = po.values[n.ID]
    	}
    	return i, f
    }
    
    // newconst creates a node for a constant. It links it to other constants, so
    // that n<=5 is detected true when n<=3 is known to be true.
    // TODO: this is O(N), fix it.
    func (po *poset) newconst(n *Value) {
    	if !n.isGenericIntConst() {
    		panic("newconst on non-constant")
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Sep 04 17:23:05 UTC 2023
    - 37.2K bytes
    - Viewed (0)
  10. src/go/types/object.go

    // A Const represents a declared constant.
    type Const struct {
    	object
    	val constant.Value
    }
    
    // NewConst returns a new constant with value val.
    // The remaining arguments set the attributes found with all Objects.
    func NewConst(pos token.Pos, pkg *Package, name string, typ Type, val constant.Value) *Const {
    	return &Const{object{nil, pos, pkg, name, typ, 0, colorFor(typ), nopos}, val}
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 20:08:23 UTC 2024
    - 20.1K bytes
    - Viewed (0)
Back to top