Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MIR unified ADTs #30890

Merged
merged 4 commits into from
Jan 15, 2016
Merged

MIR unified ADTs #30890

merged 4 commits into from
Jan 15, 2016

Commits on Jan 15, 2016

  1. Generate ADTs for tuple-like constructors instead

    Previously we would generate regular calls for these, which is likely to result in worse LLVM code,
    especially in presence of cleanups – we needn’t unecessarilly generate landing pads to construct an
    ADT!
    nagisa committed Jan 15, 2016
    Configuration menu
    Copy the full SHA
    4b17e2b View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ac16d32 View commit details
    Browse the repository at this point in the history
  3. Fix type retrieval for Switch translation

    Previously it would go through def_id and retrieve a type that’s not always correct, monomorphized,
    etc.
    nagisa committed Jan 15, 2016
    Configuration menu
    Copy the full SHA
    52ffeda View commit details
    Browse the repository at this point in the history
  4. Add some tests for non-trivial ADTs

    These tests test building and matching some non-trivial ADT configurations such as C-like enums and
    packed structs.
    nagisa committed Jan 15, 2016
    Configuration menu
    Copy the full SHA
    7d6da8e View commit details
    Browse the repository at this point in the history