1 // RUN: mlir-opt %s | mlir-opt | FileCheck %s
3 // Check that we only preserve the blob that got referenced.
5 // CHECK-NEXT: dialect_resources: {
7 // CHECK-NEXT: blob1: "0x08000000010000000000000002000000000000000300000000000000"
11 // Check that we properly preserve unknown external resources.
12 // CHECK-NEXT: external_resources: {
13 // CHECK-NEXT: external: {
14 // CHECK-NEXT: blob: "0x08000000010000000000000002000000000000000300000000000000"
15 // CHECK-NEXT: bool: true
16 // CHECK-NEXT: string: "string"
18 // CHECK-NEXT: other_stuff: {
19 // CHECK-NEXT: bool: true
24 module attributes { test.blob_ref = #test.e1di64_elements<blob1> : tensor<*xi1>} {}
29 blob1: "0x08000000010000000000000002000000000000000300000000000000",
30 blob2: "0x08000000040000000000000005000000000000000600000000000000"
35 blob: "0x08000000010000000000000002000000000000000300000000000000",