[llvm] [llvm-c] Add EmulatedTLS and EnableTLSDESC to LLVMTargetMachineOptions (PR #161155)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 29 03:17:03 PDT 2025


================
@@ -40,6 +40,8 @@ struct LLVMTargetMachineOptions {
   std::optional<Reloc::Model> RM;
   std::optional<CodeModel::Model> CM;
   bool JIT;
+  bool EmulatedTLS;
+  bool EnableTLSDESC;
----------------
nikic wrote:

Hm... I think these need to be `std::optional` and only used if the corresponding functions are called? Otherwise we're not going to respect hasDefaultEmulatedTLS and hasDefaultTLSDESC anymore, right?

https://github.com/llvm/llvm-project/pull/161155


More information about the llvm-commits mailing list