sun::codegen::exceptions
namespace · Source (opens in a new tab)
Generates native exception handling and ownership cleanup.
Defines generated exception layouts shared by lowering and TLS emission.
Lowers source exceptions to bounded storage and table-based native unwinding.
Connects exception generation to the shared expression visitor and scope manager.
Declares complete exception storage types for a program's trace capacity.
Generates exception storage shared by lowering and native TLS emission.
Generates unsafe scopes and call cleanup.
Generates exception descriptors, transfer operations, and handler tables.
Generates complete storage compatible with the precompiled runtime.
Classes
Structs
Functions
recordThrowSource
public · function · static · Source (opens in a new tab)
static void sun::codegen::exceptions::recordThrowSource(Module &module, const sun::support::Position &location, const std::string &typeName)Names the target-independent layout contract shared with the native runtime.
Records the source spelling of a throw for the compiler's address index.
Related: sun::support::Position
storageTypes
public · function · Source (opens in a new tab)
StorageTypes sun::codegen::exceptions::storageTypes(llvm::Module &module, unsigned depth)Returns depth-specific structs containing inline trace arrays.
Defines depth-specific structs whose offsets match the precompiled runtime.
Rejects unsupported capacities or layouts that disagree with the native ABI. Callers must allocate storage with the exception ABI's alignment.
Explicit padding preserves the native ABI even for odd or zero capacities. Allocations of these types must use the exception ABI's alignment.
Related: StorageTypes