brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.1 KiB · 8ee1a1b Raw
27 lines · plain
1// This file contains a test case representative of a dialect parsing an2// attribute with versioned custom encoding.3 4//===--------------------------------------------------------------------===//5// Test attribute upgrade6//===--------------------------------------------------------------------===//7 8// COM: bytecode contains9// COM: module {10// COM:   version: 1.1211// COM:   "test.versionedB"() <{attribute = #test.attr_params<24, 42>}> : () -> ()12// COM: }13// RUN: mlir-opt %S/versioned-attr-1.12.mlirbc 2>&1 | FileCheck %s --check-prefix=CHECK114// CHECK1: "test.versionedB"() <{attribute = #test.attr_params<42, 24>}> : () -> ()15 16//===--------------------------------------------------------------------===//17// Test attribute upgrade18//===--------------------------------------------------------------------===//19 20// COM: bytecode contains21// COM: module {22// COM:   version: 2.023// COM:   "test.versionedB"() <{attribute = #test.attr_params<42, 24>}> : () -> ()24// COM: }25// RUN: mlir-opt %S/versioned-attr-2.0.mlirbc 2>&1 | FileCheck %s --check-prefix=CHECK226// CHECK2: "test.versionedB"() <{attribute = #test.attr_params<42, 24>}> : () -> ()27