[flang-commits] [flang] [mlir] [Flang][MLIR] Add `!$omp unroll` and `omp.unroll_heuristic` (PR #144785)

Michael Kruse via flang-commits flang-commits at lists.llvm.org
Fri Jun 20 05:21:33 PDT 2025


================
@@ -15,14 +15,10 @@
 #ifndef MLIR_DIALECT_OPENMP_OPENMPCLAUSEOPERANDS_H_
 #define MLIR_DIALECT_OPENMP_OPENMPCLAUSEOPERANDS_H_
 
+#include "mlir/Dialect/OpenMP/OpenMPOpsAttributes.h"
----------------
Meinersbur wrote:

Short answer: Make compilation succeed

Long answer: The header files that include generated sources are missing structure. When adding additional #includes (`<OpenMPInterfaces.h>` in `OpenMPDialect.h`), I either get missing definitions and when I them, I get duplication definition errors. The only resolution was to introduce new header-guard protected headers for generated sources that may need to be included multiple times.

https://github.com/llvm/llvm-project/pull/144785


More information about the flang-commits mailing list