[all-commits] [llvm/llvm-project] 39172b: [HLSL] Cleanup TargetInfo handling (#90694)

Chris B via All-commits all-commits at lists.llvm.org
Thu May 2 15:16:19 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 39172bcfe4ca6f4db09da0f76a3e324dd3888a51
      https://github.com/llvm/llvm-project/commit/39172bcfe4ca6f4db09da0f76a3e324dd3888a51
  Author: Chris B <chris.bieneman at me.com>
  Date:   2024-05-02 (Thu, 02 May 2024)

  Changed paths:
    M clang/lib/AST/ASTContext.cpp
    M clang/lib/Basic/TargetInfo.cpp
    M clang/lib/Basic/Targets/DirectX.h
    A clang/test/SemaHLSL/Types/Arithmetic/half_size.hlsl

  Log Message:
  -----------
  [HLSL] Cleanup TargetInfo handling (#90694)

We had some odd places where we set target behaviors. We were setting
the long size in target-specific code, but it should be language-based.
We were not setting the Half float type semantics correctly, and instead
were overriding the query in the AST context.

This change it moves existing code to the right places in the Target so
that as we continue working on target and language feature they are
controlled in the right places.

It also fixes a bug where the size of `half` was computed incorrectly
when native half types are not supported.



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