[flang-commits] [mlir] [flang] [MLIR][OpenMP] Changes to function-filtering pass (PR #71850)
Akash Banerjee via flang-commits
flang-commits at lists.llvm.org
Fri Nov 10 08:46:12 PST 2023
================
@@ -32,7 +33,15 @@ class OMPFunctionFilteringPass
public:
OMPFunctionFilteringPass() = default;
+ void getDependentDialects(DialectRegistry ®istry) const override {
+ // fir::UndefOp creation requires that FIROpsDialect dialect is loaded.
+ registry.insert<fir::FIROpsDialect>();
+ }
+
void runOnOperation() override {
+ MLIRContext *context = &getContext();
+ context->getOrLoadDialect<fir::FIROpsDialect>();
+ OpBuilder opBuilder(context);
----------------
TIFitis wrote:
@skatrak @kiranchandramohan I had to add this change in order to create the `fir::UndefOp` when the patch is run standalone. Hope this is okay.
https://github.com/llvm/llvm-project/pull/71850
More information about the flang-commits
mailing list