[Mlir-commits] [mlir] ed19c77 - [mlir] Fix definition of type traits struct member for some ops (#192047)

llvmlistbot at llvm.org llvmlistbot at llvm.org
Fri Apr 17 05:12:21 PDT 2026


Author: Yoni Katzuv
Date: 2026-04-17T14:12:15+02:00
New Revision: ed19c7775f6eae5be5f238adc67114330b8daf61

URL: https://github.com/llvm/llvm-project/commit/ed19c7775f6eae5be5f238adc67114330b8daf61
DIFF: https://github.com/llvm/llvm-project/commit/ed19c7775f6eae5be5f238adc67114330b8daf61.diff

LOG: [mlir] Fix definition of type traits struct member for some ops (#192047)

This commit fixes all appearences of `numLowBitsAvailable` to the
correct `NumLowBitsAvailable`. Prior to this change, instantiation of
templates like `llvm::PointerIntPair<mlir::ModuleOp, 3>` would not
compile.

See usage of `NumLowBitsAvailable`:
https://github.com/llvm/llvm-project/blob/224c429e858f8171852990a6f7b2b3590eeaffb7/llvm/include/llvm/ADT/PointerIntPair.h#L169

Added: 
    

Modified: 
    mlir/include/mlir/Dialect/Async/IR/Async.h
    mlir/include/mlir/Dialect/Func/IR/FuncOps.h
    mlir/include/mlir/Dialect/SPIRV/IR/SPIRVOps.h
    mlir/include/mlir/IR/BuiltinOps.h

Removed: 
    


################################################################################
diff  --git a/mlir/include/mlir/Dialect/Async/IR/Async.h b/mlir/include/mlir/Dialect/Async/IR/Async.h
index 015d97357144b..f16e87e71373a 100644
--- a/mlir/include/mlir/Dialect/Async/IR/Async.h
+++ b/mlir/include/mlir/Dialect/Async/IR/Async.h
@@ -67,7 +67,7 @@ struct PointerLikeTypeTraits<mlir::async::FuncOp> {
   static inline mlir::async::FuncOp getFromVoidPointer(void *p) {
     return mlir::async::FuncOp::getFromOpaquePointer(p);
   }
-  static constexpr int numLowBitsAvailable = 3;
+  static constexpr int NumLowBitsAvailable = 3;
 };
 } // namespace llvm
 

diff  --git a/mlir/include/mlir/Dialect/Func/IR/FuncOps.h b/mlir/include/mlir/Dialect/Func/IR/FuncOps.h
index 5e10a9f50b774..e12c31855e918 100644
--- a/mlir/include/mlir/Dialect/Func/IR/FuncOps.h
+++ b/mlir/include/mlir/Dialect/Func/IR/FuncOps.h
@@ -41,7 +41,7 @@ struct PointerLikeTypeTraits<mlir::func::FuncOp> {
   static inline mlir::func::FuncOp getFromVoidPointer(void *p) {
     return mlir::func::FuncOp::getFromOpaquePointer(p);
   }
-  static constexpr int numLowBitsAvailable = 3;
+  static constexpr int NumLowBitsAvailable = 3;
 };
 } // namespace llvm
 

diff  --git a/mlir/include/mlir/Dialect/SPIRV/IR/SPIRVOps.h b/mlir/include/mlir/Dialect/SPIRV/IR/SPIRVOps.h
index 4d43c7d7066ed..34e2ff388bcea 100644
--- a/mlir/include/mlir/Dialect/SPIRV/IR/SPIRVOps.h
+++ b/mlir/include/mlir/Dialect/SPIRV/IR/SPIRVOps.h
@@ -57,7 +57,7 @@ struct PointerLikeTypeTraits<mlir::spirv::FuncOp> {
   static inline mlir::spirv::FuncOp getFromVoidPointer(void *p) {
     return mlir::spirv::FuncOp::getFromOpaquePointer(p);
   }
-  static constexpr int numLowBitsAvailable = 3;
+  static constexpr int NumLowBitsAvailable = 3;
 };
 
 } // namespace llvm

diff  --git a/mlir/include/mlir/IR/BuiltinOps.h b/mlir/include/mlir/IR/BuiltinOps.h
index 1c31ef32324f5..bfecf63fe658d 100644
--- a/mlir/include/mlir/IR/BuiltinOps.h
+++ b/mlir/include/mlir/IR/BuiltinOps.h
@@ -40,7 +40,7 @@ struct PointerLikeTypeTraits<mlir::ModuleOp> {
   static inline mlir::ModuleOp getFromVoidPointer(void *p) {
     return mlir::ModuleOp::getFromOpaquePointer(p);
   }
-  static constexpr int numLowBitsAvailable = 3;
+  static constexpr int NumLowBitsAvailable = 3;
 };
 } // namespace llvm
 


        


More information about the Mlir-commits mailing list