Updates LLVM usage to match
[b6d9add71b1a](https://github.com/llvm/llvm-project/commit/b6d9add71b1a)

PiperOrigin-RevId: 325589103
This commit is contained in:
A. Unique TensorFlower 2020-08-08 04:34:20 -07:00 committed by TensorFlow MLIR Team
parent 53fdda7f3e
commit e6fa003bf2
5 changed files with 11 additions and 6 deletions

View File

@ -1,2 +1,2 @@
9dbdaea9a0e6f58417b5bd8980e7ea6723fd1783 b6d9add71b1a7bc77ce504ed09a43288ca67c0cd

View File

@ -32,8 +32,14 @@ namespace mlir {
namespace chlo { namespace chlo {
class HloClientDialect : public Dialect { class HloClientDialect : public Dialect {
void initialize();
public: public:
explicit HloClientDialect(MLIRContext *context); explicit HloClientDialect(MLIRContext *context)
: Dialect(getDialectNamespace(), context,
TypeID::get<HloClientDialect>()) {
initialize();
}
static StringRef getDialectNamespace() { return "chlo"; } static StringRef getDialectNamespace() { return "chlo"; }
}; };

View File

@ -266,8 +266,7 @@ BROADCAST_BINARY_OP_DEFS(BroadcastXorOp);
// chlo Dialect Constructor // chlo Dialect Constructor
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
HloClientDialect::HloClientDialect(MLIRContext* context) void HloClientDialect::initialize() {
: Dialect(getDialectNamespace(), context) {
addOperations< addOperations<
#define GET_OP_LIST #define GET_OP_LIST
#include "mlir-hlo/Dialect/mhlo/IR/chlo_ops.cc.inc" #include "mlir-hlo/Dialect/mhlo/IR/chlo_ops.cc.inc"

View File

@ -2188,7 +2188,7 @@ struct HLOInlinerInterface : public DialectInlinerInterface {
//===----------------------------------------------------------------------===// //===----------------------------------------------------------------------===//
MhloDialect::MhloDialect(MLIRContext* context) MhloDialect::MhloDialect(MLIRContext* context)
: Dialect(getDialectNamespace(), context) { : Dialect(getDialectNamespace(), context, TypeID::get<MhloDialect>()) {
addOperations< addOperations<
#define GET_OP_LIST #define GET_OP_LIST
#include "mlir-hlo/Dialect/mhlo/IR/hlo_ops.cc.inc" #include "mlir-hlo/Dialect/mhlo/IR/hlo_ops.cc.inc"

View File

@ -49,7 +49,7 @@ namespace mlir {
namespace lmhlo { namespace lmhlo {
LmhloDialect::LmhloDialect(MLIRContext *context) LmhloDialect::LmhloDialect(MLIRContext *context)
: Dialect(getDialectNamespace(), context) { : Dialect(getDialectNamespace(), context, TypeID::get<LmhloDialect>()) {
addOperations< addOperations<
#define GET_OP_LIST #define GET_OP_LIST
#include "mlir-hlo/Dialect/mhlo/IR/lhlo_ops.cc.inc" #include "mlir-hlo/Dialect/mhlo/IR/lhlo_ops.cc.inc"