[all-commits] [llvm/llvm-project] 0d333b: Remove ExplicitEmulatedTLS and simplify -femulated...

Fangrui Song via All-commits all-commits at lists.llvm.org
Sun Apr 23 11:55:26 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0d333bf0e3aa37e2e6ae211e3aa80631c3e01b85
      https://github.com/llvm/llvm-project/commit/0d333bf0e3aa37e2e6ae211e3aa80631c3e01b85
  Author: Fangrui Song <i at maskray.me>
  Date:   2023-04-23 (Sun, 23 Apr 2023)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M clang/lib/CodeGen/BackendUtil.cpp
    M clang/lib/Driver/ToolChains/Clang.cpp
    M clang/lib/Driver/ToolChains/CommonArgs.cpp
    M clang/lib/Frontend/CompilerInvocation.cpp
    M clang/test/Driver/emulated-tls.cpp
    M llvm/include/llvm/CodeGen/CommandFlags.h
    M llvm/include/llvm/ExecutionEngine/Orc/JITTargetMachineBuilder.h
    M llvm/include/llvm/Target/TargetOptions.h
    M llvm/lib/CodeGen/CommandFlags.cpp
    M llvm/lib/ExecutionEngine/Orc/JITTargetMachineBuilder.cpp
    M llvm/lib/ExecutionEngine/TargetSelect.cpp
    M llvm/lib/Target/TargetMachine.cpp

  Log Message:
  -----------
  Remove ExplicitEmulatedTLS and simplify -femulated-tls handling

Currently clangDriver passes -femulated-tls and -fno-emulated-tls to cc1.
cc1 forwards the option to LLVMCodeGen and ExplicitEmulatedTLS is used
to decide the value. Simplify this by moving the Clang decision to
clangDriver and moving the LLVM decision to InitTargetOptionsFromCodeGenFlags.




More information about the All-commits mailing list