Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 27 of 27 for slicelen (0.35 sec)

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

    	cap := v.Block.NewValue0(v.Pos, OpPhi, lenType)
    	for _, a := range v.Args {
    		ptr.AddArg(a.Block.NewValue1(v.Pos, OpSlicePtr, ptrType, a))
    		len.AddArg(a.Block.NewValue1(v.Pos, OpSliceLen, lenType, a))
    		cap.AddArg(a.Block.NewValue1(v.Pos, OpSliceCap, lenType, a))
    	}
    	v.reset(OpSliceMake)
    	v.AddArg(ptr)
    	v.AddArg(len)
    	v.AddArg(cap)
    }
    
    func decomposeInt64Phi(v *Value) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 23 21:22:15 UTC 2022
    - 13.4K bytes
    - Viewed (0)
  2. src/go/parser/parser_test.go

    	{name: "interface", format: "package main; var x «interface { M() «int» }»", scope: true, scopeMultiplier: 2}, // Scopes: InterfaceType, FuncType
    	{name: "map", format: "package main; var x «map[int]»int"},
    	{name: "slicelit", format: "package main; var x = «[]any{«»}»", parseMultiplier: 2},             // Parser nodes: UnaryExpr, CompositeLit
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 31 20:26:14 UTC 2024
    - 24.6K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

                                           *begin, *end, *stride);
    }
    
    bool StridedSliceOp::GetSlicedBoundRanges(
        SmallVectorImpl<int64_t> *slice_begin, SmallVectorImpl<int64_t> *slice_end,
        SmallVectorImpl<int64_t> *slice_stride) {
      // TODO(hinsu): Support lowering for ops with dynamic begin and end values
      // when it is possible to derive indices based on mask attributes.
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu May 09 22:07:10 UTC 2024
    - 170.8K bytes
    - Viewed (0)
  4. src/cmd/compile/internal/ssagen/ssa.go

    	s.stmtList(n.Init())
    	switch n.Op() {
    	case ir.OBYTES2STRTMP:
    		n := n.(*ir.ConvExpr)
    		slice := s.expr(n.X)
    		ptr := s.newValue1(ssa.OpSlicePtr, s.f.Config.Types.BytePtr, slice)
    		len := s.newValue1(ssa.OpSliceLen, types.Types[types.TINT], slice)
    		return s.newValue2(ssa.OpStringMake, n.Type(), ptr, len)
    	case ir.OSTR2BYTESTMP:
    		n := n.(*ir.ConvExpr)
    		str := s.expr(n.X)
    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/expand_calls.go

    		}
    		return mem
    
    	case types.TSLICE:
    		mem = x.decomposeOne(pos, b, a, mem, at.Elem().PtrTo(), OpSlicePtr, &rc)
    		pos = pos.WithNotStmt()
    		mem = x.decomposeOne(pos, b, a, mem, x.typs.Int, OpSliceLen, &rc)
    		return x.decomposeOne(pos, b, a, mem, x.typs.Int, OpSliceCap, &rc)
    
    	case types.TSTRING:
    		return x.decomposePair(pos, b, a, mem, x.typs.BytePtr, x.typs.Int, OpStringPtr, OpStringLen, &rc)
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 28 05:13:40 UTC 2023
    - 31.9K bytes
    - Viewed (0)
  6. src/cmd/compile/internal/ssa/opGen.go

    	},
    	{
    		name:    "SliceMake",
    		argLen:  3,
    		generic: true,
    	},
    	{
    		name:    "SlicePtr",
    		argLen:  1,
    		generic: true,
    	},
    	{
    		name:    "SliceLen",
    		argLen:  1,
    		generic: true,
    	},
    	{
    		name:    "SliceCap",
    		argLen:  1,
    		generic: true,
    	},
    	{
    		name:    "SlicePtrUnchecked",
    		argLen:  1,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 15:49:20 UTC 2024
    - 1M bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

        // values, respectively.
        bool GetSlicedBoundRanges(
          ::llvm::SmallVectorImpl<int64_t> *slice_begin,
          ::llvm::SmallVectorImpl<int64_t> *slice_end,
          ::llvm::SmallVectorImpl<int64_t> *slice_stride);
      }];
    }
    
    def TF_StridedSliceGradOp : TF_Op<"StridedSliceGrad", [Pure]> {
      let summary = "Returns the gradient of `StridedSlice`.";
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 793K bytes
    - Viewed (0)
Back to top