[clang] [OpenACC][CIR] Implement 'self' lowering on compute constructs (PR #135851)
Andy Kaylor via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 15 15:03:06 PDT 2025
================
@@ -32,46 +32,52 @@ constexpr bool isOneOfTypes =
template <typename ToTest, typename T>
constexpr bool isOneOfTypes<ToTest, T> = std::is_same_v<ToTest, T>;
+template <typename OpTy>
class OpenACCClauseCIREmitter final
- : public OpenACCClauseVisitor<OpenACCClauseCIREmitter> {
- CIRGenModule &cgm;
+ : public OpenACCClauseVisitor<OpenACCClauseCIREmitter<OpTy>> {
+ OpTy &operation;
+ CIRGenFunction &cgf;
+ CIRGenBuilderTy &builder;
+
// This is necessary since a few of the clauses emit differently based on the
// directive kind they are attached to.
OpenACCDirectiveKind dirKind;
+ // This source location should be able to go away once the NYI diagnostics are
----------------
andykaylor wrote:
```suggestion
// TODO(cir): This source location should be able to go away once the NYI diagnostics are
```
To make it less likely to be permanently overlooked.
https://github.com/llvm/llvm-project/pull/135851
More information about the cfe-commits
mailing list