Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 22 for type_attr (0.14 sec)

  1. src/cmd/asm/internal/asm/asm.go

    	}
    	name := symbolName(&nameAddr)
    
    	// Operand 1 is an immediate constant or address.
    	valueAddr := p.address(operands[1])
    	switch valueAddr.Type {
    	case obj.TYPE_CONST, obj.TYPE_FCONST, obj.TYPE_SCONST, obj.TYPE_ADDR:
    		// OK
    	default:
    		p.errorf("DATA value must be an immediate constant or address")
    		return
    	}
    
    	// The addresses must not overlap. Easiest test: require monotonicity.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:04:54 UTC 2024
    - 25.5K bytes
    - Viewed (0)
  2. src/cmd/internal/obj/x86/asm6.go

    			ctxt.Diag("offset too large in %s", p)
    		}
    	}
    	v := int32(a.Offset)
    	rel.Siz = 0
    
    	switch a.Type {
    	case obj.TYPE_ADDR:
    		if a.Name == obj.NAME_NONE {
    			ctxt.Diag("unexpected TYPE_ADDR with NAME_NONE")
    		}
    		if a.Index == REG_TLS {
    			ctxt.Diag("unexpected TYPE_ADDR with index==REG_TLS")
    		}
    		goto bad
    
    	case obj.TYPE_REG:
    		const regFirst = REG_AL
    		const regLast = REG_Z31
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 146.9K bytes
    - Viewed (0)
  3. tensorflow/compiler/mlir/lite/transforms/lower_static_tensor_list.cc

        BoolAttr true_attr = rewriter.getBoolAttr(true);
        auto shape = rewriter.create<TF::ShapeOp>(loc, input_handle,
                                                  /*use_32bit=*/true_attr);
        rewriter.replaceOpWithNewOp<TF::GatherOp>(
            op, op.getType(), shape, CreateI32SplatConst(loc, &rewriter, {}, 0),
            /*validate_indices=*/true_attr);
        return success();
      }
    };
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 20:00:43 UTC 2024
    - 70.7K bytes
    - Viewed (0)
  4. src/cmd/internal/obj/link.go

    //			reg = reg (REG_*)
    //			index = index (REG_*)
    //			scale = scale (1, 2, 4, 8)
    //
    //	$<mem>
    //		Effective address of memory reference <mem>, defined above.
    //		Encoding: same as memory reference, but type = TYPE_ADDR.
    //
    //	$<±integer value>
    //		This is a special case of $<mem>, in which only ±offset is present.
    //		It has a separate type for easy recognition.
    //		Encoding:
    //			type = TYPE_CONST
    //			offset = ±integer value
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 19:57:43 UTC 2024
    - 33.1K bytes
    - Viewed (0)
  5. src/cmd/internal/obj/util.go

    		// Make sure 1 prints as 1.0
    		if !strings.ContainsAny(str, ".e") {
    			str += ".0"
    		}
    		fmt.Fprintf(w, "$(%s)", str)
    
    	case TYPE_SCONST:
    		fmt.Fprintf(w, "$%q", a.Val.(string))
    
    	case TYPE_ADDR:
    		io.WriteString(w, "$")
    		a.writeNameTo(w, abiDetail)
    
    	case TYPE_SHIFT:
    		v := int(a.Offset)
    		ops := "<<>>->@>"
    		switch buildcfg.GOARCH {
    		case "arm":
    			op := ops[((v>>5)&3)<<1:]
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 15:44:14 UTC 2024
    - 17.5K bytes
    - Viewed (0)
  6. tensorflow/compiler/mlir/lite/flatbuffer_operator.cc

      return builder.getI32IntegerAttr(value);
    }
    
    static mlir::Attribute BuildTypeAttr(tflite::TensorType value,
                                         mlir::Builder builder) {
      return mlir::TypeAttr::get(ConvertElementType(value, builder));
    }
    
    static mlir::Attribute BuildTFL_AFAttr(tflite::ActivationFunctionType value,
                                           mlir::Builder builder) {
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue May 21 18:21:50 UTC 2024
    - 38K bytes
    - Viewed (0)
  7. tensorflow/compiler/mlir/lite/flatbuffer_export.cc

        // Const op can have a result of dynamic shaped type (e.g. due to constant
        // folding), but we can still derive the shape of a constant tensor for
        // its attribute type.
        auto tensor_attr = mlir::cast<mlir::TypedAttr>(inst->getAttr("value"));
        llvm::ArrayRef<int64_t> shape_ref =
            mlir::cast<TensorType>(tensor_attr.getType()).getShape();
        if (mlir::failed(check_shape(shape_ref))) return std::nullopt;
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Wed Jun 12 21:41:49 UTC 2024
    - 164.5K bytes
    - Viewed (0)
  8. tensorflow/compiler/mlir/tensorflow/ir/tf_generated_ops.td

        TypeAttr:$key_dtype,
        TypeAttr:$value_dtype
      );
    
      let results = (outs
        Res<TF_ResourceTensor, [{Handle to a table.}], [TF_LookupTableAlloc]>:$table_handle
      );
    
      let builders = [
        OpBuilder<(ins "StringAttr":$container, "StringAttr":$shared_name,
          "BoolAttr":$use_node_name_sharing, "TypeAttr":$key_dtype, "TypeAttr":$value_dtype),
        [{
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jun 11 23:24:08 UTC 2024
    - 793K bytes
    - Viewed (0)
  9. src/cmd/internal/obj/loong64/asm.go

    			}
    			return C_LOREG
    
    		case obj.NAME_GOTREF:
    			return C_GOTADDR
    		}
    
    		return C_GOK
    
    	case obj.TYPE_TEXTSIZE:
    		return C_TEXTSIZE
    
    	case obj.TYPE_CONST,
    		obj.TYPE_ADDR:
    		switch a.Name {
    		case obj.NAME_NONE:
    			c.instoffset = a.Offset
    			if a.Reg != 0 {
    				if -BIG <= c.instoffset && c.instoffset <= BIG {
    					return C_SACON
    				}
    				if isint32(c.instoffset) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 22 02:04:54 UTC 2024
    - 61.8K bytes
    - Viewed (0)
  10. src/cmd/internal/obj/ppc64/asm9.go

    		if f64 == 0 {
    			if math.Signbit(f64) {
    				return C_S16CON
    			}
    			return C_ZCON
    		}
    		log.Fatalf("Unexpected nonzero FCONST operand %v", a)
    
    	case obj.TYPE_CONST,
    		obj.TYPE_ADDR:
    		switch a.Name {
    		case obj.NAME_NONE:
    			c.instoffset = a.Offset
    			if a.Reg != 0 {
    				if -BIG <= c.instoffset && c.instoffset < BIG {
    					return C_SACON
    				}
    				if isint32(c.instoffset) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed May 15 13:55:28 UTC 2024
    - 156.1K bytes
    - Viewed (0)
Back to top