[all-commits] [llvm/llvm-project] 4bab03: [HLSL] Add __builtin_hlsl_is_scalarized_layout_com...

Chris B via All-commits all-commits at lists.llvm.org
Mon Aug 26 10:32:07 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4bab0387e9be3683a36b5ab0412b25fbab632aa5
      https://github.com/llvm/llvm-project/commit/4bab0387e9be3683a36b5ab0412b25fbab632aa5
  Author: Chris B <chris.bieneman at me.com>
  Date:   2024-08-26 (Mon, 26 Aug 2024)

  Changed paths:
    M clang/include/clang/Basic/TokenKinds.def
    M clang/include/clang/Sema/SemaHLSL.h
    M clang/lib/Sema/SemaExprCXX.cpp
    M clang/lib/Sema/SemaHLSL.cpp
    A clang/test/SemaHLSL/Types/Traits/ScalarizedLayoutCompatible.hlsl
    A clang/test/SemaHLSL/Types/Traits/ScalarizedLayoutCompatibleErrors.hlsl

  Log Message:
  -----------
  [HLSL] Add __builtin_hlsl_is_scalarized_layout_compatible (#102227)

HLSL tends to rely pretty aggressively on scalarization occuring in the
complier, which allows for some relaxed language behaviors when types
are fully sclarized to equivalent scalar representations.

This change adds a new queryable trait builtin for scalarized layout
compatability.

Resolves #100614

---------

Co-authored-by: Aaron Ballman <aaron at aaronballman.com>



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