[clang] [HLSL] add loop unroll (PR #93879)

Chris B via cfe-commits cfe-commits at lists.llvm.org
Mon Jun 3 11:43:21 PDT 2024


================

----------------
llvm-beanz wrote:

Can you also add some tests for nested loops?

Cases like:
```hlsl
[unroll]
for( int i = 0; i < 100; ++i) { // unroll this
  for( int j = 0; j < 100; ++j) { // but not this
  }
}
```

https://github.com/llvm/llvm-project/pull/93879


More information about the cfe-commits mailing list