[clang] [OpenACC][CIR] Implement 'self' lowering on compute constructs (PR #135851)
Erich Keane via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 15 13:51:12 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;
----------------
erichkeane wrote:
Function instead of Module because we need to be able to emit expressions, which we do at the function.
https://github.com/llvm/llvm-project/pull/135851
More information about the cfe-commits
mailing list