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

Subtree sync for rustc_codegen_cranelift #130716

Merged
merged 80 commits into from
Sep 23, 2024

Commits on Aug 5, 2024

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

Commits on Aug 8, 2024

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

Commits on Aug 9, 2024

  1. Shrink TyKind::FnPtr.

    By splitting the `FnSig` within `TyKind::FnPtr` into `FnSigTys` and
    `FnHeader`, which can be packed more efficiently. This reduces the size
    of the hot `TyKind` type from 32 bytes to 24 bytes on 64-bit platforms.
    This reduces peak memory usage by a few percent on some benchmarks. It
    also reduces cache misses and page faults similarly, though this doesn't
    translate to clear cycles or wall-time improvements on CI.
    nnethercote committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    b8b3a93 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    3ea9313 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0174cb1 View commit details
    Browse the repository at this point in the history
  4. Merge branch 'sync_from_rust'

    bjorn3 committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    78abc36 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    aec3786 View commit details
    Browse the repository at this point in the history

Commits on Aug 10, 2024

  1. Configuration menu
    Copy the full SHA
    bb6571f View commit details
    Browse the repository at this point in the history
  2. Fixes in various places

    Nadrieril committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    3de829e View commit details
    Browse the repository at this point in the history
  3. Remove --debug argument of y.sh

    I rarely need a debug build of cg_clif, and even if I actually need one,
    using package overrides in Cargo.toml to only do a debug build for the
    rustc_codegen_cranelift crate works much better.
    bjorn3 committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    1b96458 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a33f731 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e55c630 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    52aa24e View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    aa918f0 View commit details
    Browse the repository at this point in the history
  8. Fix source path for portable-simd

    To avoid overriding the source for coretests every time.
    bjorn3 committed Aug 10, 2024
    Configuration menu
    Copy the full SHA
    ab1da46 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    060811a View commit details
    Browse the repository at this point in the history

Commits on Aug 11, 2024

  1. Sync from rust 730d5d4

    bjorn3 committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    65369af View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fabb298 View commit details
    Browse the repository at this point in the history
  3. Fix clean_all.sh

    bjorn3 committed Aug 11, 2024
    Configuration menu
    Copy the full SHA
    918e11d View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    b4e46de View commit details
    Browse the repository at this point in the history

