Skip to content

Expand optional niche layout beyond raw pointers #30

Description

@itsfuad

Goal

Grow optional niche layout while keeping tagged fallback.

Scope

  • Keep one niche checker at layout/backend boundary.
  • Add non-pointer cases only when invalid representation is compiler-known and ABI-safe.
  • Consider unsigned, floats, structs, and arrays.
  • Keep source ?T semantics independent from layout choice.

Validation

  • Backend layout tests.
  • Optional value lowering tests for niche and fallback.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestlanguage-modelPeeper language model, ownership, pointer, optional, array/slice workruntime-loweringHIR/MIR/backend runtime lowering work

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions