Skip to content

Subtree sync for rustc_codegen_cranelift #120395

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

Merged
merged 36 commits into from
Jan 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
0cfbc47
Merge commit '6d355f6844323db03bfd608899613e363e701951' into sync_cg_…
bjorn3 Dec 31, 2023
0c72b43
Merge branch 'sync_from_rust'
bjorn3 Dec 31, 2023
c427754
Add platform support matrix
bjorn3 Jan 2, 2024
45d8c12
Return architecturally mandated target features to rustc
bjorn3 Jan 2, 2024
3b8794e
Fix xmm operands in inline assembly
bjorn3 Jan 3, 2024
c8f5d35
Restructure x86 signed pack instructions
Noratrieb Jan 2, 2024
22019db
Mention correctness test
Noratrieb Jan 3, 2024
b3b36e9
Merge pull request #1443 from Nilstrieb/x86-signed-pack
bjorn3 Jan 3, 2024
6fea128
Use `rust-analyzer.rustc.source` to get r-a working with rustc
Noratrieb Jan 3, 2024
b0250fc
Merge pull request #1444 from Nilstrieb/ra-rustc
bjorn3 Jan 4, 2024
74987d0
fix a couple of clippy warnings
matthiaskrgr Jan 5, 2024
f69c2e7
Merge pull request #1445 from matthiaskrgr/clippy_jan2024
bjorn3 Jan 6, 2024
837c030
Update test for `E0796` and `static_mut_ref` lint
obeis Dec 22, 2023
e6570dc
Use chaining for `DiagnosticBuilder` construction and `emit`.
nnethercote Jan 3, 2024
2b3cd46
Improved support of collapse_debuginfo attribute for macros.
azhogin Nov 29, 2023
a2a9032
Rollup merge of #118903 - azhogin:azhogin/skip_second_stmt_debuginfo.…
matthiaskrgr Jan 8, 2024
18e12dc
Rollup merge of #117556 - obeis:static-mut-ref-lint, r=davidtwco
GuillaumeGomez Jan 9, 2024
0dc13d7
Implement _mm_prefetch as nop
bjorn3 Jan 9, 2024
c887530
deps: deduplicate the version of libloading used
nagisa Jan 10, 2024
be1b86f
Format sources into the error message when loading codegen backends
nagisa Jan 10, 2024
f40f996
compiler: Lower fn call arg spans down to MIR
Enselic Jan 12, 2024
d390c00
Rollup merge of #119815 - nagisa:nagisa/polishes-libloading-use-somew…
matthiaskrgr Jan 19, 2024
9ab8588
Sync from rust 4cb17b4e78e0540e49d2da884cc621a6bf6f47fa
bjorn3 Jan 21, 2024
60ef392
Rustup to rustc 1.77.0-nightly (4cb17b4e7 2024-01-20)
bjorn3 Jan 21, 2024
24361a1
Fix portable-simd tests
bjorn3 Jan 21, 2024
0c83e43
Do not normalize closure signature when building FnOnce shim
compiler-errors Jan 19, 2024
55e04d5
Further Implement `is_val_statically_known`
NCGThompson Jan 23, 2024
50a067d
Auto merge of #119911 - NCGThompson:is-statically-known, r=oli-obk
bors Jan 25, 2024
7d3b293
Use sess.cfg_version instead of rustc_version_str()
bjorn3 Jan 25, 2024
1fba58e
Update actions/checkout and actions/cache
bjorn3 Jan 26, 2024
dc7ed16
Update to Cranelift 0.104
bjorn3 Jan 11, 2024
604c8a7
Accept [u8; N] bitmasks in simd_select_bitmask
bjorn3 Jan 26, 2024
f786179
Update rand test
bjorn3 Jan 26, 2024
dff600d
Sync from rust 5bd5d214effd494f4bafb29b3a7a2f6c2070ca5c
bjorn3 Jan 26, 2024
3e50cf6
Rustup to rustc 1.77.0-nightly (5bd5d214e 2024-01-25)
bjorn3 Jan 26, 2024
3701802
Merge commit '3e50cf65025f96854d6597e80449b0d64ad89589' into sync_cg_…
bjorn3 Jan 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,14 @@ jobs:
TARGET_TRIPLE: x86_64-pc-windows-gnu

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: CPU features
if: matrix.os == 'ubuntu-latest'
run: cat /proc/cpuinfo

- name: Cache cargo target dir
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: build/cg_clif
key: ${{ runner.os }}-${{ matrix.env.TARGET_TRIPLE }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: |
sed -i 's/components.*/components = []/' rust-toolchain
echo 'profile = "minimal"' >> rust-toolchain
Expand Down
18 changes: 9 additions & 9 deletions compiler/rustc_codegen_cranelift/.github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
timeout-minutes: 10

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Avoid installing rustc-dev
run: |
Expand Down Expand Up @@ -64,14 +64,14 @@ jobs:
TARGET_TRIPLE: x86_64-pc-windows-gnu

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: CPU features
if: matrix.os == 'ubuntu-latest'
run: cat /proc/cpuinfo

- name: Cache cargo target dir
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: build/cg_clif
key: ${{ runner.os }}-${{ matrix.env.TARGET_TRIPLE }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }}
Expand Down Expand Up @@ -138,7 +138,7 @@ jobs:
shell: bash

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: CPU features
run: cat /proc/cpuinfo
Expand All @@ -164,13 +164,13 @@ jobs:
shell: bash

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: CPU features
run: cat /proc/cpuinfo

- name: Cache cargo target dir
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: build/cg_clif
key: ${{ runner.os }}-x86_64-unknown-linux-gnu-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }}
Expand Down Expand Up @@ -221,10 +221,10 @@ jobs:
TARGET_TRIPLE: x86_64-pc-windows-gnu

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Cache cargo target dir
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: build/cg_clif
key: ${{ runner.os }}-${{ matrix.env.TARGET_TRIPLE }}-dist-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }}
Expand Down Expand Up @@ -276,7 +276,7 @@ jobs:
cancel-in-progress: true

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Download all built artifacts
uses: actions/download-artifact@v4
Expand Down
8 changes: 4 additions & 4 deletions compiler/rustc_codegen_cranelift/.github/workflows/rustc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ jobs:
timeout-minutes: 60

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: CPU features
run: cat /proc/cpuinfo

- name: Cache cargo target dir
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: build/cg_clif
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }}
Expand All @@ -32,13 +32,13 @@ jobs:
timeout-minutes: 60

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: CPU features
run: cat /proc/cpuinfo

- name: Cache cargo target dir
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: build/cg_clif
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('rust-toolchain', '**/Cargo.lock') }}
Expand Down
3 changes: 2 additions & 1 deletion compiler/rustc_codegen_cranelift/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
{
"editor.formatOnSave": true,

// source for rustc_* is not included in the rust-src component; disable the errors about this
// in case rustc.source is disabled for performance reasons; disable the errors about this
"rust-analyzer.diagnostics.disabled": ["unresolved-extern-crate", "unresolved-macro-call"],
"rust-analyzer.rustc.source": "discover",
"rust-analyzer.imports.granularity.enforce": true,
"rust-analyzer.imports.granularity.group": "module",
"rust-analyzer.imports.prefix": "crate",
Expand Down
Loading