rust/compiler/rustc_codegen_ssa/src
Yuki Okushi 33eb3c05c5
Rollup merge of #98214 - petrochenkov:islike, r=compiler-errors
rustc_target: Remove some redundant target properties

`is_like_emscripten` is equivalent to `os == "emscripten"`, so it's removed.
`is_like_fuchsia` is equivalent to `os == "fuchsia"`, so it's removed.
`is_like_osx` also falls into the same category and is equivalent to `vendor == "apple"`, but it's commonly used so I kept it as is for now.

`is_like_(solaris,windows,wasm)` are combinations of different operating systems or architectures (see compiler/rustc_target/src/spec/tests/tests_impl.rs) so they are also kept as is.

I think `is_like_wasm` (and maybe `is_like_osx`) are sufficiently closed sets, so we can remove these fields as well and replace them with methods like `fn is_like_wasm() { arch == "wasm32" || arch == "wasm64" }`.
On other hand, `is_like_solaris` and `is_like_windows` are sufficiently open and I can imagine custom targets introducing other values for `os`.
This is kind of a gray area.
2022-06-24 16:43:45 +09:00
..
back Rollup merge of #98214 - petrochenkov:islike, r=compiler-errors 2022-06-24 16:43:45 +09:00
coverageinfo Remove in_band_lifetimes from rustc_codegen_ssa 2021-12-15 00:41:41 -05:00
debuginfo account for endianness in debuginfo for const args 2022-06-14 16:12:34 +02:00
mir fix codegen assertion 2022-06-15 18:39:23 -07:00
traits Add llvm.type.checked.load intrinsic 2022-06-14 14:50:52 +02:00
base.rs Rollup merge of #97738 - Kixiron:zst-panic, r=eddyb 2022-06-07 11:41:08 +02:00
common.rs rustc_codegen_ssa: derive copy and clone for various enums 2022-05-25 10:34:35 +02:00
glue.rs use unchecked mul to compute slice sizes 2022-06-14 17:09:07 -04:00
lib.rs Move finish out of the Encoder trait. 2022-06-16 16:20:32 +10:00
meth.rs Add llvm.type.checked.load intrinsic 2022-06-14 14:50:52 +02:00
mono_item.rs Add codegen for global_asm! sym operands 2022-04-15 14:36:30 +01:00
target_features.rs Add some unstable target features for the wasm target codegen 2022-06-06 15:01:17 -07:00