Since these are unused, I've removed them from the configuration, so that it can be easier to read and follow. Reviewed By: stellaraccident Differential Revision: https://reviews.llvm.org/D125132
18 lines
420 B
Python
18 lines
420 B
Python
# RUN: %python %s | FileCheck %s
|
|
|
|
from mlir_standalone.ir import *
|
|
from mlir_standalone.dialects import (
|
|
builtin as builtin_d,
|
|
standalone as standalone_d
|
|
)
|
|
|
|
with Context():
|
|
standalone_d.register_dialect()
|
|
module = Module.parse("""
|
|
%0 = arith.constant 2 : i32
|
|
%1 = standalone.foo %0 : i32
|
|
""")
|
|
# CHECK: %[[C:.*]] = arith.constant 2 : i32
|
|
# CHECK: standalone.foo %[[C]] : i32
|
|
print(str(module))
|