Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 17 of 17 for sliceType (0.17 sec)

  1. src/cmd/link/internal/ld/deadcode.go

    		off += 4 * arch.PtrSize
    	case abi.Pointer: // reflect.ptrType
    		off += arch.PtrSize
    	case abi.Func: // reflect.funcType
    		off += arch.PtrSize // 4 bytes, pointer aligned
    	case abi.Slice: // reflect.sliceType
    		off += arch.PtrSize
    	case abi.Array: // reflect.arrayType
    		off += 3 * arch.PtrSize
    	case abi.Chan: // reflect.chanType
    		off += 2 * arch.PtrSize
    	case abi.Map: // reflect.mapType
    		off += 4*arch.PtrSize + 8
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jun 07 14:52:41 UTC 2024
    - 19K bytes
    - Viewed (0)
  2. src/runtime/arena.go

    	var x any
    	switch t.Kind_ & abi.KindMask {
    	case abi.String:
    		s1 := s.(string)
    		s2, b := rawstring(len(s1))
    		copy(b, s1)
    		x = s2
    	case abi.Slice:
    		len := (*slice)(e.data).len
    		et := (*slicetype)(unsafe.Pointer(t)).Elem
    		sl := new(slice)
    		*sl = slice{makeslicecopy(et, len, len, (*slice)(e.data).array), len, len}
    		xe := efaceOf(&x)
    		xe._type = t
    		xe.data = unsafe.Pointer(sl)
    	case abi.Pointer:
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 08 17:44:56 UTC 2024
    - 37.9K bytes
    - Viewed (0)
  3. src/runtime/cgocall.go

    		if !cgoIsGoPointer(p) {
    			return
    		}
    		if !top && !isPinned(p) {
    			panic(errorString(msg))
    		}
    		cgoCheckArg(it, p, it.Kind_&abi.KindDirectIface == 0, false, msg)
    	case abi.Slice:
    		st := (*slicetype)(unsafe.Pointer(t))
    		s := (*slice)(p)
    		p = s.array
    		if p == nil || !cgoIsGoPointer(p) {
    			return
    		}
    		if !top && !isPinned(p) {
    			panic(errorString(msg))
    		}
    		if !st.Elem.Pointers() {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:16:47 UTC 2024
    - 24.2K bytes
    - Viewed (0)
  4. src/cmd/internal/dwarf/dwarf.go

    		},
    	},
    
    	/* BARE_PTRTYPE */
    	{
    		DW_TAG_pointer_type,
    		DW_CHILDREN_no,
    		[]dwAttrForm{
    			{DW_AT_name, DW_FORM_string},
    			{DW_AT_go_runtime_type, DW_FORM_addr},
    		},
    	},
    
    	/* SLICETYPE */
    	{
    		DW_TAG_structure_type,
    		DW_CHILDREN_yes,
    		[]dwAttrForm{
    			{DW_AT_name, DW_FORM_string},
    			{DW_AT_byte_size, DW_FORM_udata},
    			{DW_AT_go_kind, DW_FORM_data1},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 15:23:18 UTC 2024
    - 43K bytes
    - Viewed (0)
  5. src/cmd/link/internal/ld/dwarf_test.go

    		"internal/abi.ArrayType":     true,
    		"internal/abi.ChanType":      true,
    		"internal/abi.FuncType":      true,
    		"internal/abi.MapType":       true,
    		"internal/abi.PtrType":       true,
    		"internal/abi.SliceType":     true,
    		"internal/abi.StructType":    true,
    		"internal/abi.InterfaceType": true,
    		"internal/abi.ITab":          true,
    	}
    
    	found := findTypes(t, dwarf, want)
    	if len(found) != len(want) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 08 01:38:11 UTC 2024
    - 48.6K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/tensorflow/transforms/collection_ops_util.cc

      auto slice_shape = llvm::to_vector<8>(buffer_type.getShape());
      slice_shape[0] = 1;
      auto slice_type = tensorflow::GetTypeFromTFTensorShape(
          slice_shape, buffer_type.getElementType());
      auto update_slice = element;
      if (element.getType() != slice_type) {
        update_slice = builder.create<TF::ReshapeOp>(
            loc, ArrayRef<Type>{slice_type},
            ArrayRef<Value>{element, GetR1Const(slice_shape, builder, loc)});
      }
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 14.5K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/experimental/tac/transforms/device_transform_patterns.cc

            slice_size.push_back(-1);
          }
        }
    
        auto slice_type = mlir::RankedTensorType::get(slice_begin.size(),
                                                      rewriter->getIntegerType(32));
        auto slice_begin_attr =
            mlir::DenseIntElementsAttr::get(slice_type, slice_begin);
        auto slice_size_attr =
            mlir::DenseIntElementsAttr::get(slice_type, slice_size);
    
        auto slice_begin_const =
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Thu Apr 25 16:01:03 UTC 2024
    - 25.4K bytes
    - Viewed (0)
Back to top