[all-commits] [llvm/llvm-project] f2d995: [HLSL] Correctly set `__HLSL_ENABLE_16_BIT` (#89788)

Chris B via All-commits all-commits at lists.llvm.org
Thu Apr 25 13:36:42 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f2d99506950f1863015137c1185c745b875ad9fb
      https://github.com/llvm/llvm-project/commit/f2d99506950f1863015137c1185c745b875ad9fb
  Author: Chris B <chris.bieneman at me.com>
  Date:   2024-04-25 (Thu, 25 Apr 2024)

  Changed paths:
    M clang/lib/Frontend/InitPreprocessor.cpp
    M clang/test/Preprocessor/predefined-macros-hlsl.hlsl

  Log Message:
  -----------
  [HLSL] Correctly set `__HLSL_ENABLE_16_BIT` (#89788)

The preprocessor define `__HLSL_ENABLE_16_BIT` should be set to 1 if
native 16-bit types are enabled and not set if they are not.

Previously we were setting the value to match the HLSL active language
version, and we had no test coverage verifing the value was set and not
set as expected.

Fixes #89787



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