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
rustc_abi Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00
rustc_apfloat
rustc_arena
rustc_ast
rustc_ast_lowering Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00
rustc_ast_passes
rustc_ast_pretty
rustc_attr
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
rustc_codegen_cranelift Fix rustc_index imports outside the compiler 2023-04-24 13:53:37 +00:00
rustc_codegen_gcc
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
rustc_error_codes
rustc_error_messages
rustc_errors
rustc_expand
rustc_feature
rustc_fluent_macro
rustc_fs_util
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
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
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
rustc_lint Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00
rustc_lint_defs
rustc_llvm [LLVM17] Adapt to ExplicitEmulatedTLS removal. 2023-04-24 08:45:15 +00:00
rustc_log
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
rustc_parse_format
rustc_passes Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00
rustc_plugin_impl
rustc_privacy
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
rustc_session Rollup merge of #110681 - klensy:cut-dep, r=lcnr 2023-04-25 02:33:29 +09:00
rustc_smir
rustc_span Split {Idx, IndexVec, IndexSlice} into their own modules 2023-04-24 13:53:35 +00:00
rustc_symbol_mangling
rustc_target
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
rustc_transmute
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