[mlir][Bazel] Adjust BUILD files to 0e9523efda

This commit is contained in:
Adrian Kuegel 2023-03-21 15:00:10 +01:00
parent 155abd0678
commit 16b192f497
4 changed files with 38 additions and 0 deletions

View File

@ -616,6 +616,7 @@ mlir_c_api_cc_library(
],
includes = ["include"],
deps = [
":BuiltinToLLVMIRTranslation",
":ExecutionEngineUtils",
":LLVMToLLVMIRTranslation",
"//llvm:OrcJIT",
@ -650,6 +651,7 @@ mlir_c_api_cc_library(
includes = ["include"],
deps = [
":AllPassesAndDialects",
":BuiltinToLLVMIRTranslation",
":LLVMToLLVMIRTranslation",
],
)
@ -4057,6 +4059,7 @@ cc_library(
deps = [
":ArithDialect",
":AsmParser",
":GPUToLLVMIRTranslation",
":AsyncDialect",
":ControlFlowDialect",
":DLTIDialect",
@ -6737,6 +6740,33 @@ cc_library(
],
)
cc_library(
name = "GPUToLLVMIRTranslation",
srcs = glob(["lib/Target/LLVMIR/Dialect/GPU/GPUToLLVMIRTranslation.cpp"]),
hdrs = glob(["include/mlir/Target/LLVMIR/Dialect/GPU/GPUToLLVMIRTranslation.h"]),
includes = ["include"],
deps = [
":GPUDialect",
":IR",
":ToLLVMIRTranslation",
"//llvm:Core",
"//llvm:Support",
],
)
cc_library(
name = "BuiltinToLLVMIRTranslation",
srcs = glob(["lib/Target/LLVMIR/Dialect/Builtin/BuiltinToLLVMIRTranslation.cpp"]),
hdrs = glob(["include/mlir/Target/LLVMIR/Dialect/Builtin/BuiltinToLLVMIRTranslation.h"]),
includes = ["include"],
deps = [
":IR",
":ToLLVMIRTranslation",
"//llvm:Core",
"//llvm:Support",
],
)
cc_library(
name = "LLVMToLLVMIRTranslation",
srcs = ["lib/Target/LLVMIR/Dialect/LLVMIR/LLVMToLLVMIRTranslation.cpp"],
@ -6827,6 +6857,8 @@ cc_library(
":AMXToLLVMIRTranslation",
":ArmNeonToLLVMIRTranslation",
":ArmSVEToLLVMIRTranslation",
":BuiltinToLLVMIRTranslation",
":GPUToLLVMIRTranslation",
":LLVMIRToLLVMTranslation",
":LLVMToLLVMIRTranslation",
":NVVMToLLVMIRTranslation",
@ -7360,6 +7392,7 @@ cc_binary(
srcs = ["tools/mlir-cpu-runner/mlir-cpu-runner.cpp"],
deps = [
":AllToLLVMIRTranslations",
":BuiltinToLLVMIRTranslation",
":ExecutionEngineUtils",
":IR",
":LLVMDialect",
@ -7466,6 +7499,7 @@ cc_binary(
srcs = ["tools/mlir-vulkan-runner/mlir-vulkan-runner.cpp"],
deps = [
":ArithDialect",
":BuiltinToLLVMIRTranslation",
":ExecutionEngineUtils",
":FuncDialect",
":FuncToLLVM",
@ -7498,6 +7532,7 @@ cc_binary(
srcs = ["tools/mlir-spirv-cpu-runner/mlir-spirv-cpu-runner.cpp"],
deps = [
":ArithDialect",
":BuiltinToLLVMIRTranslation",
":ExecutionEngineUtils",
":FuncDialect",
":FuncToLLVM",

View File

@ -105,6 +105,7 @@ cc_binary(
"//mlir:Analysis",
"//mlir:ArithDialect",
"//mlir:ArithToLLVM",
"//mlir:BuiltinToLLVMIRTranslation",
"//mlir:CastOpInterfaces",
"//mlir:ControlFlowToLLVM",
"//mlir:ExecutionEngine",

View File

@ -105,6 +105,7 @@ cc_binary(
"//mlir:Analysis",
"//mlir:ArithDialect",
"//mlir:ArithToLLVM",
"//mlir:BuiltinToLLVMIRTranslation",
"//mlir:CastOpInterfaces",
"//mlir:ControlFlowToLLVM",
"//mlir:ExecutionEngine",

View File

@ -391,6 +391,7 @@ cc_test(
"//mlir:AllPassesAndDialects",
"//mlir:Analysis",
"//mlir:ArithToLLVM",
"//mlir:BuiltinToLLVMIRTranslation",
"//mlir:ExecutionEngine",
"//mlir:FuncDialect",
"//mlir:FuncToLLVM",