Skip to content

Commit c848028

Browse files
committed
[flang][OpenMP] Move lowering of ATOMIC to separate file, NFC
Reinstate commits e5559ca and 925dbc7. Fix the issues with compilation hangs by including DenseMapInfo specialization where the corresponding DenseMap was defined. Ref: #144960
1 parent b8f1228 commit c848028

File tree

5 files changed

+551
-468
lines changed

5 files changed

+551
-468
lines changed

flang/include/flang/Lower/AbstractConverter.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515

1616
#include "flang/Lower/LoweringOptions.h"
1717
#include "flang/Lower/PFTDefs.h"
18+
#include "flang/Lower/Support/Utils.h"
1819
#include "flang/Optimizer/Builder/BoxValue.h"
1920
#include "flang/Optimizer/Dialect/FIRAttr.h"
2021
#include "flang/Semantics/symbol.h"
@@ -23,6 +24,7 @@
2324
#include "mlir/IR/BuiltinOps.h"
2425
#include "mlir/IR/Operation.h"
2526
#include "llvm/ADT/ArrayRef.h"
27+
#include "llvm/ADT/DenseMap.h"
2628

2729
namespace mlir {
2830
class SymbolTable;

flang/lib/Lower/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ add_flang_library(FortranLower
2323
LoweringOptions.cpp
2424
Mangler.cpp
2525
OpenACC.cpp
26+
OpenMP/Atomic.cpp
2627
OpenMP/ClauseProcessor.cpp
2728
OpenMP/Clauses.cpp
2829
OpenMP/DataSharingProcessor.cpp

0 commit comments

Comments
 (0)