[llvm] [Frontend] Introduce `getDirectiveCategory` for ACC/OMP directives (PR #94689)
Tom Eccles via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 7 09:37:50 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;
----------------
tblah wrote:
This wasn't easy to find in a spec. The 5.2 spec has a category label in the table at the start of each section. But Master is deprecated in 5.2. Earlier specs don't show the category so clearly.
But executable sounds right to me
https://github.com/llvm/llvm-project/pull/94689
More information about the llvm-commits
mailing list