Commits on Aug 12, 2024

  1. Rollup merge of rust-lang#128149 - RalfJung:nontemporal_store, r=jiey…

    …ouxu,Amanieu,Jubilee
    
    nontemporal_store: make sure that the intrinsic is truly just a hint
    
    The `!nontemporal` flag for stores in LLVM *sounds* like it is just a hint, but actually, it is not -- at least on x86, non-temporal stores need very special treatment by the programmer or else the Rust memory model breaks down. LLVM still treats these stores as-if they were normal stores for optimizations, which is [highly dubious](llvm/llvm-project#64521). Let's avoid all that dubiousness by making our own non-temporal stores be truly just a hint, which is possible on some targets (e.g. ARM). On all other targets, non-temporal stores become regular stores.
    
    ~~Blocked on rust-lang/stdarch#1541 propagating to the rustc repo, to make sure the `_mm_stream` intrinsics are unaffected by this change.~~
    
    Fixes rust-lang#114582
    Cc `@Amanieu` `@workingjubilee`
    GuillaumeGomez authored Aug 12, 2024
    Configuration menu
    Copy the full SHA
    ef74616 View commit details
    Browse the repository at this point in the history

Commits on Aug 13, 2024

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

Commits on Aug 14, 2024

  1. Auto merge of rust-lang#128812 - nnethercote:shrink-TyKind-FnPtr, r=c…

    …ompiler-errors
    
    Shrink `TyKind::FnPtr`.
    
    By splitting the `FnSig` within `TyKind::FnPtr` into `FnSigTys` and `FnHeader`, which can be packed more efficiently. This reduces the size of the hot `TyKind` type from 32 bytes to 24 bytes on 64-bit platforms. This reduces peak memory usage by a few percent on some benchmarks. It also reduces cache misses and page faults similarly, though this doesn't translate to clear cycles or wall-time improvements on CI.
    
    r? `@compiler-errors`
    bors committed Aug 14, 2024
    Configuration menu
    Copy the full SHA
    e2acda7 View commit details
    Browse the repository at this point in the history

Commits on Aug 15, 2024

  1. Sync from rust 13a5289

    bjorn3 committed Aug 15, 2024
    Configuration menu
    Copy the full SHA
    c7d43c3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    69cec6f View commit details
    Browse the repository at this point in the history

Commits on Aug 17, 2024

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

Commits on Aug 18, 2024

  1. stabilize raw_ref_op

    RalfJung committed Aug 18, 2024
    Configuration menu
    Copy the full SHA
    f1fadb8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    8e7b3b5 View commit details
    Browse the repository at this point in the history

Commits on Aug 19, 2024

  1. Sync from rust 6de928d

    bjorn3 committed Aug 19, 2024
    Configuration menu
    Copy the full SHA
    c1e7b00 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    01f8739 View commit details
    Browse the repository at this point in the history

Commits on Aug 22, 2024

  1. Sync from rust a32d4a0

    bjorn3 committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    46b7db1 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    87e74fe View commit details
    Browse the repository at this point in the history
  3. Update Cranelift to 0.111

    bjorn3 committed Aug 22, 2024
    Configuration menu
    Copy the full SHA
    19757ec View commit details
    Browse the repository at this point in the history

Commits on Aug 27, 2024

  1. Rollup merge of rust-lang#128731 - RalfJung:simd-shuffle-vector, r=wo…

    …rkingjubilee
    
    simd_shuffle intrinsic: allow argument to be passed as vector
    
    See rust-lang#128738 for context.
    
    I'd like to get rid of [this hack](https://github.com/rust-lang/rust/blob/6c0b89dfac65be9a5be12f938f23098ebc36c635/compiler/rustc_codegen_ssa/src/mir/block.rs#L922-L935). rust-lang#128537 almost lets us do that since constant SIMD vectors will then be passed as immediate arguments. However, simd_shuffle for some reason actually takes an *array* as argument, not a vector, so the hack is still required to ensure that the array becomes an immediate (which then later stages of codegen convert into a vector, as that's what LLVM needs).
    
    This PR prepares simd_shuffle to also support a vector as the `idx` argument. Once this lands, stdarch can hopefully be updated to pass `idx` as a vector, and then support for arrays can be removed, which finally lets us get rid of that hack.
    tgross35 authored Aug 27, 2024
    Configuration menu
    Copy the full SHA
    8a26d21 View commit details
    Browse the repository at this point in the history

Commits on Aug 28, 2024

  1. Sync from rust 1f12b9b

    bjorn3 committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    217b005 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    36c126f View commit details
    Browse the repository at this point in the history
  3. Fix rustc test suite

    bjorn3 committed Aug 28, 2024
    Configuration menu
    Copy the full SHA
    7e4cafb View commit details
    Browse the repository at this point in the history

Commits on Aug 30, 2024

  1. introduce PrettyPrintMirOptions for cosmetic MIR dump options

    initially starting with `-Z mir-include-spans` because we want them in
    the NLL mir dump pass
    lqd committed Aug 30, 2024
    Configuration menu
    Copy the full SHA
    0fba9b4 View commit details
    Browse the repository at this point in the history

Commits on Sep 3, 2024

  1. Sync from rust bd53aa3

    bjorn3 committed Sep 3, 2024
    Configuration menu
    Copy the full SHA
    c31f7b9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    39defb1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b7ed9ad View commit details
    Browse the repository at this point in the history

Commits on Sep 9, 2024

  1. Auto merge of rust-lang#128939 - bjorn3:windows_cg_clif_component, r=…

    …albertlarsan68
    
    Distribute rustc_codegen_cranelift for Windows
    
    With support for raw-dylib recently added to cg_clif, and inline assembly support working on Windows for quite a while now, all blockers for distributing cg_clif on Windows that I mentioned in rust-lang#81746 (comment) are fixed now.
    bors committed Sep 9, 2024
    Configuration menu
    Copy the full SHA
    cf7c055 View commit details
    Browse the repository at this point in the history

Commits on Sep 10, 2024

  1. Fix the examples in cg_clif

    scottmcm committed Sep 10, 2024
    Configuration menu
    Copy the full SHA
    fe5183e View commit details
    Browse the repository at this point in the history

