Skip to content

Commit

Permalink
[xla:cpu] NFC: Remove deprecated XLA:CPU mlir based codegen part #5
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 630156915
  • Loading branch information
ezhulenev authored and copybara-github committed May 2, 2024
1 parent 74c31d1 commit aa41fd4
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 256 deletions.
16 changes: 0 additions & 16 deletions xla/mlir/memref/BUILD

This file was deleted.

40 changes: 0 additions & 40 deletions xla/mlir/memref/transforms/BUILD

This file was deleted.

60 changes: 0 additions & 60 deletions xla/mlir/memref/transforms/aligned_allocations.cc

This file was deleted.

37 changes: 0 additions & 37 deletions xla/mlir/memref/transforms/passes.h

This file was deleted.

39 changes: 0 additions & 39 deletions xla/mlir/memref/transforms/passes.td

This file was deleted.

64 changes: 0 additions & 64 deletions xla/mlir/runtime/transforms/BUILD
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ load("@llvm-project//mlir:tblgen.bzl", "gentbl_cc_library")
load(
"@tsl//tsl/platform:build_config_root.bzl",
"if_llvm_aarch64_available",
"if_llvm_arm_available",
"if_llvm_powerpc_available",
"if_llvm_system_z_available",
"if_llvm_x86_available",
Expand Down Expand Up @@ -103,69 +102,6 @@ xla_cc_test(
],
)

cc_library(
name = "compilation_pipeline_cpu",
srcs = ["compilation_pipeline_cpu.cc"],
hdrs = ["compilation_pipeline_cpu.h"],
compatible_with = get_compatible_with_portable(),
local_defines = select({
"//xla/service/cpu:experimental_mlir_gpu_enabled": [
"EXPERIMENTAL_MLIR_GPU=1",
],
"//conditions:default": [],
}),
visibility = ["//visibility:public"],
deps = [
":compilation_pipeline_options",
":compiler",
":passes",
"//xla/mlir/memref/transforms:passes",
"//xla/mlir/runtime/ir:rt",
"//xla/mlir_hlo:transforms_passes",
"//xla/runtime:compiler",
"@llvm-project//mlir:AffineDialect",
"@llvm-project//mlir:AffineToStandard",
"@llvm-project//mlir:ArithDialect",
"@llvm-project//mlir:ArithTransforms",
"@llvm-project//mlir:AsyncDialect",
"@llvm-project//mlir:AsyncToLLVM",
"@llvm-project//mlir:AsyncTransforms",
"@llvm-project//mlir:BuiltinToLLVMIRTranslation",
"@llvm-project//mlir:ComplexToLLVM",
"@llvm-project//mlir:ControlFlowDialect",
"@llvm-project//mlir:FuncDialect",
"@llvm-project//mlir:FuncExtensions",
"@llvm-project//mlir:LLVMToLLVMIRTranslation",
"@llvm-project//mlir:LinalgDialect",
"@llvm-project//mlir:LinalgTransforms",
"@llvm-project//mlir:MathDialect",
"@llvm-project//mlir:MathToLLVM",
"@llvm-project//mlir:MemRefDialect",
"@llvm-project//mlir:MemRefToLLVM",
"@llvm-project//mlir:MemRefTransforms",
"@llvm-project//mlir:Pass",
"@llvm-project//mlir:ReconcileUnrealizedCasts",
"@llvm-project//mlir:SCFDialect",
"@llvm-project//mlir:SparseTensorDialect",
"@llvm-project//mlir:Transforms",
"@tsl//tsl/platform:logging",
] + select({
"//xla/service/cpu:experimental_mlir_gpu_enabled": [
"@llvm-project//mlir:GPUToGPURuntimeTransforms",
"@llvm-project//mlir:GPUTransforms",
],
"//conditions:default": [],
}) + if_llvm_aarch64_available([
"@llvm-project//mlir:ArmSVEToLLVMIRTranslation",
]) + if_llvm_arm_available([
"@llvm-project//mlir:ArmNeonToLLVMIRTranslation",
]) + if_llvm_x86_available([
"@llvm-project//mlir:AMXToLLVMIRTranslation",
"@llvm-project//mlir:X86VectorToLLVMIRTranslation",
]),
alwayslink = 1, # has pipeline registration
)

cc_library(
name = "compilation_pipeline_options",
hdrs = ["compilation_pipeline_options.h"],
Expand Down

0 comments on commit aa41fd4

Please sign in to comment.