Skip to content

Commit c3366f8

Browse files
ezhulenevcopybara-github
authored andcommitted
[xla:cpu] NFC: Remove deprecated XLA:CPU mlir based codegen part #1
PiperOrigin-RevId: 629853006
1 parent 83f1074 commit c3366f8

File tree

7 files changed

+44
-845
lines changed

7 files changed

+44
-845
lines changed

xla/mlir/runtime/transforms/BUILD

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ cc_library(
119119
":compilation_pipeline_options",
120120
":compiler",
121121
":passes",
122-
"//xla/mlir/backends/cpu/transforms:passes",
123122
"//xla/mlir/memref/transforms:passes",
124123
"//xla/mlir/runtime/ir:rt",
125124
"//xla/mlir_hlo:transforms_passes",

xla/mlir/runtime/transforms/compilation_pipeline_cpu.cc

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ limitations under the License.
5555
#include "mlir/Target/LLVMIR/Dialect/X86Vector/X86VectorToLLVMIRTranslation.h" // from @llvm-project
5656
#endif
5757
#include "mlir/Transforms/Passes.h" // from @llvm-project
58-
#include "xla/mlir/backends/cpu/transforms/passes.h"
5958
#include "xla/mlir/memref/transforms/passes.h"
6059
#include "xla/mlir/runtime/ir/rt_dialect.h"
6160
#include "xla/mlir/runtime/transforms/compilation_pipeline_options.h"
@@ -106,7 +105,6 @@ static void CreateXlaCpuCompilationPipeline(mlir::OpPassManager& pm,
106105

107106
// Convert entry function to the XLA entrypoint.
108107
pm.addPass(CreateExportRuntimeFunctionsPass());
109-
pm.addPass(cpu::createConvertXlaCpuToCpuRuntimePass());
110108
pm.addPass(CreateConvertCustomCallsPass());
111109
pm.addPass(CreateConvertAssertsPass());
112110

xla/service/cpu/BUILD

Lines changed: 0 additions & 51 deletions
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,6 @@ cc_library(
223223
":cpu_options",
224224
":dot_op_emitter",
225225
":executable_proto_cc",
226-
":hlo_xla_runtime_pipeline",
227226
":ir_emission_utils",
228227
":ir_emitter",
229228
":onednn_matmul_rewriter",
@@ -469,56 +468,6 @@ cc_library(
469468
deps = [":xla_framework_proto_cc"],
470469
)
471470

472-
cc_library(
473-
name = "hlo_xla_runtime_pipeline",
474-
srcs = ["hlo_xla_runtime_pipeline.cc"],
475-
hdrs = ["hlo_xla_runtime_pipeline.h"],
476-
local_defines = select({
477-
":experimental_mlir_gpu_enabled": ["EXPERIMENTAL_MLIR_GPU=1"],
478-
"//conditions:default": [],
479-
}),
480-
deps = [
481-
"//xla:status",
482-
"//xla/mlir/backends/cpu/transforms:passes",
483-
"//xla/mlir/runtime/transforms:compiler",
484-
"//xla/mlir_hlo:all_passes",
485-
"//xla/mlir_hlo:mhlo_passes",
486-
"//xla/mlir_hlo:transforms_passes",
487-
"//xla/runtime:compiler",
488-
"@llvm-project//mlir:ArithTransforms",
489-
"@llvm-project//mlir:BufferizationToMemRef",
490-
"@llvm-project//mlir:BufferizationTransforms",
491-
"@llvm-project//mlir:ComplexToStandard",
492-
"@llvm-project//mlir:FuncDialect",
493-
"@llvm-project//mlir:FuncTransforms",
494-
"@llvm-project//mlir:LinalgTransforms",
495-
"@llvm-project//mlir:MemRefTransforms",
496-
"@llvm-project//mlir:Pass",
497-
"@llvm-project//mlir:ReconcileUnrealizedCasts",
498-
"@llvm-project//mlir:SCFToControlFlow",
499-
"@llvm-project//mlir:SCFTransforms",
500-
"@llvm-project//mlir:ShapeToStandard",
501-
"@llvm-project//mlir:ShapeTransforms",
502-
"@llvm-project//mlir:SparseTensorTransforms",
503-
"@llvm-project//mlir:Support",
504-
"@llvm-project//mlir:TensorToLinalg",
505-
"@llvm-project//mlir:TensorTransforms",
506-
"@llvm-project//mlir:Transforms",
507-
"@llvm-project//mlir:VectorToLLVM",
508-
"@llvm-project//mlir:VectorToSCF",
509-
"@llvm-project//mlir:VectorTransforms",
510-
"@tsl//tsl/platform:errors",
511-
"@tsl//tsl/platform:logging",
512-
] + select({
513-
":experimental_mlir_gpu_enabled": [
514-
"@llvm-project//mlir:GPUDialect",
515-
"@llvm-project//mlir:GPUToNVVMTransforms",
516-
],
517-
"//conditions:default": [],
518-
}),
519-
alwayslink = 1, # has pipeline registration
520-
)
521-
522471
cc_library(
523472
name = "simple_orc_jit",
524473
srcs = [

0 commit comments

Comments
 (0)