diff options
author | Farzon Lotfi <1802579+farzonl@users.noreply.github.com> | 2024-07-11 17:08:13 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-11 17:08:13 -0400 |
commit | 92fc1eb0c1ae3813f2ac9208e2c74207aae9d23f (patch) | |
tree | 9457a5ad3c489ea85629fbe4509e6a6ef82d8231 /llvm/lib/Analysis/ModuleSummaryAnalysis.cpp | |
parent | 8901c1c2801018ec3efa042a3acc8bada7b790e3 (diff) | |
download | llvm-92fc1eb0c1ae3813f2ac9208e2c74207aae9d23f.zip llvm-92fc1eb0c1ae3813f2ac9208e2c74207aae9d23f.tar.gz llvm-92fc1eb0c1ae3813f2ac9208e2c74207aae9d23f.tar.bz2 |
[HLSL] add loop unroll (#93879)
spec: https://github.com/microsoft/hlsl-specs/pull/263
- `Attr.td` - Define the HLSL loop attribute hints (unroll and loop)
- `AttrDocs.td` - Add documentation for unroll and loop
- `CGLoopInfo.cpp` - Add codegen for HLSL unroll that maps to clang
unroll expectations
- `ParseStmt.cpp` - For statements if HLSL define DeclSpecAttrs via
MaybeParseMicrosoftAttributes
- `SemaStmtAttr.cpp` - Add the HLSL loop unroll handeling
resolves #70114
dxc examples:
- for loop: https://hlsl.godbolt.org/z/8EK6Pa139
- while loop: https://hlsl.godbolt.org/z/ebr5MvEcK
- do while: https://hlsl.godbolt.org/z/be8cedoTs
Documentation:

Diffstat (limited to 'llvm/lib/Analysis/ModuleSummaryAnalysis.cpp')
0 files changed, 0 insertions, 0 deletions