[flang-commits] [flang] [flang][OpenMP] Add semantic check for target construct (PR #73697)

via flang-commits flang-commits at lists.llvm.org
Mon Dec 4 08:05:06 PST 2023


================
@@ -2653,6 +2654,20 @@ void OmpStructureChecker::Enter(const parser::OmpClause::If &x) {
   }
 }
 
+void OmpStructureChecker::Enter(const parser::Call &c) {
+  const parser::Name *name =
+      std::get_if<parser::Name>(&std::get<parser::ProcedureDesignator>(c.t).u);
+  llvm::StringSet rtlfns{"omp_set_default_device", "omp_get_default_device",
----------------
NimishMishra wrote:

Could a vector of std::string work here? Not a hard comment from me though.

https://github.com/llvm/llvm-project/pull/73697


More information about the flang-commits mailing list