about summary refs log tree commit diff
path: root/compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
diff options
context:
space:
mode:
authorYuki Okushi <huyuumi.dev@gmail.com>2020-12-17 11:44:12 +0900
committerGitHub <noreply@github.com>2020-12-17 11:44:12 +0900
commite4735ddec01551d3f7b3d4d76527d2d0bb70e242 (patch)
tree22abf9c91374ce7d9d736e50bb4323dfe8676757 /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp
parent5ce62da43bd66b03b9550d31fb180915f40cd473 (diff)
parentf365de353ad3d48b5e9269ebc373f82d5aeb19d0 (diff)
downloadrust-e4735ddec01551d3f7b3d4d76527d2d0bb70e242.tar.gz
rust-e4735ddec01551d3f7b3d4d76527d2d0bb70e242.zip
Rollup merge of #80097 - SimonSapin:popcount, r=m-ou-se
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