Skip to content

Commit 7ab6260

Browse files
committed
review changes
1 parent 9340b85 commit 7ab6260

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
@@ -16,12 +16,11 @@ add_subdirectory(tools/triton-shared-opt)
1616
if(TRITON_SHARED_BUILD_CPU_BACKEND)
1717
add_triton_plugin(TritonShared ${CMAKE_CURRENT_SOURCE_DIR}/triton_shared.cc LINK_LIBS TritonSharedAnalysis TritonToLinalg TritonTilingExtIR)
1818
target_link_libraries(TritonShared
19-
PUBLIC
19+
PRIVATE
2020
MLIRAffineToStandard
2121
MLIRReconcileUnrealizedCasts
2222
MLIRSCFToControlFlow
2323

24-
# ! transforms
2524
MLIRBufferizationTransforms
2625
MLIRArithTransforms
2726
MLIRMemRefTransforms
@@ -42,10 +41,7 @@ if(TRITON_SHARED_BUILD_CPU_BACKEND)
4241
MLIRVectorToSCF
4342
TPtrToLLVM
4443
MLIRUBToLLVM
45-
# MLIRMathToLibm
46-
4744

48-
PRIVATE
4945
Python3::Module
5046
pybind11::headers
5147
${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)