2021-04-27 19:57:56 +00:00
|
|
|
# RUN: %PYTHON %s | FileCheck %s
|
|
|
|
|
|
|
|
|
|
from mlir.ir import *
|
|
|
|
|
import mlir.dialects.async_dialect
|
|
|
|
|
import mlir.dialects.async_dialect.passes
|
|
|
|
|
from mlir.passmanager import *
|
|
|
|
|
|
2023-05-17 16:53:39 +02:00
|
|
|
|
2021-04-27 19:57:56 +00:00
|
|
|
def run(f):
|
|
|
|
|
print("\nTEST:", f.__name__)
|
|
|
|
|
f()
|
2023-05-17 16:53:39 +02:00
|
|
|
|
2021-04-27 19:57:56 +00:00
|
|
|
|
|
|
|
|
def testAsyncPass():
|
|
|
|
|
with Context() as context:
|
2022-10-19 23:36:15 -04:00
|
|
|
PassManager.parse("any(async-to-async-runtime)")
|
2021-04-27 19:57:56 +00:00
|
|
|
print("SUCCESS")
|
2023-05-17 16:53:39 +02:00
|
|
|
|
2021-04-27 19:57:56 +00:00
|
|
|
|
|
|
|
|
# CHECK-LABEL: testAsyncPass
|
|
|
|
|
# CHECK: SUCCESS
|
|
|
|
|
run(testAsyncPass)
|