Skip to content

Commit 928e7fb

Browse files
authored
[bazel] Port #148286: XeVM target (#153520)
1 parent e4fd6ba commit 928e7fb

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed

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

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5509,6 +5509,7 @@ cc_library(
55095509
":VCIXToLLVMIRTranslation",
55105510
":VectorDialect",
55115511
":XeVMDialect",
5512+
":XeVMTarget",
55125513
":config",
55135514
"//llvm:Core",
55145515
"//llvm:MC",
@@ -9103,6 +9104,7 @@ cc_library(
91039104
":X86VectorDialect",
91049105
":XeGPUDialect",
91059106
":XeVMDialect",
9107+
":XeVMTarget",
91069108
],
91079109
)
91089110

@@ -9197,6 +9199,7 @@ cc_library(
91979199
":VectorToLLVM",
91989200
":VectorTransformOps",
91999201
":XeVMToLLVM",
9202+
":XeVMToLLVMIRTranslation",
92009203
],
92019204
)
92029205

@@ -13817,6 +13820,32 @@ gentbl_cc_library(
1381713820
deps = [":XeVMTdFiles"],
1381813821
)
1381913822

13823+
cc_library(
13824+
name = "XeVMTarget",
13825+
srcs = ["lib/Target/LLVM/XeVM/Target.cpp"],
13826+
hdrs = glob(["include/mlir/Target/LLVM/XeVM/*.h"]),
13827+
includes = ["include"],
13828+
deps = [
13829+
":ExecutionEngineUtils",
13830+
":GPUDialect",
13831+
":GPUToLLVMIRTranslation",
13832+
":IR",
13833+
":LLVMToLLVMIRTranslation",
13834+
":Support",
13835+
":TargetLLVM",
13836+
":ToLLVMIRTranslation",
13837+
":XeVMDialect",
13838+
":XeVMToLLVMIRTranslation",
13839+
"//llvm:BitWriter",
13840+
"//llvm:Core",
13841+
"//llvm:Object",
13842+
"//llvm:SPIRVCodeGen",
13843+
"//llvm:Support",
13844+
"//llvm:Target",
13845+
"//llvm:config",
13846+
],
13847+
)
13848+
1382013849
cc_library(
1382113850
name = "XeVMToLLVM",
1382213851
srcs = glob([

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ expand_template(
4747
"@MLIR_ENABLE_SPIRV_CPU_RUNNER@": "0",
4848
"@MLIR_ENABLE_VULKAN_RUNNER@": "0",
4949
"@MLIR_ENABLE_BINDINGS_PYTHON@": "0",
50+
"@MLIR_ENABLE_XEVM_CONVERSIONS@": "0",
5051
"@MLIR_RUN_AMX_TESTS@": "0",
5152
"@MLIR_RUN_ARM_SVE_TESTS@": "0",
5253
"@MLIR_RUN_ARM_SME_TESTS@": "0",

0 commit comments

Comments
 (0)