Skip to content

Commit 119e1f6

Browse files
llvm/llvm-project#162120 removed some automatic namespace determinations, so we need to explicitly specify some namespaces now. This is needed
for the LLVM integrate. PiperOrigin-RevId: 820836649
1 parent bdb7851 commit 119e1f6

File tree

7 files changed

+17
-0
lines changed

7 files changed

+17
-0
lines changed

tensorflow/compiler/mlir/lite/ir/tfl_ops.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5719,6 +5719,10 @@ static FailureOr<SmallVector<int32_t>> parseI32Array(AsmParser& parser) {
57195719
} // namespace TFL
57205720
} // namespace mlir
57215721

5722+
using namespace mlir; // NOLINT
5723+
using mlir::TFL::ControlType;
5724+
using mlir::TFL::LSTMKernelTypeAttr;
5725+
57225726
#include "tensorflow/compiler/mlir/lite/ir/tfl_ops_dialect.cc.inc"
57235727
#include "tensorflow/compiler/mlir/lite/ir/tfl_ops_enums.cc.inc"
57245728
#define GET_ATTRDEF_CLASSES

tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1107,5 +1107,8 @@ LogicalResult IslandOp::fold(FoldAdaptor,
11071107
// TableGen'd op method definitions
11081108
//===----------------------------------------------------------------------===//
11091109

1110+
using mlir::tf_executor::ControlType;
1111+
using mlir::tf_executor::TokenType;
1112+
11101113
#define GET_OP_CLASSES
11111114
#include "tensorflow/compiler/mlir/tensorflow/ir/tf_executor.cc.inc"

tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3727,5 +3727,7 @@ LogicalResult BitcastOp::verify() {
37273727
// TableGen'd op method definitions
37283728
//===----------------------------------------------------------------------===//
37293729

3730+
using namespace mlir; // NOLINT
3731+
37303732
#define GET_OP_CLASSES
37313733
#include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops_a_m.cc.inc"

tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4538,5 +4538,7 @@ MutableOperandRange YieldOp::getMutableSuccessorOperands(
45384538
// TableGen'd op method definitions
45394539
//===----------------------------------------------------------------------===//
45404540

4541+
using namespace mlir; // NOLINT
4542+
45414543
#define GET_OP_CLASSES
45424544
#include "tensorflow/compiler/mlir/tensorflow/ir/tf_ops_n_z.cc.inc"

tensorflow/compiler/mlir/tensorflow/ir/tf_remaining_ops.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,5 +188,6 @@ std::optional<std::string> _SendOp::GetResourceInstanceStr() {
188188
// TableGen'd op method definitions
189189
//===----------------------------------------------------------------------===//
190190

191+
using namespace mlir; // NOLINT
191192
#define GET_OP_CLASSES
192193
#include "tensorflow/compiler/mlir/tensorflow/ir/tf_remaining_ops.cc.inc"

third_party/xla/xla/backends/gpu/codegen/emitters/ir/xla_gpu_ops.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,5 +282,6 @@ void SyncThreadsOp::getAsmResultNames(
282282
} // namespace gpu
283283
} // namespace xla
284284

285+
using mlir::DenseI64ArrayAttr;
285286
#define GET_OP_CLASSES
286287
#include "xla/backends/gpu/codegen/emitters/ir/xla_gpu_ops.cc.inc"

third_party/xla/xla/mlir_hlo/mhlo/IR/hlo_ops.cc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6614,6 +6614,10 @@ using mlir::hlo::printSelectOpType;
66146614
using mlir::hlo::printTupleOpType;
66156615
using mlir::hlo::printVariadicSameOperandsAndResultType;
66166616

6617+
using namespace mlir; // NOLINT
6618+
using mlir::mhlo::AsyncBundleType;
6619+
using mlir::mhlo::TokenType;
6620+
66176621
#define GET_OP_CLASSES
66186622
#include "mhlo/IR/hlo_ops.cc.inc"
66196623

0 commit comments

Comments
 (0)