Delete mhlo static dialect registration
This is obsolete now. PiperOrigin-RevId: 330605210
This commit is contained in:
parent
062a3ac4a0
commit
9d4273b5a7
|
@ -20,8 +20,6 @@ namespace mlir {
|
|||
class DialectRegistry;
|
||||
namespace mhlo {
|
||||
|
||||
void registerAllDialects();
|
||||
|
||||
// Add chlo, mhlo, lmhlo dialects to the provided registry.
|
||||
void registerAllMhloDialects(DialectRegistry ®istry);
|
||||
}
|
||||
|
|
|
@ -1,23 +0,0 @@
|
|||
/* Copyright 2019 The TensorFlow Authors. All Rights Reserved.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
==============================================================================*/
|
||||
|
||||
#include "mlir-hlo/Dialect/mhlo/IR/chlo_ops.h"
|
||||
#include "mlir-hlo/Dialect/mhlo/IR/hlo_ops.h"
|
||||
#include "mlir-hlo/Dialect/mhlo/IR/lhlo_ops.h"
|
||||
|
||||
// Static initialization for *HLO dialects registration.
|
||||
static mlir::DialectRegistration<mlir::mhlo::MhloDialect> mhlo_ops;
|
||||
static mlir::DialectRegistration<mlir::chlo::HloClientDialect> chlo_ops;
|
||||
static mlir::DialectRegistration<mlir::lmhlo::LmhloDialect> lmhlo_ops;
|
|
@ -18,20 +18,6 @@ limitations under the License.
|
|||
#include "mlir-hlo/Dialect/mhlo/IR/lhlo_ops.h"
|
||||
#include "mlir-hlo/Dialect/mhlo/IR/register.h"
|
||||
|
||||
// Static initialization for *HLO dialects registration.
|
||||
|
||||
void mlir::mhlo::registerAllDialects() {
|
||||
static bool init_once = []() {
|
||||
registerDialect<mlir::chlo::HloClientDialect>();
|
||||
registerDialect<mlir::lmhlo::LmhloDialect>();
|
||||
registerDialect<mlir::mhlo::MhloDialect>();
|
||||
return true;
|
||||
}();
|
||||
(void)init_once;
|
||||
|
||||
// Dependent dialects
|
||||
}
|
||||
|
||||
void mlir::mhlo::registerAllMhloDialects(mlir::DialectRegistry ®istry) {
|
||||
// clang-format off
|
||||
registry.insert<mlir::chlo::HloClientDialect,
|
||||
|
|
Loading…
Reference in New Issue