Skip to content

Commit f1ac772

Browse files
authored
[mlir] Remove bytecode reader & writer header from interface. (#98920)
Flagged some additional headers missing in process. Inspired by #98676
1 parent 1c85496 commit f1ac772

File tree

5 files changed

+5
-4
lines changed

5 files changed

+5
-4
lines changed

mlir/include/mlir/Bytecode/BytecodeOpInterface.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
#define MLIR_BYTECODE_BYTECODEOPINTERFACE_H
1616

1717
#include "mlir/Bytecode/BytecodeImplementation.h"
18-
#include "mlir/Bytecode/BytecodeReader.h"
19-
#include "mlir/Bytecode/BytecodeWriter.h"
2018
#include "mlir/IR/OpDefinition.h"
2119

2220
/// Include the generated interface declarations.

mlir/include/mlir/Bytecode/BytecodeReaderConfig.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
//===- BytecodeReader.h - MLIR Bytecode Reader ------------------*- C++ -*-===//
1+
//===- BytecodeReaderConfig.h - MLIR Bytecode Reader Config -----*- C++ -*-===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
55
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
66
//
77
//===----------------------------------------------------------------------===//
88
//
9-
// This header defines interfaces to read MLIR bytecode files/streams.
9+
// This header config for reading MLIR bytecode files/streams.
1010
//
1111
//===----------------------------------------------------------------------===//
1212

mlir/lib/Bytecode/Writer/IRNumbering.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
#include "IRNumbering.h"
1010
#include "mlir/Bytecode/BytecodeImplementation.h"
1111
#include "mlir/Bytecode/BytecodeOpInterface.h"
12+
#include "mlir/Bytecode/BytecodeWriter.h"
1213
#include "mlir/Bytecode/Encoding.h"
1314
#include "mlir/IR/AsmState.h"
1415
#include "mlir/IR/BuiltinTypes.h"

mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
#include <cstddef>
3434
#include <iterator>
3535
#include <optional>
36+
#include <variant>
3637

3738
#include "mlir/Dialect/OpenMP/OpenMPOpsDialect.cpp.inc"
3839
#include "mlir/Dialect/OpenMP/OpenMPOpsEnums.cpp.inc"

mlir/lib/Target/LLVMIR/DebugImporter.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
#include "mlir/IR/BuiltinOps.h"
1919
#include "mlir/IR/MLIRContext.h"
2020
#include "mlir/Support/CyclicReplacerCache.h"
21+
#include "llvm/ADT/MapVector.h"
2122
#include "llvm/IR/DebugInfoMetadata.h"
2223

2324
namespace mlir {

0 commit comments

Comments
 (0)