[flang] [llvm] [Flang][OpenMP] WIP: Add frontend support for declare variant (PR #130578)
Mats Petersson via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 10 06:28:43 PDT 2025
================
@@ -1494,6 +1494,25 @@ class OmpVisitor : public virtual DeclarationVisitor {
return true;
}
+ bool Pre(const parser::OmpDeclareVariantDirective &x) {
+ AddOmpSourceRange(x.source);
+ auto FindSymbolOrError = [&](const parser::Name &procName) {
+ auto *symbol{FindSymbol(NonDerivedTypeScope(), procName)};
+ if (!symbol) {
+ context().Say(procName.source,
+ "Implicit subroutine declaration '%s' in !$OMP DECLARE VARIANT"_err_en_US,
----------------
Leporacanthicus wrote:
Is there a test for this?
https://github.com/llvm/llvm-project/pull/130578
More information about the llvm-commits
mailing list