diff options
author | Angel Zhang <angel.zhang@amd.com> | 2024-06-24 11:11:35 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-24 11:11:35 -0400 |
commit | 13c1fec4716a93079311d2dff54c4ae977f8de67 (patch) | |
tree | 54f1c82d141562b64d9322ce54b992f2c4ffb156 /utils/bazel/llvm-project-overlay | |
parent | 10bd5ad0a133fe73ffc1b05e63bc3fb2d56ba79c (diff) | |
download | llvm-13c1fec4716a93079311d2dff54c4ae977f8de67.zip llvm-13c1fec4716a93079311d2dff54c4ae977f8de67.tar.gz llvm-13c1fec4716a93079311d2dff54c4ae977f8de67.tar.bz2 |
Reland "[mlir][spirv] Add a generic convert-to-spirv pass" (#96359)
This PR relands #95942, which was reverted in #96332 due to link
failures. It fixes the issue by updating CMake dependencies. The bazel
support, originally introduced in #96334, is also included in this PR.
---------
Co-authored-by: Keith Smiley <keithbsmiley@gmail.com>
Diffstat (limited to 'utils/bazel/llvm-project-overlay')
-rw-r--r-- | utils/bazel/llvm-project-overlay/mlir/BUILD.bazel | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel index d836985..14203eb 100644 --- a/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel +++ b/utils/bazel/llvm-project-overlay/mlir/BUILD.bazel @@ -824,6 +824,7 @@ mlir_c_api_cc_library( includes = ["include"], deps = [ ":ConversionPasses", + ":ConvertToSPIRV", ":Pass", ], ) @@ -4200,6 +4201,7 @@ cc_library( ":ControlFlowToSPIRV", ":ConversionPassIncGen", ":ConvertToLLVM", + ":ConvertToSPIRV", ":FuncToEmitC", ":FuncToLLVM", ":FuncToSPIRV", @@ -8210,6 +8212,32 @@ cc_library( ) cc_library( + name = "ConvertToSPIRV", + srcs = ["lib/Conversion/ConvertToSPIRV/ConvertToSPIRVPass.cpp"], + hdrs = ["include/mlir/Conversion/ConvertToSPIRV/ConvertToSPIRVPass.h"], + includes = ["include"], + deps = [ + ":ArithToSPIRV", + ":ArithTransforms", + ":ConversionPassIncGen", + ":FuncToSPIRV", + ":IR", + ":IndexToSPIRV", + ":Pass", + ":Rewrite", + ":SCFToSPIRV", + ":SPIRVConversion", + ":SPIRVDialect", + ":SPIRVTransforms", + ":TransformUtils", + ":Transforms", + ":UBToSPIRV", + ":VectorToSPIRV", + ":VectorTransforms", + ], +) + +cc_library( name = "ControlFlowToSCF", srcs = [ "lib/Conversion/ControlFlowToSCF/ControlFlowToSCF.cpp", |