1 // RUN: mlir-opt -emit-bytecode %s | mlir-opt | FileCheck %s
3 // CHECK-LABEL: @TestDialectResources
4 module @TestDialectResources attributes {
5 // CHECK: bytecode.test = dense_resource<decl_resource> : tensor<2xui32>
6 // CHECK: bytecode.test2 = dense_resource<resource> : tensor<4xf64>
7 // CHECK: bytecode.test3 = dense_resource<resource_2> : tensor<4xf64>
8 bytecode.test = dense_resource<decl_resource> : tensor<2xui32>,
9 bytecode.test2 = dense_resource<resource> : tensor<4xf64>,
10 bytecode.test3 = dense_resource<resource_2> : tensor<4xf64>
14 // CHECK-NEXT: resource: "0x08000000010000000000000002000000000000000300000000000000"
15 // CHECK-NEXT: resource_2: "0x08000000010000000000000002000000000000000300000000000000"
20 resource: "0x08000000010000000000000002000000000000000300000000000000",
21 resource_2: "0x08000000010000000000000002000000000000000300000000000000"