about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2020-12-16 23:51:18 +0100
committerSimon Sapin <simon.sapin@exyr.org>2020-12-17 00:22:48 +0100
commitf365de353ad3d48b5e9269ebc373f82d5aeb19d0 (patch)
tree553cc71e9a3a448a9ae75bfa4ff8c2b7b7a00371 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parentb32e6e6ac8921035177256ab6806e6ab0d4b9b94 (diff)
downloadrust-f365de353ad3d48b5e9269ebc373f82d5aeb19d0.tar.gz
rust-f365de353ad3d48b5e9269ebc373f82d5aeb19d0.zip
Add `popcount` and `popcnt` as doc aliases for `count_ones` methods.
Integer types have a `count_ones` method that end up calling
`intrinsics::ctpop`.
On some architectures, that intrinsic is translated as a corresponding
CPU instruction know as "popcount" or "popcnt".

This PR makes it so that searching for those names in rustdoc shows those methods.

CC https://blog.rust-lang.org/2020/11/19/Rust-1.48.html#adding-search-aliases
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions