aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.h
diff options
context:
space:
mode:
authorjoaosaffran <126493771+joaosaffran@users.noreply.github.com>2025-01-06 10:27:02 -0800
committerGitHub <noreply@github.com>2025-01-06 10:27:02 -0800
commit0d5c07285f79a2135730c919c7e7b8e2bd9118e7 (patch)
tree556f05fa0de7465144740c98972d640b581edc05 /clang/lib/CodeGen/CodeGenFunction.h
parent2d53eaff4aee73605170ce9910cde68fa7a300b2 (diff)
downloadllvm-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.h4
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;