[flang-commits] [flang] [Flang][OMP]Add support for DECLARE MAPPER parsing and semantics (PR #115160)
    Akash Banerjee via flang-commits 
    flang-commits at lists.llvm.org
       
    Wed Nov  6 06:31:10 PST 2024
    
    
  
================
@@ -1605,6 +1609,26 @@ void OmpVisitor::Post(const parser::OpenMPBlockConstruct &x) {
   }
 }
 
+bool OmpVisitor::Pre(const parser::OpenMPDeclareMapperConstruct &x) {
+  AddOmpSourceRange(x.source);
+  BeginDeclTypeSpec();
+  PushScope(Scope::Kind::OtherConstruct, nullptr);
+  const auto &spec{std::get<parser::OmpDeclareMapperSpecifier>(x.t)};
+  if (const auto &mapperName{
----------------
TIFitis wrote:
Don't we need an else case here for when the optional name hasn't been supplied and use the "default" name?
https://github.com/llvm/llvm-project/pull/115160
    
    
More information about the flang-commits
mailing list