[all-commits] [llvm/llvm-project] 0f1898: [NFC] Cleanup and sort hlsl_intrinsics.h (#72414)

Chris B via All-commits all-commits at lists.llvm.org
Mon Nov 27 13:22:50 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0f189840a9a8268664c9e6d4701bf35d9a19fd5f
      https://github.com/llvm/llvm-project/commit/0f189840a9a8268664c9e6d4701bf35d9a19fd5f
  Author: Chris B <chris.bieneman at me.com>
  Date:   2023-11-27 (Mon, 27 Nov 2023)

  Changed paths:
    M clang/lib/Headers/hlsl/hlsl_intrinsics.h

  Log Message:
  -----------
  [NFC] Cleanup and sort hlsl_intrinsics.h (#72414)

This is just a simple cleanup of hlsl_intrinsics.h. I've broken this
into two commits to make it easier to follow during review. The first
commit replaces the `__attribute__` annotations with preprocessor macros
to make it easier to read the function declarations. The second commit
sorts the function declarations.

Function declarations are sorted by function name alphabetically, then
grouped by base element type. The declarations within each group are
sorted in increasing order by number of elements, and the groups
themselves are sorted by increasing element size. For elements of the
same size they are then sorted by signed integers, then unsigned
integers then floating point.




More information about the All-commits mailing list