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

Name

Description

CHERICapabilityFormatBase<RVYCapabilityFormat<AddressType, MW, MAX_E>, AddressType>

CRTP base for CHERI capability format helpers.

Static Member Functions

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.

Static Data Members

Name

Description

AddressMask

Bitmask with all bits of AddressType set.

Friends

Name

Description

llvm::CHERICapabilityFormatBase

CRTP base for CHERI capability format helpers.

Template Parameters

Name

Description

AddressType

Unsigned integer type for addresses and lengths.

MW

Mantissa width in bits.

MAX_E

Maximum representable exponent.

Created with MrDocs