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

Upgrade to LLVM 15, support Apple M1. #1264

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Upgrade to LLVM 15, support Apple M1. #1264

wants to merge 8 commits into from

Commits on May 19, 2023

  1. Upgrade to LLVM 15, support Apple M1.

    - Upgrade to GHC 9.2.x.
      - Apple M1 support seems to be mostly mature starting in GHC 9.2.1:
        https://www.haskell.org/ghc/blog/20210309-apple-m1-story.html.
    - Upgrade to LLVM 15.
      - Use the same resolver in stack*.yaml files as llvm-hs:llvm-15 for
        consistency.
    
    `make` now works on Apple M1, albeit with compiler warnings, some of which seem
    significant.
    dan-zheng committed May 19, 2023
    Configuration menu
    Copy the full SHA
    8f0ec1e View commit details
    Browse the repository at this point in the history
  2. Fix warnings from upgrading GHC to 9.2.x.

    Fix warnings, namely -Wstar-is-type.
    
    Many -Wincomplete-uni-patterns warnings are not yet fixed.
    dan-zheng committed May 19, 2023
    Configuration menu
    Copy the full SHA
    e284526 View commit details
    Browse the repository at this point in the history
  3. Fix misc/check-no-diff on macOS.

    `diff` on macOS does not support the `--left-column` flag.
    
    Use `sdiff` (side-by-side diff) instead, which is part of diffutils.
    dan-zheng committed May 19, 2023
    Configuration menu
    Copy the full SHA
    7066d23 View commit details
    Browse the repository at this point in the history
  4. Fix CI.

    - Fix dependency versions in stack.yaml.
    - Fix dependency installation (`install_deps`) in haskell-ci.yaml and
      python-ci.yaml.
    - Run pytest with `-v` to show testcase names, for easier debugging.
    dan-zheng committed May 19, 2023
    Configuration menu
    Copy the full SHA
    16eb2f5 View commit details
    Browse the repository at this point in the history
  5. Fix GHC warnings.

    Fix all warnings except `-Wincomplete-uni-patterns` and `-Wincomplete-record-updates`,
    which were newly added to `-Wall` (starting in GHC 9.2.1).
    
    https://github.com/ghc-proposals/ghc-proposals/blob/master/proposals/0071-Wall-uni-patterns.rst
    dan-zheng committed May 19, 2023
    Configuration menu
    Copy the full SHA
    cc5c6ca View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    30b83be View commit details
    Browse the repository at this point in the history
  7. Fix tests and disable failing tests.

    - Update `llvm.memcpy` and `llvm.memset` intrinsic name mangling to use `p0`
      instead of `p0i8` as the pointer type.
      - https://releases.llvm.org/15.0.0/docs/LangRef.html#llvm-memcpy-intrinsic
    - Update expected numerical values in various tests.
    - Mark and disable failing tests with `FIXME(llvm-15)`.
    dan-zheng committed May 19, 2023
    Configuration menu
    Copy the full SHA
    857d9ef View commit details
    Browse the repository at this point in the history

Commits on May 20, 2023

  1. Configuration menu
    Copy the full SHA
    e9cb653 View commit details
    Browse the repository at this point in the history