Skip to content

Conversation

@jurahul
Copy link
Contributor

@jurahul jurahul commented Jul 15, 2025

No description provided.

@jurahul jurahul requested review from klausler and kparzysz July 15, 2025 20:30
@jurahul jurahul marked this pull request as ready for review July 15, 2025 20:31
@llvmbot
Copy link
Member

llvmbot commented Jul 15, 2025

@llvm/pr-subscribers-mlir

@llvm/pr-subscribers-flang-openmp

Author: Rahul Joshi (jurahul)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/148952.diff

1 Files Affected:

  • (modified) mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp (+1-1)
diff --git a/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp b/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
index 486935fe7341c..769aee64e1695 100644
--- a/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
+++ b/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
@@ -3867,7 +3867,7 @@ LogicalResult ScanOp::verify() {
 /// Verifies align clause in allocate directive
 
 LogicalResult AllocateDirOp::verify() {
-  std::optional<u_int64_t> align = this->getAlign();
+  std::optional<uint64_t> align = this->getAlign();
 
   if (align.has_value()) {
     if ((align.value() > 0) && !llvm::has_single_bit(align.value()))

@llvmbot
Copy link
Member

llvmbot commented Jul 15, 2025

@llvm/pr-subscribers-mlir-openmp

Author: Rahul Joshi (jurahul)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/148952.diff

1 Files Affected:

  • (modified) mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp (+1-1)
diff --git a/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp b/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
index 486935fe7341c..769aee64e1695 100644
--- a/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
+++ b/mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp
@@ -3867,7 +3867,7 @@ LogicalResult ScanOp::verify() {
 /// Verifies align clause in allocate directive
 
 LogicalResult AllocateDirOp::verify() {
-  std::optional<u_int64_t> align = this->getAlign();
+  std::optional<uint64_t> align = this->getAlign();
 
   if (align.has_value()) {
     if ((align.value() > 0) && !llvm::has_single_bit(align.value()))

Copy link
Contributor

@klausler klausler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ping me if/when it survives CI on Windows.

@zhaoshiz
Copy link
Contributor

@jurahul jurahul requested a review from klausler July 15, 2025 21:02
@raghavendhra
Copy link
Contributor

@jurahul Thank you for fixing it.

@jurahul jurahul merged commit 4aa78c7 into llvm:main Jul 15, 2025
15 checks passed
@jurahul jurahul deleted the fix_openmpdialect_error branch July 15, 2025 21:14
bonsthie pushed a commit to bonsthie/llvm-project that referenced this pull request Jul 22, 2025
steven-studio pushed a commit to steven-studio/llvm-project that referenced this pull request Sep 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants