[flang] [llvm] [OpenMP] Allow overriding clause-allowed-on-directive in decomposition (PR #227418)
Abid Qadeer via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 30 02:49:32 PDT 2026
================
@@ -170,6 +170,11 @@ struct Helper {
return std::nullopt;
}
std::optional<Object> getLoopIterVar() { return std::nullopt; }
+ bool isClauseAllowedOnDirective(llvm::omp::Clause clauseId,
+ llvm::omp::Directive dirId,
+ llvm::omp::Version version) {
+ return llvm::omp::isAllowedClauseForDirective(dirId, clauseId, version);
+ }
----------------
abidh wrote:
nit: It would also be nice to have a unittest with a helper that doesn't just forward, to show that the override really changes where a clause is placed.
https://github.com/llvm/llvm-project/pull/227418
More information about the llvm-commits
mailing list