about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-05-06 23:32:03 +0200
committerGitHub <noreply@github.com>2023-05-06 23:32:03 +0200
commitecc061596746dd5902cd29f64b61003b35cf8904 (patch)
tree03a33257d4a1b86d6faf59fa20bc4c4eb817fd99 /compiler/rustc_codegen_llvm/src
parenta3af5325185a07bb1f4004c51d20302204dd5f0e (diff)
parent67ae38a336599a7e0d2898a5ea3416b947458f5d (diff)
downloadrust-ecc061596746dd5902cd29f64b61003b35cf8904.tar.gz
rust-ecc061596746dd5902cd29f64b61003b35cf8904.zip
Rollup merge of #111274 - cuviper:print-target-cpus, r=Mark-Simulacrum
Expand the LLVM coverage of `--print target-cpus`

We've been relying on a custom patch to add `MCSubtargetInfo::getCPUTable`
for `rustc --print target-cpus`, and just printing that it's not supported
on external LLVM builds. LLVM `main` now has `getAllProcessorDescriptions`
that can replace ours, so now we try to use that. In addition, the fallback
path can at least print the native and default cpu options.

There were also some mismatches in the function signatures here between
`LLVM_RUSTLLVM` and otherwise; this is now mitigated by sharing these
functions and only using cpp to adjust the function bodies.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions