Skip to content

Commit 8e054f8

Browse files
authored
[bazel][mlir][python] Port #163620: openacc py filegroup (#163864)
Used downstream
1 parent 77cb19d commit 8e054f8

File tree

1 file changed

+28
-0
lines changed
  • utils/bazel/llvm-project-overlay/mlir/python

1 file changed

+28
-0
lines changed

utils/bazel/llvm-project-overlay/mlir/python/BUILD.bazel

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -632,6 +632,34 @@ filegroup(
632632
],
633633
)
634634

635+
##---------------------------------------------------------------------------##
636+
# OpenACC dialect.
637+
##---------------------------------------------------------------------------##
638+
639+
gentbl_filegroup(
640+
name = "OpenACCOpsPyGen",
641+
tbl_outs = {"mlir/dialects/_acc_ops_gen.py": [
642+
"-gen-python-op-bindings",
643+
"-bind-dialect=acc",
644+
]},
645+
tblgen = "//mlir:mlir-tblgen",
646+
td_file = "mlir/dialects/OpenACCOps.td",
647+
deps = [
648+
"//mlir:BuiltinDialectTdFiles",
649+
"//mlir:OpBaseTdFiles",
650+
"//mlir:OpenAccOpsTdFiles",
651+
"//mlir:SideEffectInterfacesTdFiles",
652+
],
653+
)
654+
655+
filegroup(
656+
name = "OpenACCOpsPyFiles",
657+
srcs = [
658+
"mlir/dialects/openacc.py",
659+
":OpenACCOpsPyGen",
660+
],
661+
)
662+
635663
##---------------------------------------------------------------------------##
636664
# OpenMP dialect.
637665
##---------------------------------------------------------------------------##

0 commit comments

Comments
 (0)