Skip to content

(How to) Determine bit width and signedness for Int values from Discriminant #793

@jberthold

Description

@jberthold

#792 sets bitwidth of Discriminant values to 0 as a sentinel and relaxes type constraints for comparison and SwitchInt.
If possible, we want to instead use the correct bit width and signedness for discriminants but it is unclear whether and how they can be obtained from the layout (it is not the tag encoding alone, or else the MIR tolerates type mismatches for assignments).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions