29 lines · plain
1// This file contains test cases related to the dialect post-parsing upgrade2// mechanism.3// COM: those tests parse bytecode that was generated before test dialect4// adopted `usePropertiesFromAttributes`.5 6//===--------------------------------------------------------------------===//7// Test generic8//===--------------------------------------------------------------------===//9 10// COM: bytecode contains11// COM: module {12// COM: version: 2.013// COM: test.with_versioned_properties 1 | 214// COM: }15// RUN: mlir-opt %S/versioned-op-with-native-prop-2.0.mlirbc 2>&1 | FileCheck %s --check-prefix=CHECK116// CHECK1: test.with_versioned_properties 1 | 217 18//===--------------------------------------------------------------------===//19// Test upgrade20//===--------------------------------------------------------------------===//21 22// COM: bytecode contains23// COM: module {24// COM: version: 1.1225 26// COM: }27// RUN: mlir-opt %S/versioned-op-with-native-prop-1.12.mlirbc 2>&1 | FileCheck %s --check-prefix=CHECK328// CHECK3: test.with_versioned_properties 1 | 029