* NFC but has some fixes for CMake glitches discovered along the way (things not cleaning properly, co-mingled depends). * Includes previously unsubmitted fix in D98681 and a TODO to fix it more appropriately in a smaller followup. Differential Revision: https://reviews.llvm.org/D101493
20 lines
376 B
Python
20 lines
376 B
Python
# RUN: %PYTHON %s | FileCheck %s
|
|
|
|
from mlir.ir import *
|
|
import mlir.dialects.gpu
|
|
import mlir.dialects.gpu.passes
|
|
from mlir.passmanager import *
|
|
|
|
def run(f):
|
|
print("\nTEST:", f.__name__)
|
|
f()
|
|
|
|
def testGPUPass():
|
|
with Context() as context:
|
|
PassManager.parse('gpu-kernel-outlining')
|
|
print('SUCCESS')
|
|
|
|
# CHECK-LABEL: testGPUPass
|
|
# CHECK: SUCCESS
|
|
run(testGPUPass)
|