llvm::RVYCapabilityFormat

RISC-V Y (CHERI) compressed capability format.

Synopsis

Declared in <llvm/Support/CHERICapabilityFormat.h>

template<
    typename AddressType,
    unsigned int MW,
    unsigned int MAX_E>
struct RVYCapabilityFormat
    : CHERICapabilityFormatBase<RVYCapabilityFormat<AddressType, MW, MAX_E>, AddressType>

Base Classes

NameDescription
CHERICapabilityFormatBase<RVYCapabilityFormat<AddressType, MW, MAX_E>, AddressType>CRTP base for CHERI capability format helpers.

Static Member Functions

NameDescription
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.

Static Data Members

NameDescription
AddressMask Bitmask with all bits of AddressType set.

Friends

NameDescription
llvm::CHERICapabilityFormatBaseCRTP base for CHERI capability format helpers.

Template Parameters

NameDescription
AddressTypeUnsigned integer type for addresses and lengths.
MWMantissa width in bits.
MAX_EMaximum representable exponent.