CRTP base for CHERI capability format helpers.
Declared in <llvm/Support/CHERICapabilityFormat.h>
template<
typename Derived,
typename AddressType>
struct CHERICapabilityFormatBase;
Provides static utilities for alignment masks, required alignments, and representable lengths for a concrete capability encoding.
| Name | Description |
|---|---|
CHERICapabilityFormatBase [constructor] [deleted] | Deleted; this type exposes only static members. |
| Name | Description |
|---|---|
getAlignmentMask | Returns the alignment mask for an allocation of size Length. |
getRepresentableLength | Returns Length rounded up to the nearest representable allocation length. |
getRequiredAlignment | Returns the required alignment for an allocation of size Length. |
| Name | Description |
|---|---|
AddressMask | Bitmask with all bits of AddressType set. |
| Name | Description |
|---|---|
CHERIoTCapabilityFormat | CHERIoT compressed capability format helpers. |
RVYCapabilityFormat | RISC-V Y (CHERI) compressed capability format. |
| Name | Description |
|---|---|
| Derived | Concrete format that implements getAlignmentMaskImpl. |
| AddressType | Unsigned integer type for addresses and lengths. |