[llvm] [Frontend] Introduce `getDirectiveCategory` for ACC/OMP directives (PR #94689)

Krzysztof Parzyszek via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 7 10:12:39 PDT 2024


================
@@ -730,15 +758,18 @@ def OMP_loop : Directive<"loop"> {
     VersionedClause<OMPC_Order, 50>,
   ];
   let association = AS_Loop;
+  let category = CA_Executable;
 }
 def OMP_masked : Directive<"masked"> {
   let allowedOnceClauses = [
     VersionedClause<OMPC_Filter>,
   ];
   let association = AS_Block;
+  let category = CA_Executable;
 }
 def OMP_Master : Directive<"master"> {
   let association = AS_Block;
+  let category = CA_Executable;
----------------
kparzysz wrote:

I simply copied it from `masked`.

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


More information about the llvm-commits mailing list