Expand description
Procedural macros backing Carbon’s instruction-decoder collection pattern.
§Components
instruction_decoder_collection!— function-like macro that generates a sum-type enum over many program decoders plus itsInstructionDecoderCollectionimpl, dispatching onprogram_id.InstructionType— derive macro that emits a sibling*Typeenum (variant tags only) and aget_instruction_typeaccessor on the source enum.
Macros§
- instruction_
decoder_ collection - Generate a sum-type instruction enum over multiple program decoders along
with its
InstructionDecoderCollectionimpl.
Derive Macros§
- Instruction
Type - Derive a sibling
*Typeenum (variant tags only) and aget_instruction_type(&self) -> *Typeaccessor on the annotated enum.