mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 12:12:47 +01:00
49cf4f2457
Follow up from D92955 and D83636. This patch makes the base cpp files OMP.cpp and ACC.cpp normal files and they now include the XXX.inc file generated by tablegen. This reduces the number of file generated by the DirectiveEmitter backend and makes it closer to the proposal in D83636. Reviewed By: Meinersbur Differential Revision: https://reviews.llvm.org/D93560
43 lines
1.1 KiB
TableGen
43 lines
1.1 KiB
TableGen
// RUN: not llvm-tblgen -gen-directive-decl -I %p/../../include %s 2>&1 | FileCheck -match-full-lines %s
|
|
// RUN: not llvm-tblgen -gen-directive-impl -I %p/../../include %s 2>&1 | FileCheck -match-full-lines %s
|
|
|
|
include "llvm/Frontend/Directive/DirectiveBase.td"
|
|
|
|
def TestDirectiveLanguage : DirectiveLanguage {
|
|
let name = "TdlError";
|
|
}
|
|
|
|
def TDLC_ClauseA : Clause<"clausea"> {
|
|
let isDefault = 1;
|
|
}
|
|
|
|
def TDLC_ClauseB : Clause<"clauseb"> {
|
|
}
|
|
|
|
def TDLC_ClauseC : Clause<"clausec"> {
|
|
}
|
|
|
|
def TDLC_ClauseD : Clause<"claused"> {
|
|
}
|
|
|
|
def TDL_DirA : Directive<"dira"> {
|
|
let allowedClauses = [
|
|
VersionedClause<TDLC_ClauseA>,
|
|
VersionedClause<TDLC_ClauseB>,
|
|
VersionedClause<TDLC_ClauseD>
|
|
];
|
|
let allowedOnceClauses = [
|
|
VersionedClause<TDLC_ClauseA>,
|
|
VersionedClause<TDLC_ClauseC>
|
|
];
|
|
let requiredClauses = [
|
|
VersionedClause<TDLC_ClauseC>,
|
|
VersionedClause<TDLC_ClauseD>
|
|
];
|
|
let isDefault = 1;
|
|
}
|
|
|
|
// CHECK: error: Clause TDLC_ClauseA already defined on directive TDL_DirA
|
|
// CHECK: error: Clause TDLC_ClauseD already defined on directive TDL_DirA
|
|
// CHECK: error: One or more clauses are defined multiple times on directive TDL_DirA
|