- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 14 for MakeInt64 (0.14 sec)
-
tensorflow/compiler/jit/increase_dynamism_for_auto_jit_pass.cc
const SliceInputs& slice_inputs) { SliceInputs result; result.input = slice_inputs.input; result.begin = MakeInt64(host_scope, "begin", slice_inputs.begin); result.size = MakeInt64(host_scope, "size", slice_inputs.size); result.size_as_vector = slice_inputs.size_as_vector; return result; }
Registered: Sun Jun 16 05:45:23 UTC 2024 - Last Modified: Tue Mar 12 06:33:33 UTC 2024 - 13.8K bytes - Viewed (0) -
src/cmd/compile/internal/types2/builtins.go
var val constant.Value switch t := arrayPtrDeref(under(x.typ)).(type) { case *Basic: if isString(t) && id == _Len { if x.mode == constant_ { mode = constant_ val = constant.MakeInt64(int64(len(constant.StringVal(x.val)))) } else { mode = value } } case *Array: mode = value // spec: "The expressions len(s) and cap(s) are constants
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 27.1K bytes - Viewed (0) -
src/go/types/builtins.go
var val constant.Value switch t := arrayPtrDeref(under(x.typ)).(type) { case *Basic: if isString(t) && id == _Len { if x.mode == constant_ { mode = constant_ val = constant.MakeInt64(int64(len(constant.StringVal(x.val)))) } else { mode = value } } case *Array: mode = value // spec: "The expressions len(s) and cap(s) are constants
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 27.2K bytes - Viewed (0) -
src/cmd/compile/internal/walk/switch.go
return false // 64-bit switches on 32-bit archs } min := cc[0].lo.Val() max := cc[len(cc)-1].hi.Val() width := constant.BinaryOp(constant.BinaryOp(max, token.SUB, min), token.ADD, constant.MakeInt64(1)) limit := constant.MakeInt64(int64(len(cc)) * minDensity) if constant.Compare(width, token.GTR, limit) { // We disable jump tables if we use less than a minimum fraction of the entries.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:34:01 UTC 2024 - 30.1K bytes - Viewed (0) -
src/cmd/compile/internal/walk/builtin.go
// delayed until now to preserve side effects. t := n.X.Type() if t.IsPtr() { t = t.Elem() } if t.IsArray() { safeExpr(n.X, init) con := ir.NewConstExpr(constant.MakeInt64(t.NumElem()), n) con.SetTypecheck(1) return con } return n } // walkMakeChan walks an OMAKECHAN node. func walkMakeChan(n *ir.MakeExpr, init *ir.Nodes) ir.Node {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Mar 08 22:35:22 UTC 2024 - 31.2K bytes - Viewed (0) -
src/go/constant/value.go
func MakeString(s string) Value { if s == "" { return &emptyString // common case } return &stringVal{s: s} } var emptyString stringVal // MakeInt64 returns the [Int] value for x. func MakeInt64(x int64) Value { return int64Val(x) } // MakeUint64 returns the [Int] value for x. func MakeUint64(x uint64) Value { if x < 1<<63 { return int64Val(int64(x)) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 12:02:03 UTC 2023 - 34K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/typecheck.go
return false } else if tp != nil && tp.NumElem() >= 0 && constant.Compare(x, token.GTR, constant.MakeInt64(tp.NumElem())) { base.Errorf("invalid slice index %v (out of bounds for %d-element array)", r, tp.NumElem()) return false } else if ir.IsConst(l, constant.String) && constant.Compare(x, token.GTR, constant.MakeInt64(int64(len(ir.StringVal(l))))) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 20 19:08:34 UTC 2024 - 30.5K bytes - Viewed (0) -
src/internal/pkgbits/decoder.go
panic(fmt.Errorf("unexpected scalar tag: %v", tag)) case ValBool: return constant.MakeBool(r.Bool()) case ValString: return constant.MakeString(r.String()) case ValInt64: return constant.MakeInt64(r.Int64()) case ValBigInt: return constant.Make(r.bigInt()) case ValBigRat: num := r.bigInt() denom := r.bigInt() return constant.Make(new(big.Rat).SetFrac(num, denom)) case ValBigFloat:
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Sep 27 20:58:46 UTC 2022 - 13.2K bytes - Viewed (0) -
src/cmd/compile/internal/types2/decl.go
// iota is the index of the current constDecl within the group if first < 0 || s.Group == nil || list[index-1].(*syntax.ConstDecl).Group != s.Group { first = index last = nil } iota := constant.MakeInt64(int64(index - first)) // determine which initialization expressions to use inherited := true switch { case s.Type != nil || s.Values != nil: last = s inherited = false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 30 19:19:55 UTC 2024 - 29.6K bytes - Viewed (0) -
src/cmd/compile/internal/types2/resolver.go
if first < 0 || s.Group == nil || file.DeclList[index-1].(*syntax.ConstDecl).Group != s.Group { first = index last = nil } iota := constant.MakeInt64(int64(index - first)) // determine which initialization expressions to use inherited := true switch { case s.Type != nil || s.Values != nil: last = s inherited = false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 18 14:10:44 UTC 2024 - 26.3K bytes - Viewed (0)