]> git.lizzy.rs Git - rust.git/commit
Extract some intrinsics out of rustc_codegen_llvm
authorkhyperia <github@khyperia.com>
Tue, 15 Sep 2020 21:35:31 +0000 (23:35 +0200)
committerkhyperia <github@khyperia.com>
Tue, 15 Sep 2020 21:35:31 +0000 (23:35 +0200)
commit21b0c1286a1f01cb8a21bda0973833ca11889364
treef541d19f9422521e0368fedd4af732f500303f5d
parenta874956d940ecb3ed524b6176a171219ac4787ea
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.
compiler/rustc_codegen_llvm/src/intrinsic.rs
compiler/rustc_codegen_ssa/src/mir/block.rs
compiler/rustc_codegen_ssa/src/mir/intrinsic.rs [new file with mode: 0644]
compiler/rustc_codegen_ssa/src/mir/mod.rs