rust/compiler
Matthias Krüger 7e143e9043
Rollup merge of #110755 - TimNN:exp-tls, r=durin42
[LLVM17] Adapt to `ExplicitEmulatedTLS` removal.

0d333bf0e3 removed the `ExplicitEmulatedTLS` field from `TargetOptions`.

Before that commit, `TargetMachine::useEmulatedTLS()` fell back to `TheTriple.hasDefaultEmulatedTLS()` if `ExplicitEmulatedTLS` was `false`/unset.

After that commit, `TargetMachine::useEmulatedTLS()` directly returns `Options.EmulatedTLS`, and the fallback to `TheTriple.hasDefaultEmulatedTLS()` was moved to `InitTargetOptionsFromCodeGenFlags`.

Since `rustc` does not use `InitTargetOptionsFromCodeGenFlags` (AFAICT) and instead manually builds `TargetOptions`, this PR initializes `EmulatedTLS` to `TheTriple.hasDefaultEmulatedTLS()`.

(I'm not really familiar with the details of what this option does, or if there are any tests that depend on `hasDefaultEmulatedTLS` being used correctly, so this PR is mostly untested (it does compile against LLVM17, though)).

`@rustbot` label: +llvm-main
2023-04-25 06:46:49 +02:00
..
rustc fix link 2023-03-11 10:53:47 -06:00
rustc_abi Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00
rustc_apfloat
rustc_arena Allow clippy::from_mut_ref 2023-04-09 22:29:56 +02:00
rustc_ast use P<[Ident]> instead of Vec<Ident> 2023-04-21 02:14:03 -07:00
rustc_ast_lowering Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00
rustc_ast_passes Auto merge of #110407 - Nilstrieb:fluent-macro, r=davidtwco 2023-04-19 08:26:47 +00:00
rustc_ast_pretty minor tweaks 2023-04-21 02:14:04 -07:00
rustc_attr Add rustc_fluent_macro to decouple fluent from rustc_macros 2023-04-18 18:56:22 +00:00
rustc_baked_icu_data
rustc_borrowck Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00
rustc_builtin_macros Auto merge of #109507 - Amanieu:panic-oom-payload, r=davidtwco 2023-04-22 12:27:45 +00:00
rustc_codegen_cranelift Fix rustc_index imports outside the compiler 2023-04-24 13:53:37 +00:00
rustc_codegen_gcc Auto merge of #109507 - Amanieu:panic-oom-payload, r=davidtwco 2023-04-22 12:27:45 +00:00
rustc_codegen_llvm Rollup merge of #110681 - klensy:cut-dep, r=lcnr 2023-04-25 02:33:29 +09:00
rustc_codegen_ssa Rollup merge of #110681 - klensy:cut-dep, r=lcnr 2023-04-25 02:33:29 +09:00
rustc_const_eval Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00
rustc_data_structures Rollup merge of #110681 - klensy:cut-dep, r=lcnr 2023-04-25 02:33:29 +09:00
rustc_driver
rustc_driver_impl Remove WithOptconstParam. 2023-04-20 17:48:32 +00:00
rustc_error_codes Spelling - compiler 2023-04-17 16:09:18 -04:00
rustc_error_messages Add rustc_fluent_macro to decouple fluent from rustc_macros 2023-04-18 18:56:22 +00:00
rustc_errors Rollup merge of #110578 - bvanjoi:fix-issue-110547, r=jackh726 2023-04-21 06:44:30 +02:00
rustc_expand Auto merge of #109002 - michaelvanstraten:master, r=petrochenkov 2023-04-21 10:47:27 +00:00
rustc_feature Auto merge of #109507 - Amanieu:panic-oom-payload, r=davidtwco 2023-04-22 12:27:45 +00:00
rustc_fluent_macro Remove unused synstructure dep 2023-04-22 22:03:33 +01:00
rustc_fs_util Add try_canonicalize to rustc_fs_util and use it over fs::canonicalize 2023-03-16 21:50:23 +01:00
rustc_graphviz
rustc_hir Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00
rustc_hir_analysis Rollup merge of #110681 - klensy:cut-dep, r=lcnr 2023-04-25 02:33:29 +09:00
rustc_hir_pretty minor tweaks 2023-04-21 02:14:04 -07:00
rustc_hir_typeck Rollup merge of #110563 - bryangarza:refactor-trait-selection-error-reporting, r=compiler-errors 2023-04-25 06:46:48 +02:00
rustc_incremental Auto merge of #110407 - Nilstrieb:fluent-macro, r=davidtwco 2023-04-19 08:26:47 +00:00
rustc_index Decorative changes to IndexVec 2023-04-24 13:53:37 +00:00
rustc_infer Rollup merge of #110563 - bryangarza:refactor-trait-selection-error-reporting, r=compiler-errors 2023-04-25 06:46:48 +02:00
rustc_interface Rollup merge of #110681 - klensy:cut-dep, r=lcnr 2023-04-25 02:33:29 +09:00
rustc_lexer Revert "Don't recover lifetimes/labels containing emojis as character literals" 2023-04-10 06:52:41 +00:00
rustc_lint Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00
rustc_lint_defs Spelling - compiler 2023-04-17 16:09:18 -04:00
rustc_llvm [LLVM17] Adapt to ExplicitEmulatedTLS removal. 2023-04-24 08:45:15 +00:00
rustc_log Stabilize IsTerminal 2023-04-10 17:24:23 +09:00
rustc_macros Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00
rustc_metadata Rollup merge of #110681 - klensy:cut-dep, r=lcnr 2023-04-25 02:33:29 +09:00
rustc_middle Rollup merge of #110750 - scottmcm:vardebug-size, r=cjgillot 2023-04-25 02:33:31 +09:00
rustc_mir_build Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00
rustc_mir_dataflow Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00
rustc_mir_transform Rollup merge of #110685 - cjgillot:clean-dcp, r=oli-obk 2023-04-25 02:33:30 +09:00
rustc_monomorphize Rollup merge of #110681 - klensy:cut-dep, r=lcnr 2023-04-25 02:33:29 +09:00
rustc_parse Auto merge of #110407 - Nilstrieb:fluent-macro, r=davidtwco 2023-04-19 08:26:47 +00:00
rustc_parse_format Fix typos in compiler 2023-04-10 22:02:52 +02:00
rustc_passes Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00
rustc_plugin_impl Add rustc_fluent_macro to decouple fluent from rustc_macros 2023-04-18 18:56:22 +00:00
rustc_privacy Add rustc_fluent_macro to decouple fluent from rustc_macros 2023-04-18 18:56:22 +00:00
rustc_query_impl Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00
rustc_query_system Rollup merge of #110681 - klensy:cut-dep, r=lcnr 2023-04-25 02:33:29 +09:00
rustc_resolve Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00
rustc_serialize Remove f32 & f64 from MemDecoder/MemEncoder 2023-04-06 00:54:07 -07:00
rustc_session Rollup merge of #110681 - klensy:cut-dep, r=lcnr 2023-04-25 02:33:29 +09:00
rustc_smir Add Call terminator to SMIR 2023-04-20 12:00:41 -03:00
rustc_span Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00
rustc_symbol_mangling Allow LocalDefId as the argument to def_path_str 2023-04-21 22:27:20 +00:00
rustc_target drop unused deps, gate libc under unix for one crate 2023-04-22 15:22:21 +03:00
rustc_trait_selection Rollup merge of #110563 - bryangarza:refactor-trait-selection-error-reporting, r=compiler-errors 2023-04-25 06:46:48 +02:00
rustc_traits drop unused deps, gate libc under unix for one crate 2023-04-22 15:22:21 +03:00
rustc_transmute Erase regions when confirming transmutability candidate 2023-04-16 19:12:34 +00:00
rustc_ty_utils Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00
rustc_type_ir Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00