about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2023-05-05 17:27:59 -0700
committerJosh Stone <jistone@redhat.com>2023-05-05 17:27:59 -0700
commit67ae38a336599a7e0d2898a5ea3416b947458f5d (patch)
tree0f24046523b66ae6f70b3db3d196cf24f4f3f534 /compiler/rustc_codegen_llvm/src
parentf9a6b71580cd53dd4491d9bb6400f7ee841d9c22 (diff)
downloadrust-67ae38a336599a7e0d2898a5ea3416b947458f5d.tar.gz
rust-67ae38a336599a7e0d2898a5ea3416b947458f5d.zip
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