[Openmp-commits] [flang] [llvm] [mlir] [openmp] [MLIR][OpenMP] Add omp.fuse operation (PR #168898)
Michael Kruse via Openmp-commits
openmp-commits at lists.llvm.org
Wed Jan 21 03:24:34 PST 2026
================
@@ -3673,6 +3673,57 @@ static LogicalResult applyTile(omp::TileOp op, llvm::IRBuilderBase &builder,
return success();
}
+/// Apply a `#pragma omp fuse` / `!$omp fuse` transformation using the
+/// OpenMPIRBuilder.
+static LogicalResult applyFuse(omp::FuseOp op, llvm::IRBuilderBase &builder,
+ LLVM::ModuleTranslation &moduleTranslation) {
+ llvm::OpenMPIRBuilder *ompBuilder = moduleTranslation.getOpenMPBuilder();
+ llvm::OpenMPIRBuilder::LocationDescription loc(builder);
+
+ unsigned int first = 0;
+ unsigned int count = 0;
----------------
Meinersbur wrote:
```suggestion
int64_t first = 0;
int64_t count = 0;
```
https://github.com/llvm/llvm-project/pull/168898
More information about the Openmp-commits
mailing list