[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / mlir / test / Bytecode / resources.mlir
blob33ed01d20fa0c5b395f85c65ee2ff9f014586f5b
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>
11 } {}
13 // CHECK: builtin: {
14 // CHECK-NEXT: resource: "0x08000000010000000000000002000000000000000300000000000000"
15 // CHECK-NEXT: resource_2: "0x08000000010000000000000002000000000000000300000000000000"
17 {-#
18   dialect_resources: {
19     builtin: {
20       resource: "0x08000000010000000000000002000000000000000300000000000000",
21       resource_2: "0x08000000010000000000000002000000000000000300000000000000"
22     }
23   }
24 #-}