@@ -98,7 +98,7 @@ def TDL_DirA : Directive<"dira"> {
98
98
// CHECK-EMPTY:
99
99
// CHECK-NEXT: static constexpr std::size_t Directive_enumSize = 1;
100
100
// CHECK-EMPTY:
101
- // CHECK-NEXT: constexpr auto TDLD_dira = llvm::tdl:: Directive::TDLD_dira;
101
+ // CHECK-NEXT: constexpr auto TDLD_dira = Directive::TDLD_dira;
102
102
// CHECK-EMPTY:
103
103
// CHECK-NEXT: enum class Clause {
104
104
// CHECK-NEXT: TDLC_clausea,
@@ -108,28 +108,28 @@ def TDL_DirA : Directive<"dira"> {
108
108
// CHECK-EMPTY:
109
109
// CHECK-NEXT: static constexpr std::size_t Clause_enumSize = 3;
110
110
// CHECK-EMPTY:
111
- // CHECK-NEXT: constexpr auto TDLC_clausea = llvm::tdl:: Clause::TDLC_clausea;
112
- // CHECK-NEXT: constexpr auto TDLC_clauseb = llvm::tdl:: Clause::TDLC_clauseb;
113
- // CHECK-NEXT: constexpr auto TDLC_clausec = llvm::tdl:: Clause::TDLC_clausec;
111
+ // CHECK-NEXT: constexpr auto TDLC_clausea = Clause::TDLC_clausea;
112
+ // CHECK-NEXT: constexpr auto TDLC_clauseb = Clause::TDLC_clauseb;
113
+ // CHECK-NEXT: constexpr auto TDLC_clausec = Clause::TDLC_clausec;
114
114
// CHECK-EMPTY:
115
115
// CHECK-NEXT: enum class AKind {
116
116
// CHECK-NEXT: TDLCV_vala=1,
117
117
// CHECK-NEXT: TDLCV_valb=2,
118
118
// CHECK-NEXT: TDLCV_valc=3,
119
119
// CHECK-NEXT: };
120
120
// CHECK-EMPTY:
121
- // CHECK-NEXT: constexpr auto TDLCV_vala = llvm::tdl:: AKind::TDLCV_vala;
122
- // CHECK-NEXT: constexpr auto TDLCV_valb = llvm::tdl:: AKind::TDLCV_valb;
123
- // CHECK-NEXT: constexpr auto TDLCV_valc = llvm::tdl:: AKind::TDLCV_valc;
121
+ // CHECK-NEXT: constexpr auto TDLCV_vala = AKind::TDLCV_vala;
122
+ // CHECK-NEXT: constexpr auto TDLCV_valb = AKind::TDLCV_valb;
123
+ // CHECK-NEXT: constexpr auto TDLCV_valc = AKind::TDLCV_valc;
124
124
// CHECK-EMPTY:
125
125
// CHECK-NEXT: // Enumeration helper functions
126
- // CHECK-NEXT: LLVM_ABI Directive getTdlDirectiveKind(llvm:: StringRef Str);
126
+ // CHECK-NEXT: LLVM_ABI Directive getTdlDirectiveKind(StringRef Str);
127
127
// CHECK-EMPTY:
128
- // CHECK-NEXT: LLVM_ABI llvm:: StringRef getTdlDirectiveName(Directive D);
128
+ // CHECK-NEXT: LLVM_ABI StringRef getTdlDirectiveName(Directive D);
129
129
// CHECK-EMPTY:
130
- // CHECK-NEXT: LLVM_ABI Clause getTdlClauseKind(llvm:: StringRef Str);
130
+ // CHECK-NEXT: LLVM_ABI Clause getTdlClauseKind(StringRef Str);
131
131
// CHECK-EMPTY:
132
- // CHECK-NEXT: LLVM_ABI llvm:: StringRef getTdlClauseName(Clause C);
132
+ // CHECK-NEXT: LLVM_ABI StringRef getTdlClauseName(Clause C);
133
133
// CHECK-EMPTY:
134
134
// CHECK-NEXT: /// Return true if \p C is a valid clause for \p D in version \p Version.
135
135
// CHECK-NEXT: LLVM_ABI bool isAllowedClauseForDirective(Directive D, Clause C, unsigned Version);
@@ -138,8 +138,8 @@ def TDL_DirA : Directive<"dira"> {
138
138
// CHECK-NEXT: LLVM_ABI Association getDirectiveAssociation(Directive D);
139
139
// CHECK-NEXT: LLVM_ABI Category getDirectiveCategory(Directive D);
140
140
// CHECK-NEXT: LLVM_ABI SourceLanguage getDirectiveLanguages(Directive D);
141
- // CHECK-NEXT: LLVM_ABI AKind getAKind(StringRef);
142
- // CHECK-NEXT: LLVM_ABI llvm:: StringRef getTdlAKindName(AKind);
141
+ // CHECK-NEXT: LLVM_ABI AKind getAKind(StringRef Str );
142
+ // CHECK-NEXT: LLVM_ABI StringRef getTdlAKindName(AKind x );
143
143
// CHECK-EMPTY:
144
144
// CHECK-NEXT: } // namespace tdl
145
145
// CHECK-NEXT: } // namespace llvm
@@ -155,8 +155,8 @@ def TDL_DirA : Directive<"dira"> {
155
155
// IMPL-NEXT: // Sets for dira
156
156
// IMPL-EMPTY:
157
157
// IMPL-NEXT: static allowedClauses_TDLD_dira {
158
- // IMPL-NEXT: llvm::tdl:: Clause::TDLC_clausea,
159
- // IMPL-NEXT: llvm::tdl:: Clause::TDLC_clauseb,
158
+ // IMPL-NEXT: Clause::TDLC_clausea,
159
+ // IMPL-NEXT: Clause::TDLC_clauseb,
160
160
// IMPL-NEXT: };
161
161
// IMPL-EMPTY:
162
162
// IMPL-NEXT: static allowedOnceClauses_TDLD_dira {
@@ -311,29 +311,29 @@ def TDL_DirA : Directive<"dira"> {
311
311
// IMPL-EMPTY:
312
312
// IMPL-NEXT: #include "llvm/Support/ErrorHandling.h"
313
313
// IMPL-EMPTY:
314
- // IMPL-NEXT: Directive llvm::tdl::getTdlDirectiveKind(llvm::StringRef Str) {
315
- // IMPL-NEXT: return llvm:: StringSwitch<Directive>(Str)
314
+ // IMPL-NEXT: llvm::tdl:: Directive llvm::tdl::getTdlDirectiveKind(llvm::StringRef Str) {
315
+ // IMPL-NEXT: return StringSwitch<Directive>(Str)
316
316
// IMPL-NEXT: .Case("dira",TDLD_dira)
317
317
// IMPL-NEXT: .Default(TDLD_dira);
318
318
// IMPL-NEXT: }
319
319
// IMPL-EMPTY:
320
- // IMPL-NEXT: llvm::StringRef llvm::tdl::getTdlDirectiveName(Directive Kind) {
320
+ // IMPL-NEXT: llvm::StringRef llvm::tdl::getTdlDirectiveName(llvm::tdl:: Directive Kind) {
321
321
// IMPL-NEXT: switch (Kind) {
322
322
// IMPL-NEXT: case TDLD_dira:
323
323
// IMPL-NEXT: return "dira";
324
324
// IMPL-NEXT: }
325
325
// IMPL-NEXT: llvm_unreachable("Invalid Tdl Directive kind");
326
326
// IMPL-NEXT: }
327
327
// IMPL-EMPTY:
328
- // IMPL-NEXT: Clause llvm::tdl::getTdlClauseKind(llvm::StringRef Str) {
329
- // IMPL-NEXT: return llvm:: StringSwitch<Clause>(Str)
328
+ // IMPL-NEXT: llvm::tdl:: Clause llvm::tdl::getTdlClauseKind(llvm::StringRef Str) {
329
+ // IMPL-NEXT: return StringSwitch<Clause>(Str)
330
330
// IMPL-NEXT: .Case("clausea",TDLC_clausea)
331
331
// IMPL-NEXT: .Case("clauseb",TDLC_clauseb)
332
332
// IMPL-NEXT: .Case("clausec",TDLC_clausec)
333
333
// IMPL-NEXT: .Default(TDLC_clauseb);
334
334
// IMPL-NEXT: }
335
335
// IMPL-EMPTY:
336
- // IMPL-NEXT: llvm::StringRef llvm::tdl::getTdlClauseName(Clause Kind) {
336
+ // IMPL-NEXT: llvm::StringRef llvm::tdl::getTdlClauseName(llvm::tdl:: Clause Kind) {
337
337
// IMPL-NEXT: switch (Kind) {
338
338
// IMPL-NEXT: case TDLC_clausea:
339
339
// IMPL-NEXT: return "clausea";
@@ -345,8 +345,8 @@ def TDL_DirA : Directive<"dira"> {
345
345
// IMPL-NEXT: llvm_unreachable("Invalid Tdl Clause kind");
346
346
// IMPL-NEXT: }
347
347
// IMPL-EMPTY:
348
- // IMPL-NEXT: AKind llvm::tdl::getAKind(llvm::StringRef Str) {
349
- // IMPL-NEXT: return llvm:: StringSwitch<AKind>(Str)
348
+ // IMPL-NEXT: llvm::tdl:: AKind llvm::tdl::getAKind(llvm::StringRef Str) {
349
+ // IMPL-NEXT: return StringSwitch<AKind>(Str)
350
350
// IMPL-NEXT: .Case("vala",TDLCV_vala)
351
351
// IMPL-NEXT: .Case("valb",TDLCV_valb)
352
352
// IMPL-NEXT: .Case("valc",TDLCV_valc)
@@ -365,9 +365,9 @@ def TDL_DirA : Directive<"dira"> {
365
365
// IMPL-NEXT: llvm_unreachable("Invalid Tdl AKind kind");
366
366
// IMPL-NEXT: }
367
367
// IMPL-EMPTY:
368
- // IMPL-NEXT: bool llvm::tdl::isAllowedClauseForDirective(Directive D, Clause C, unsigned Version) {
369
- // IMPL-NEXT: assert(unsigned(D) <= llvm::tdl:: Directive_enumSize);
370
- // IMPL-NEXT: assert(unsigned(C) <= llvm::tdl:: Clause_enumSize);
368
+ // IMPL-NEXT: bool llvm::tdl::isAllowedClauseForDirective(llvm::tdl:: Directive D, llvm::tdl:: Clause C, unsigned Version) {
369
+ // IMPL-NEXT: assert(unsigned(D) <= Directive_enumSize);
370
+ // IMPL-NEXT: assert(unsigned(C) <= Clause_enumSize);
371
371
// IMPL-NEXT: switch (D) {
372
372
// IMPL-NEXT: case TDLD_dira:
373
373
// IMPL-NEXT: switch (C) {
@@ -385,24 +385,24 @@ def TDL_DirA : Directive<"dira"> {
385
385
// IMPL-EMPTY:
386
386
// IMPL-NEXT: llvm::tdl::Association llvm::tdl::getDirectiveAssociation(llvm::tdl::Directive Dir) {
387
387
// IMPL-NEXT: switch (Dir) {
388
- // IMPL-NEXT: case llvm::tdl::Directive:: TDLD_dira:
389
- // IMPL-NEXT: return llvm::tdl:: Association::None;
388
+ // IMPL-NEXT: case TDLD_dira:
389
+ // IMPL-NEXT: return Association::None;
390
390
// IMPL-NEXT: } // switch (Dir)
391
391
// IMPL-NEXT: llvm_unreachable("Unexpected directive");
392
392
// IMPL-NEXT: }
393
393
// IMPL-EMPTY:
394
394
// IMPL-NEXT: llvm::tdl::Category llvm::tdl::getDirectiveCategory(llvm::tdl::Directive Dir) {
395
395
// IMPL-NEXT: switch (Dir) {
396
- // IMPL-NEXT: case llvm::tdl:: TDLD_dira:
397
- // IMPL-NEXT: return llvm::tdl:: Category::Executable;
396
+ // IMPL-NEXT: case TDLD_dira:
397
+ // IMPL-NEXT: return Category::Executable;
398
398
// IMPL-NEXT: } // switch (Dir)
399
399
// IMPL-NEXT: llvm_unreachable("Unexpected directive");
400
400
// IMPL-NEXT: }
401
401
// IMPL-EMPTY:
402
402
// IMPL-NEXT: llvm::tdl::SourceLanguage llvm::tdl::getDirectiveLanguages(llvm::tdl::Directive D) {
403
403
// IMPL-NEXT: switch (D) {
404
- // IMPL-NEXT: case llvm::tdl:: TDLD_dira:
405
- // IMPL-NEXT: return llvm::tdl:: SourceLanguage::C | llvm::tdl:: SourceLanguage::Fortran;
404
+ // IMPL-NEXT: case TDLD_dira:
405
+ // IMPL-NEXT: return SourceLanguage::C | SourceLanguage::Fortran;
406
406
// IMPL-NEXT: } // switch(D)
407
407
// IMPL-NEXT: llvm_unreachable("Unexpected directive");
408
408
// IMPL-NEXT: }
0 commit comments