about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2020-09-20 12:08:13 +0200
committerGitHub <noreply@github.com>2020-09-20 12:08:13 +0200
commit2911b8cb30cf4fed41a6d6dba4fb0076b6a82e93 (patch)
tree42dda65eb7ed4708d8d856dcd82cd4b0e51b7f8c /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parentf5e19a355a2a16e0ed122e3f7728490b9e6357b8 (diff)
parent21b0c1286a1f01cb8a21bda0973833ca11889364 (diff)
downloadrust-2911b8cb30cf4fed41a6d6dba4fb0076b6a82e93.tar.gz
rust-2911b8cb30cf4fed41a6d6dba4fb0076b6a82e93.zip
Rollup merge of #76766 - khyperia:generic_intrinsics, r=eddyb
Extract some intrinsics out of rustc_codegen_llvm

A significant amount of intrinsics do not actually need backend-specific behaviors to be implemented, instead relying on methods already in rustc_codegen_ssa. So, extract those methods out to rustc_codegen_ssa, so that each backend doesn't need to reimplement the same code.

Almost everything should be a pretty direct translation. A notable not-direct-translation is `add_with_overflow` and friends being changed to `bx.checked_binop`, but it's pretty simple.

I could have been a lot more aggressive here and pulled out way more methods, and add a few new methods in the rustc_codegen_ssa "API". However, because this is my second rustc PR, I thought that moving those to a follow-up PR and doing more incremental changes here would be better (and I guess ask if this work is even desired in the first place). I'm hoping to eventually remove the mess of intrinsic handling in the backend entirely, which would be hecking fantastic :sparkles:
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions