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

Tom Eccles via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 10 02:36:04 PDT 2024


================
@@ -1033,39 +1087,46 @@ def OMP_Teams : Directive<"teams"> {
     VersionedClause<OMPC_ThreadLimit>,
   ];
   let association = AS_Block;
+  let category = CA_Executable;
 }
 def OMP_ThreadPrivate : Directive<"threadprivate"> {
   let association = AS_None;
+  let category = CA_Declarative;
 }
 def OMP_Tile : Directive<"tile"> {
   let allowedOnceClauses = [
     VersionedClause<OMPC_Sizes, 51>,
   ];
   let association = AS_Loop;
+  let category = CA_Executable;
 }
 def OMP_Unknown : Directive<"unknown"> {
   let isDefault = true;
   let association = AS_None;
+  let category = CA_Utility;
----------------
tblah wrote:

If it is your local invention I guess you can define it how you like. Is there any documentation upstream I can read about it?

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


More information about the llvm-commits mailing list