File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
include/flang/Optimizer/Dialect Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,9 @@ def fir_Dialect : Dialect {
30
30
let dependentDialects = [
31
31
// Arith dialect provides FastMathFlagsAttr
32
32
// supported by some FIR operations.
33
- "arith::ArithDialect"
33
+ "arith::ArithDialect",
34
+ // TBAA Tag types
35
+ "LLVM::LLVMDialect"
34
36
];
35
37
}
36
38
Original file line number Diff line number Diff line change 14
14
#include " flang/Optimizer/Dialect/FIRAttr.h"
15
15
#include " flang/Optimizer/Dialect/FIROps.h"
16
16
#include " flang/Optimizer/Dialect/FIRType.h"
17
+ #include " mlir/Dialect/LLVMIR/LLVMDialect.h"
17
18
#include " mlir/Transforms/InliningUtils.h"
18
19
19
20
using namespace fir ;
@@ -58,6 +59,7 @@ struct FIRInlinerInterface : public mlir::DialectInlinerInterface {
58
59
59
60
fir::FIROpsDialect::FIROpsDialect (mlir::MLIRContext *ctx)
60
61
: mlir::Dialect(" fir" , ctx, mlir::TypeID::get<FIROpsDialect>()) {
62
+ getContext ()->loadDialect <mlir::LLVM::LLVMDialect>();
61
63
registerTypes ();
62
64
registerAttributes ();
63
65
addOperations<
You can’t perform that action at this time.
0 commit comments