diff options
author | joaosaffran <126493771+joaosaffran@users.noreply.github.com> | 2025-01-06 10:27:02 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-06 10:27:02 -0800 |
commit | 0d5c07285f79a2135730c919c7e7b8e2bd9118e7 (patch) | |
tree | 556f05fa0de7465144740c98972d640b581edc05 /clang/lib/CodeGen/CodeGenFunction.h | |
parent | 2d53eaff4aee73605170ce9910cde68fa7a300b2 (diff) | |
download | llvm-0d5c07285f79a2135730c919c7e7b8e2bd9118e7.zip llvm-0d5c07285f79a2135730c919c7e7b8e2bd9118e7.tar.gz llvm-0d5c07285f79a2135730c919c7e7b8e2bd9118e7.tar.bz2 |
[HLSL] Adding Flatten and Branch if attributes (#116331)
- adding Flatten and Branch to if stmt.
- adding dxil control flow hint metadata generation
- modifing spirv OpSelectMerge to account for the specific attributes.
Closes #70112
---------
Co-authored-by: Joao Saffran <jderezende@microsoft.com>
Co-authored-by: joaosaffran <joao.saffran@microsoft.com>
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.h')
-rw-r--r-- | clang/lib/CodeGen/CodeGenFunction.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenFunction.h b/clang/lib/CodeGen/CodeGenFunction.h index b38c009..ff42113 100644 --- a/clang/lib/CodeGen/CodeGenFunction.h +++ b/clang/lib/CodeGen/CodeGenFunction.h @@ -615,6 +615,10 @@ public: /// True if the current statement has noconvergent attribute. bool InNoConvergentAttributedStmt = false; + /// HLSL Branch attribute. + HLSLControlFlowHintAttr::Spelling HLSLControlFlowAttr = + HLSLControlFlowHintAttr::SpellingNotCalculated; + // The CallExpr within the current statement that the musttail attribute // applies to. nullptr if there is no 'musttail' on the current statement. const CallExpr *MustTailCall = nullptr; |