[Mlir-commits] [mlir] [flang] [MLIR][OpenMP] Changes to function-filtering pass (PR #71850)
Akash Banerjee
llvmlistbot at llvm.org
Mon Nov 13 03:24:52 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:
Yes this works, thanks for the suggestion.
https://github.com/llvm/llvm-project/pull/71850
More information about the Mlir-commits
mailing list