Skip to content

Commit 348d604

Browse files
committed
review changes
1 parent 46e31d4 commit 348d604

File tree

3 files changed

+1
-21
lines changed

3 files changed

+1
-21
lines changed

CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,11 @@ add_subdirectory(tools/triton-shared-opt)
1717
if(TRITON_SHARED_BUILD_CPU_BACKEND)
1818
add_triton_plugin(TritonShared ${CMAKE_CURRENT_SOURCE_DIR}/triton_shared.cc LINK_LIBS TritonSharedAnalysis TritonToLinalg TritonTilingExtIR)
1919
target_link_libraries(TritonShared
20-
PUBLIC
20+
PRIVATE
2121
MLIRAffineToStandard
2222
MLIRReconcileUnrealizedCasts
2323
MLIRSCFToControlFlow
2424

25-
# ! transforms
2625
MLIRBufferizationTransforms
2726
MLIRArithTransforms
2827
MLIRMemRefTransforms
@@ -43,10 +42,7 @@ if(TRITON_SHARED_BUILD_CPU_BACKEND)
4342
MLIRVectorToSCF
4443
TPtrToLLVM
4544
MLIRUBToLLVM
46-
# MLIRMathToLibm
47-
4845

49-
PRIVATE
5046
Python3::Module
5147
pybind11::headers
5248
${Python3_LIBRARIES}

include/triton-shared/Conversion/TPtrToLLVM/Passes.td

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,6 @@ include "mlir/Pass/PassBase.td"
55

66
def TPtrToLLVM : Pass<"tptr-to-llvm", "mlir::ModuleOp"> {
77
let summary = "Convert Tptr operations into LLVM";
8-
let options = [
9-
// Option<"addptrToLLVM", "ptradd-to-llvm", "bool", /*default*/"true",
10-
// "Convert tptr.ptradd on tensors to llvm">,
11-
// Option<"fromMemrefToLLVM", "from-memref-to-llvm", "bool", /*default*/"true",
12-
// "Convert tptr.from_memref on tensors to llvm">,
13-
// Option<"toMemrefToLLVM", "to-memref-to-llvm", "bool", /*default*/"true",
14-
// "Convert tptr.to_memref on tensors to llvm">,
15-
// Option<"typeoffsetToConst", "typeoffset-to-const", "bool", /*default*/"true",
16-
// "Convert tptr.typeoffset to llvm.mlir.const">,
17-
];
188
let dependentDialects = ["mlir::tptr::TPtrDialect", "mlir::LLVM::LLVMDialect"];
199
}
2010
#endif

include/triton-shared/Conversion/TPtrToLLVM/TPtrToLLVM.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,7 @@ namespace mlir {
1010
namespace tptr {
1111

1212
#define GEN_PASS_DECL
13-
// #define GEN_PASS_CLASSES
14-
// #define GEN_PASS_DECL_TPTRTOLLVM
15-
// #define GEN_PASS_DEF_TPTRTOLLVM
1613
#include "triton-shared/Conversion/TPtrToLLVM/Passes.h.inc"
17-
18-
// void populateTPtrToLLVMCanonicalizationPatterns(RewritePatternSet &patterns);
19-
2014
void populateTPtrToLLVMConversionPatterns(RewritePatternSet &patterns,
2115
TypeConverter &typeconverter);
2216

0 commit comments

Comments
 (0)