Commits on Sep 11, 2024

  1. Configuration menu
    Copy the full SHA
    b4d55a8 View commit details
    Browse the repository at this point in the history
  2. Sync from rust 0ee7cb5

    bjorn3 committed Sep 11, 2024
    Configuration menu
    Copy the full SHA
    17bcb2f View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    dcae9ac View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    ade0e38 View commit details
    Browse the repository at this point in the history

Commits on Sep 12, 2024

  1. Inline prepare_stdlib into the sysroot build code

    Also reduce visibility of a couple of statics
    bjorn3 committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    45be990 View commit details
    Browse the repository at this point in the history
  2. Unconditionally use git to download test repos

    It no longer saves much download time while still complicating the code
    and requiring curl and tar to be installed.
    bjorn3 committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    1aa0cf9 View commit details
    Browse the repository at this point in the history
  3. Use plain sh for y.sh, test.sh and clean_all.sh

    FreeBSD by default doesn't install bash.
    bjorn3 committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    4e38767 View commit details
    Browse the repository at this point in the history
  4. Install git-tiny on Cirrus CI

    This avoids pulling in perl.
    bjorn3 committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    f204181 View commit details
    Browse the repository at this point in the history

Commits on Sep 13, 2024

  1. Configuration menu
    Copy the full SHA
    bc67321 View commit details
    Browse the repository at this point in the history
  2. Misc cleanups

    bjorn3 committed Sep 13, 2024
    Configuration menu
    Copy the full SHA
    d5e2e23 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    652b004 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    41f6d55 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    b7272c2 View commit details
    Browse the repository at this point in the history

Commits on Sep 14, 2024

  1. Configuration menu
    Copy the full SHA
    15848f3 View commit details
    Browse the repository at this point in the history
  2. Rename remove_dir_if_exists to ensure_empty_dir and create the dir in…

    … this function
    
    This avoids removing the directory, which may conflict with sandbox
    systems like Landlock.
    bjorn3 committed Sep 14, 2024
    Configuration menu
    Copy the full SHA
    6fbe4d9 View commit details
    Browse the repository at this point in the history

Commits on Sep 15, 2024

  1. Sync from rust 9b72238

    bjorn3 committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    ab989ac View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    61d3b59 View commit details
    Browse the repository at this point in the history
  3. Fix rustc test suite

    bjorn3 committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    c7b4998 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    cebdfe4 View commit details
    Browse the repository at this point in the history
  5. Add test for _mm_cmpestri

    bjorn3 committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    1e96021 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    16cee89 View commit details
    Browse the repository at this point in the history
  7. Fix rustc test suite

    bjorn3 committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    eee42f2 View commit details
    Browse the repository at this point in the history
  8. Use unconditional download-ci-llvm in setup_rust_fork.sh

    For whatever reason someone decided to make the default if-changed
    always checkout the llvm-project submodule, which takes a while.
    bjorn3 committed Sep 15, 2024
    Configuration menu
    Copy the full SHA
    5349365 View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2024

  1. Use associative type defaults in {Layout,FnAbi}OfHelpers.

    This avoids some repetitive boilerplate code.
    nnethercote committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    37204ee View commit details
    Browse the repository at this point in the history

Commits on Sep 19, 2024

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

Commits on Sep 21, 2024

  1. Configuration menu
    Copy the full SHA
    460abea View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    90300ef View commit details
    Browse the repository at this point in the history

Commits on Sep 22, 2024

  1. Write return value for ptr_mask intrinsic (rust-lang#1536)

    This was forgotten. Without it, ptr_mask just always returns null.
    Noratrieb authored Sep 22, 2024
    Configuration menu
    Copy the full SHA
    f5686e3 View commit details
    Browse the repository at this point in the history
  2. Sync from rust 1d68e6d

    bjorn3 committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    1d53572 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    27b21af View commit details
    Browse the repository at this point in the history
  4. Fix rustc test suite

    bjorn3 committed Sep 22, 2024
    Configuration menu
    Copy the full SHA
    ab7777f View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    02b0f3b View commit details
    Browse the repository at this point in the history

Commits on Sep 23, 2024

  1. Merge branch 'sync_from_rust'

    bjorn3 committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    faeede3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    6d35b4c View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    b40fe1e View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    9456ff1 View commit details
    Browse the repository at this point in the history
  5. Rustfmt

    bjorn3 committed Sep 23, 2024
    Configuration menu
    Copy the full SHA
    6b042f5 View commit details
    Browse the repository at this point in the history