2022-04-27 19:28:21 +08:00
|
|
|
#include "triton/Dialect/Triton/IR/Dialect.h"
|
|
|
|
#include "triton/Dialect/Triton/IR/Types.h"
|
2022-03-17 20:40:55 +08:00
|
|
|
|
|
|
|
#include "llvm/ADT/StringSwitch.h"
|
|
|
|
#include "llvm/ADT/TypeSwitch.h"
|
|
|
|
#include "llvm/Support/raw_ostream.h"
|
|
|
|
|
|
|
|
#include "mlir/IR/DialectImplementation.h"
|
|
|
|
|
|
|
|
|
2022-04-26 14:38:28 -07:00
|
|
|
#include "triton/Dialect/Triton/Dialect.cpp.inc"
|
2022-03-17 20:40:55 +08:00
|
|
|
|
|
|
|
using namespace mlir;
|
|
|
|
using namespace mlir::triton;
|
|
|
|
|
|
|
|
void TritonDialect::initialize() {
|
|
|
|
registerTypes();
|
|
|
|
|
|
|
|
addOperations<
|
|
|
|
#define GET_OP_LIST
|
2022-04-26 14:38:28 -07:00
|
|
|
#include "triton/Dialect/Triton/Ops.cpp.inc"
|
2022-03-17 20:40:55 +08:00
|
|
|
>();
|
|
|
|
|
|
|
|
// We can also add interface here.
|
|
|
|
}
|