[llvm] [CHERI] Add a Support utility for determining alignment requirements of CHERI capabilities. (PR #197402)

Alexander Richardson via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 6 11:44:06 PDT 2026


================

----------------
arichardson wrote:

I guess you are using uint64_t instead of AddressType here to ensure that callers don't have to manually truncate for 32-bit arches?

I'd suggest we add an assertion to the implementation that the arguments are no larger than `AddressMask`.

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


More information about the llvm-commits mailing list