[all-commits] [llvm/llvm-project] 26c582: [DXIL] Don't generate per-variable guards for Dire...

Greg Roth via All-commits all-commits at lists.llvm.org
Wed Aug 28 14:09:05 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 26c582bb452eadc3870c56e8eae24feb354a2edf
      https://github.com/llvm/llvm-project/commit/26c582bb452eadc3870c56e8eae24feb354a2edf
  Author: Greg Roth <grroth at microsoft.com>
  Date:   2024-08-28 (Wed, 28 Aug 2024)

  Changed paths:
    M clang/lib/Basic/Targets/DirectX.h
    A clang/test/CodeGenHLSL/static-local-ctor.hlsl

  Log Message:
  -----------
  [DXIL] Don't generate per-variable guards for DirectX (#106096)

Thread init guards are generated for local static variables when using
the Microsoft CXX ABI. This ABI is also used for HLSL generation, but
DXIL doesn't need the corresponding _Init_thread_header/footer calls and
doesn't really have a way to handle them in its output targets.

This modifies the language ops when the target is DXIL to exclude this
so that they won't be generated and an alternate guardvar method is used
that is compatible with the usage.

Done to facilitate testing for #89806, but isn't really related



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list