[PATCH] D111854: [OPENMP51]Initial parsing/sema for append_args clause for 'declare variant'

Alexey Bataev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 22 06:24:45 PDT 2021


ABataev added inline comments.


================
Comment at: clang/lib/Parse/ParseOpenMP.cpp:1496-1497
+  bool HasError = false;
+  bool IsTarget = false;
+  bool IsTargetSync = false;
+
----------------
Can you worjk with OMPDeclareVariantAttr::InteropType type var instead of using these vars?


================
Comment at: clang/test/OpenMP/declare_variant_clauses_messages.cpp:17
 int Other;
 
 void foo_v1(float *AAA, float *BBB, int *I) { return; }
----------------
mikerice wrote:
> ABataev wrote:
> > Add (a) test(s) for varargs functions. Also, what about templates, member functions, static member functions, virtual functions, pure virtual functions?
> Added positive and negative tests for templates, member functions, and static member functions. Virtual functions are not allowed for declare variant so I didn't add anything for those.  Added a diagnostic for varargs with append_args since it is not clear how that would work or what it means.
Can you add tests that (pure) virtual functions are correctly rejected (if don't have ones)?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D111854/new/

https://reviews.llvm.org/D111854



More information about the llvm-commits mailing list