|
LLVM 23.0.0git
|
#include "llvm/Support/CHERICapabilityFormat.h"
Public Member Functions | |
| CHERICapabilityFormatBase ()=delete | |
Static Public Member Functions | |
| static LLVM_ABI AddressType | getAlignmentMask (AddressType Length) |
Returns the "alignment mask" for an allocation of size Length. | |
| static LLVM_ABI Align | getRequiredAlignment (AddressType Length) |
Returns the required alignment for an allocation of size Length. | |
| static LLVM_ABI AddressType | getRepresentableLength (AddressType Length) |
Returns Length rounded up to the nearest representable allocation length. | |
Static Public Attributes | |
| static constexpr AddressType | AddressMask = ~static_cast<AddressType>(0) |
Definition at line 18 of file CHERICapabilityFormat.h.
|
delete |
|
static |
Returns the "alignment mask" for an allocation of size Length.
This mask is 0 where the capability format alignment requires the address to be 0, and 1 otherwise.
References llvm::Length, and LLVM_ABI.
|
static |
Returns Length rounded up to the nearest representable allocation length.
Definition at line 22 of file CHERICapabilityFormat.cpp.
References llvm::Length.
|
static |
Returns the required alignment for an allocation of size Length.
Definition at line 15 of file CHERICapabilityFormat.cpp.
References AddressMask, and llvm::Length.
|
staticconstexpr |
Definition at line 21 of file CHERICapabilityFormat.h.
Referenced by getRequiredAlignment().