Skip to content

Commit

Permalink
Forgot to save a cleaned up comment...
Browse files Browse the repository at this point in the history
  • Loading branch information
pmccormick committed Oct 31, 2023
1 parent bd7941e commit 88bc75b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions clang/lib/CodeGen/CGStmt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -751,10 +751,11 @@ void CodeGenFunction::EmitAttributedStmt(const AttributedStmt &S) {
break;
}
case attr::TapirTarget:
// In the case of a Tapir target attribute we need to save the attribute
// set so we can use it when we finally reach code gen of the underlying
// CallExpr. We leverage this saved attribute set in CGExpr when we handle
// the special case for Kokkos parallel "statements".
// In the case of a Tapir target attribute, we need to save the attribute
// set so we can use it when we reach code gen of the underlying
// CallExpr for Kokkos parallel "statements". This is necessary given
// the additional layers of details in the AST for C++ mechanisms Kokkos
// uses to implement their feature set (e.g., implicit and cleanup goop).
tapir_attr_set = S.getAttrs();
break;
}
Expand Down

0 comments on commit 88bc75b

Please sign in to comment.