diff options
author | Yann Herklotz <git@yannherklotz.com> | 2022-09-26 19:08:01 +0100 |
---|---|---|
committer | Yann Herklotz <git@yannherklotz.com> | 2022-09-26 19:08:48 +0100 |
commit | 0034f32d6d85d7f21cf04c82083860cdb2fe1ddb (patch) | |
tree | f37f65190acd6040a262cdb7d2dbf6e2b17556f5 /test/python/smoketest.py | |
parent | b018c1ef00eade87c9efbf48cc2e3466877ea79d (diff) | |
download | gsa-mlir-0034f32d6d85d7f21cf04c82083860cdb2fe1ddb.tar.gz gsa-mlir-0034f32d6d85d7f21cf04c82083860cdb2fe1ddb.zip |
Diffstat (limited to 'test/python/smoketest.py')
-rw-r--r-- | test/python/smoketest.py | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/python/smoketest.py b/test/python/smoketest.py new file mode 100644 index 0000000..0d8f41c --- /dev/null +++ b/test/python/smoketest.py @@ -0,0 +1,17 @@ +# 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)) |