forked from OSchip/llvm-project
[fir][NFC] Move MLIR includes to FIRDialect.td
The fir_Dialect definition was coming silently through FIRTypes.td. Make the include of flang/Optimizer/Dialect/FIRDialect.td explicit in FIROps.td and move MLIR includes to FIRDialect.td. This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: AlexisPerry Differential Revision: https://reviews.llvm.org/D112418 Co-authored-by: Eric Schweitz <eschweitz@nvidia.com>
This commit is contained in:
parent
5694dbccc3
commit
84486cb222
|
@ -14,6 +14,12 @@
|
|||
#ifndef FORTRAN_DIALECT_FIR_DIALECT
|
||||
#define FORTRAN_DIALECT_FIR_DIALECT
|
||||
|
||||
include "mlir/IR/SymbolInterfaces.td"
|
||||
include "mlir/Interfaces/CallInterfaces.td"
|
||||
include "mlir/Interfaces/ControlFlowInterfaces.td"
|
||||
include "mlir/Interfaces/LoopLikeInterface.td"
|
||||
include "mlir/Interfaces/SideEffectInterfaces.td"
|
||||
|
||||
def fir_Dialect : Dialect {
|
||||
let name = "fir";
|
||||
let cppNamespace = "::fir";
|
||||
|
|
|
@ -14,11 +14,7 @@
|
|||
#ifndef FORTRAN_DIALECT_FIR_OPS
|
||||
#define FORTRAN_DIALECT_FIR_OPS
|
||||
|
||||
include "mlir/IR/SymbolInterfaces.td"
|
||||
include "mlir/Interfaces/CallInterfaces.td"
|
||||
include "mlir/Interfaces/ControlFlowInterfaces.td"
|
||||
include "mlir/Interfaces/LoopLikeInterface.td"
|
||||
include "mlir/Interfaces/SideEffectInterfaces.td"
|
||||
include "flang/Optimizer/Dialect/FIRDialect.td"
|
||||
include "flang/Optimizer/Dialect/FIRTypes.td"
|
||||
|
||||
// Base class for FIR operations.
|
||||
|
|
Loading…
Reference in New Issue