[Mlir-commits] [mlir] a2615ad - [mlir] Align mlir::Block (#106717)
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Fri Aug 30 08:58:44 PDT 2024
Author: JoelWee
Date: 2024-08-30T16:58:41+01:00
New Revision: a2615ad45c73095dfda6ae546de107aacb10cbb7
URL: https://github.com/llvm/llvm-project/commit/a2615ad45c73095dfda6ae546de107aacb10cbb7
DIFF: https://github.com/llvm/llvm-project/commit/a2615ad45c73095dfda6ae546de107aacb10cbb7.diff
LOG: [mlir] Align mlir::Block (#106717)
This fixes an error from the LatticeAnchor PointerUnion with
ProgramPoint in b6603e1bf1
```
third_party/llvm/llvm-project/llvm/include/llvm/ADT/PointerIntPair.h:172:17: error: static assertion failed due to requirement '2U <= PointerUnionUIntTraits<mlir::GenericLatticeAnchor *, mlir::ProgramPoint, mlir::Value>::NumLowBitsAvailable': PointerIntPair with integer size too large for pointer
172 | static_assert(IntBits <= PtrTraits::NumLowBitsAvailable,
```
Added:
Modified:
mlir/include/mlir/IR/Block.h
Removed:
################################################################################
diff --git a/mlir/include/mlir/IR/Block.h b/mlir/include/mlir/IR/Block.h
index e4fddfcb7608e6..67825eb1704bbe 100644
--- a/mlir/include/mlir/IR/Block.h
+++ b/mlir/include/mlir/IR/Block.h
@@ -27,8 +27,8 @@ template <typename ValueRangeT>
class ValueTypeRange;
/// `Block` represents an ordered list of `Operation`s.
-class Block : public IRObjectWithUseList<BlockOperand>,
- public llvm::ilist_node_with_parent<Block, Region> {
+class alignas(8) Block : public IRObjectWithUseList<BlockOperand>,
+ public llvm::ilist_node_with_parent<Block, Region> {
public:
explicit Block() = default;
~Block();
More information about the Mlir-commits
mailing list