about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2024-05-29 03:25:07 +0100
committerGitHub <noreply@github.com>2024-05-29 03:25:07 +0100
commitdb4dbc84a50f47362914965a544afd79d64a3a61 (patch)
treeb05801e1932ae7d8fdf36ee3c7147c3487c84bce /compiler/rustc_codegen_llvm/src
parent9ddcc594113d9d8a3b9181c4436b767251b876c5 (diff)
parent676fec7c651870268d47fdab098bae900fac07e4 (diff)
downloadrust-db4dbc84a50f47362914965a544afd79d64a3a61.tar.gz
rust-db4dbc84a50f47362914965a544afd79d64a3a61.zip
Rollup merge of #124251 - scottmcm:unop-ptr-metadata, r=oli-obk
Add an intrinsic for `ptr::metadata`

The follow-up to #123840, so we can remove `PtrComponents` and `PtrRepr` from libcore entirely (well, after a bootstrap update).

As discussed in <https://rust-lang.zulipchat.com/#narrow/stream/189540-t-compiler.2Fwg-mir-opt/topic/.60ptr_metadata.60.20in.20MIR/near/435637808>, this introduces `UnOp::PtrMetadata` taking a raw pointer and returning the associated metadata value.

By no longer going through a `union`, this should also help future PRs better optimize pointer operations.

r? ``@oli-obk``
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions