File tree Expand file tree Collapse file tree 4 files changed +1
-14
lines changed
lib/Optimizer/HLFIR/Transforms Expand file tree Collapse file tree 4 files changed +1
-14
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ namespace hlfir {
24
24
25
25
std::unique_ptr<mlir::Pass> createConvertHLFIRtoFIRPass ();
26
26
std::unique_ptr<mlir::Pass> createBufferizeHLFIRPass ();
27
- std::unique_ptr<mlir::Pass> createLowerHLFIRIntrinsicsPass ();
28
27
29
28
#define GEN_PASS_REGISTRATION
30
29
#include " flang/Optimizer/HLFIR/Passes.h.inc"
Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ def OptimizedBufferization : Pass<"opt-bufferization"> {
29
29
30
30
def LowerHLFIRIntrinsics : Pass<"lower-hlfir-intrinsics", "::mlir::ModuleOp"> {
31
31
let summary = "Lower HLFIR transformational intrinsic operations";
32
- let constructor = "hlfir::createLowerHLFIRIntrinsicsPass()";
33
32
}
34
33
35
34
def LowerHLFIROrderedAssignments : Pass<"lower-hlfir-ordered-assignments", "::mlir::ModuleOp"> {
Original file line number Diff line number Diff line change @@ -328,7 +328,7 @@ inline void createHLFIRToFIRPassPipeline(
328
328
pm, hlfir::createOptimizedBufferization);
329
329
}
330
330
pm.addPass (hlfir::createLowerHLFIROrderedAssignments ());
331
- pm.addPass (hlfir::createLowerHLFIRIntrinsicsPass ());
331
+ pm.addPass (hlfir::createLowerHLFIRIntrinsics ());
332
332
pm.addPass (hlfir::createBufferizeHLFIRPass ());
333
333
pm.addPass (hlfir::createConvertHLFIRtoFIRPass ());
334
334
}
Original file line number Diff line number Diff line change @@ -468,13 +468,6 @@ class LowerHLFIRIntrinsics
468
468
: public hlfir::impl::LowerHLFIRIntrinsicsBase<LowerHLFIRIntrinsics> {
469
469
public:
470
470
void runOnOperation () override {
471
- // TODO: make this a pass operating on FuncOp. The issue is that
472
- // FirOpBuilder helpers may generate new FuncOp because of runtime/llvm
473
- // intrinsics calls creation. This may create race conflict if the pass is
474
- // scheduled on FuncOp. A solution could be to provide an optional mutex
475
- // when building a FirOpBuilder and locking around FuncOp and GlobalOp
476
- // creation, but this needs a bit more thinking, so at this point the pass
477
- // is scheduled on the moduleOp.
478
471
mlir::ModuleOp module = this ->getOperation ();
479
472
mlir::MLIRContext *context = &getContext ();
480
473
mlir::RewritePatternSet patterns (context);
@@ -504,7 +497,3 @@ class LowerHLFIRIntrinsics
504
497
}
505
498
};
506
499
} // namespace
507
-
508
- std::unique_ptr<mlir::Pass> hlfir::createLowerHLFIRIntrinsicsPass () {
509
- return std::make_unique<LowerHLFIRIntrinsics>();
510
- }
You can’t perform that action at this time.
0 commit comments