Skip to content

Commit b92483c

Browse files
authored
Revert "[MLIR][Math][XeVM] Add MathToXeVM (math-to-xevm) pass" (llvm#162923)
Reverts llvm#159878
1 parent 7e7c923 commit b92483c

File tree

8 files changed

+0
-520
lines changed

8 files changed

+0
-520
lines changed

mlir/include/mlir/Conversion/MathToXeVM/MathToXeVM.h

Lines changed: 0 additions & 27 deletions
This file was deleted.

mlir/include/mlir/Conversion/Passes.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@
4949
#include "mlir/Conversion/MathToLibm/MathToLibm.h"
5050
#include "mlir/Conversion/MathToROCDL/MathToROCDL.h"
5151
#include "mlir/Conversion/MathToSPIRV/MathToSPIRVPass.h"
52-
#include "mlir/Conversion/MathToXeVM/MathToXeVM.h"
5352
#include "mlir/Conversion/MemRefToEmitC/MemRefToEmitCPass.h"
5453
#include "mlir/Conversion/MemRefToLLVM/MemRefToLLVM.h"
5554
#include "mlir/Conversion/MemRefToSPIRV/MemRefToSPIRVPass.h"

mlir/include/mlir/Conversion/Passes.td

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -796,31 +796,6 @@ def ConvertMathToSPIRVPass : Pass<"convert-math-to-spirv"> {
796796
let dependentDialects = ["spirv::SPIRVDialect"];
797797
}
798798

799-
//===----------------------------------------------------------------------===//
800-
// MathToXeVM
801-
//===----------------------------------------------------------------------===//
802-
803-
def ConvertMathToXeVM : Pass<"convert-math-to-xevm", "ModuleOp"> {
804-
let summary =
805-
"Convert (fast) math operations to native XeVM/SPIRV equivalents";
806-
let description = [{
807-
This pass converts supported math ops marked with the `afn` fastmath flag
808-
to function calls for OpenCL `native_` math intrinsics: These intrinsics
809-
are typically mapped directly to native device instructions, often resulting
810-
in better performance. However, the precision/error of these intrinsics
811-
are implementation-defined, and thus math ops are only converted when they
812-
have the `afn` fastmath flag enabled.
813-
}];
814-
let options = [Option<
815-
"convertArith", "convert-arith", "bool", /*default=*/"true",
816-
"Convert supported Arith ops (e.g. arith.divf) as well.">];
817-
let dependentDialects = [
818-
"arith::ArithDialect",
819-
"xevm::XeVMDialect",
820-
"LLVM::LLVMDialect",
821-
];
822-
}
823-
824799
//===----------------------------------------------------------------------===//
825800
// MathToEmitC
826801
//===----------------------------------------------------------------------===//

mlir/lib/Conversion/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ add_subdirectory(MathToLibm)
4040
add_subdirectory(MathToLLVM)
4141
add_subdirectory(MathToROCDL)
4242
add_subdirectory(MathToSPIRV)
43-
add_subdirectory(MathToXeVM)
4443
add_subdirectory(MemRefToEmitC)
4544
add_subdirectory(MemRefToLLVM)
4645
add_subdirectory(MemRefToSPIRV)

mlir/lib/Conversion/MathToXeVM/CMakeLists.txt

Lines changed: 0 additions & 19 deletions
This file was deleted.

mlir/lib/Conversion/MathToXeVM/MathToXeVM.cpp

Lines changed: 0 additions & 174 deletions
This file was deleted.

0 commit comments

Comments
 (0)