brintos

brintos / llvm-project-archived public Read only

0
0
Text · 697 B · 5b07055 Raw
19 lines · plain
1// RUN: mlir-opt -allow-unregistered-dialect -test-legalize-patterns="test-legalize-mode=analysis" -verify-diagnostics %s | FileCheck %s2// expected-remark@-2 {{op 'builtin.module' is legalizable}}3 4// expected-remark@+1 {{op 'func.func' is legalizable}}5func.func @test(%arg0: f32) {6  // expected-remark@+1 {{op 'test.illegal_op_a' is legalizable}}7  %result = "test.illegal_op_a"() : () -> (i32)8  "foo.region"() ({9      // expected-remark@+1 {{op 'test.invalid' is legalizable}}10      "test.invalid"() : () -> ()11  }) : () -> ()12  return13}14 15// Check that none of the legalizable operations were modified.16// CHECK-LABEL: func @test17// CHECK-NEXT: "test.illegal_op_a"18// CHECK: "test.invalid"19