Files
ROCm/bin/triton-reduce.cpp
peterbell10 2c06f875e4 [TESTS] Add triton version of mlir-reduce (#1498)
[`mlir-reduce`](https://mlir.llvm.org/docs/Tools/mlir-reduce/) is a tool
to reduce the complexity of bug reproducers written in mlir. Similar to
`triton-opt`, `triton` needs to have its own version with the dialects
registered properly for it to work.
2023-04-10 13:31:11 -07:00

12 lines
303 B
C++

#include "./RegisterTritonDialects.h"
#include "mlir/Tools/mlir-reduce/MlirReduceMain.h"
int main(int argc, char **argv) {
mlir::DialectRegistry registry;
registerTritonDialects(registry);
mlir::MLIRContext context(registry);
return mlir::failed(mlir::mlirReduceMain(argc, argv, context));
}