Reading through the MLIR bindings and the following FileCheck test exists
# RUN: %PYTHON %s | mlir-opt -split-input-file | FileCheck
# TODO: Move to a test utility class once any of this actually exists.
def print_module(f):
m = f()
print("// -----")
print("// TEST_FUNCTION:", f.__name__)
print(m.to_asm())
return f
# CHECK-LABEL: TEST_FUNCTION: create_my_op
@print_module
def create_my_op():
m = mlir.ir.Module()
builder = m.new_op_builder()
# CHECK: mydialect.my_operation ...
builder.my_op()
return m
How do I go about running this? I tried just running the section at the start (%PYTHON %s | mlir-opt -split-input-file | FileCheck), but get
$ %PYTHON %s | mlir-opt -split-input-file | FileCheck
<check-file> not specified
%PYTHON: command not found
Hi all, running the mlir binding tests gives me an UNSUPPORTED error message. verbose flag doesn’t provide any further information. Here is the command I run and it’s output: