Skip to content

[HLSL] MS-style for and while statement unroll attribute #70114

@llvm-beanz

Description

@llvm-beanz

HLSL for and while loops support Microsoft-syntax attributes. For Phase 1 we need to support parsing the unroll attribute:

https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-for
https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-graphics-hlsl-while

AC:
Investigate if we can implement the unroll attribute via the clang loophint attribute
if there are differences then additional work items will be created for later phases

Metadata

Metadata

Assignees

Labels

HLSLHLSL Language Supportclang:codegenIR generation bugs: mangling, exceptions, etc.clang:frontendLanguage frontend issues, e.g. anything involving "Sema"

Type

No type

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions