| /llvm-project-15.0.7/flang/lib/Semantics/ |
| H A D | check-omp-structure.h | 36 Directive::OMPD_parallel_do, Directive::OMPD_parallel_do_simd, 46 Directive::OMPD_parallel_do_simd, Directive::OMPD_do, 47 Directive::OMPD_do_simd, Directive::OMPD_target_parallel_do, 54 Directive::OMPD_parallel_do_simd, Directive::OMPD_do_simd, 61 Directive::OMPD_sections, Directive::OMPD_single} | 64 Directive::OMPD_taskloop, Directive::OMPD_taskloop_simd}; 72 Directive::OMPD_do_simd, Directive::OMPD_simd, 89 Directive::OMPD_ordered, Directive::OMPD_atomic, Directive::OMPD_task, 93 Directive::OMPD_critical, Directive::OMPD_ordered, 94 Directive::OMPD_atomic, Directive::OMPD_master} | [all …]
|
| H A D | check-omp-structure.cpp | 263 llvm::omp::Directive::OMPD_distribute, in HasInvalidTeamsNesting() 561 llvm::omp::Directive ineligibleTargetDir; in CheckTargetNest() 728 case llvm::omp::Directive::OMPD_do: in Enter() 729 case llvm::omp::Directive::OMPD_do_simd: in Enter() 783 case llvm::omp::Directive::OMPD_target: in Enter() 794 case llvm::omp::Directive::OMPD_single: in Enter() 901 case llvm::omp::Directive::OMPD_ordered: in Leave() 1247 case llvm::omp::Directive::OMPD_ordered: in Leave() 1356 llvm::omp::Directive::OMPD_task, llvm::omp::Directive::OMPD_taskloop}; in CheckCancellationNest() 1472 case llvm::omp::Directive::OMPD_single: in Enter() [all …]
|
| H A D | resolve-directives.cpp | 599 case llvm::acc::Directive::ACCD_data: in Pre() 603 case llvm::acc::Directive::ACCD_serial: in Pre() 700 case llvm::acc::Directive::ACCD_init: in Pre() 701 case llvm::acc::Directive::ACCD_set: in Pre() 703 case llvm::acc::Directive::ACCD_update: in Pre() 1098 case llvm::omp::Directive::OMPD_task: in Pre() 1100 case llvm::omp::Directive::OMPD_teams: in Pre() 1124 case llvm::omp::Directive::OMPD_task: in Post() 1125 case llvm::omp::Directive::OMPD_teams: in Post() 1185 case llvm::omp::Directive::OMPD_do: in Pre() [all …]
|
| H A D | check-acc-structure.cpp | 58 llvm::acc::Directive directive) const { in IsComputeConstruct() 110 case llvm::acc::Directive::ACCD_kernels: in Leave() 111 case llvm::acc::Directive::ACCD_parallel: in Leave() 112 case llvm::acc::Directive::ACCD_serial: in Leave() 119 case llvm::acc::Directive::ACCD_data: in Leave() 123 case llvm::acc::Directive::ACCD_host_data: in Leave() 236 case llvm::acc::Directive::ACCD_set: in Leave() 242 case llvm::acc::Directive::ACCD_update: in Leave() 249 case llvm::acc::Directive::ACCD_init: in Leave() 250 case llvm::acc::Directive::ACCD_shutdown: in Leave() [all …]
|
| H A D | check-acc-structure.h | 23 using AccDirectiveSet = Fortran::common::EnumSet<llvm::acc::Directive, 35 : public DirectiveStructureChecker<llvm::acc::Directive, llvm::acc::Clause, 75 bool IsComputeConstruct(llvm::acc::Directive directive) const; 79 llvm::StringRef getDirectiveName(llvm::acc::Directive directive) override;
|
| H A D | check-directive-structure.h | 65 switch ((llvm::omp::Directive)currentDirective_) { in Post() 67 case llvm::omp::Directive::OMPD_do: in Post() 68 case llvm::omp::Directive::OMPD_simd: in Post() 69 case llvm::omp::Directive::OMPD_parallel_do: in Post() 70 case llvm::omp::Directive::OMPD_parallel_do_simd: in Post() 71 case llvm::omp::Directive::OMPD_distribute_parallel_do: in Post() 72 case llvm::omp::Directive::OMPD_distribute_parallel_do_simd: in Post() 73 case llvm::omp::Directive::OMPD_distribute_parallel_for: in Post() 74 case llvm::omp::Directive::OMPD_distribute_simd: in Post() 75 case llvm::omp::Directive::OMPD_distribute_parallel_for_simd: in Post()
|
| /llvm-project-15.0.7/llvm/include/llvm/Frontend/OpenMP/ |
| H A D | OMP.td | 422 def OMP_Task : Directive<"task"> { 442 def OMP_Simd : Directive<"simd"> { 460 def OMP_Tile : Directive<"tile"> { 465 def OMP_Unroll : Directive<"unroll"> { 471 def OMP_For : Directive<"for"> { 486 def OMP_Do : Directive<"do"> { 512 def OMP_Single : Directive<"single"> { 540 def OMP_Flush : Directive<"flush"> { 596 def OMP_Teams : Directive<"teams"> { 1844 def OMP_Scan : Directive<"scan"> { [all …]
|
| /llvm-project-15.0.7/flang/lib/Parser/ |
| H A D | openmp-parsers.cpp | 292 "DO SIMD" >> pure(llvm::omp::Directive::OMPD_do_simd), 293 "DO" >> pure(llvm::omp::Directive::OMPD_do), 296 "SIMD" >> pure(llvm::omp::Directive::OMPD_simd), 302 pure(llvm::omp::Directive:: 370 "BARRIER" >> pure(llvm::omp::Directive::OMPD_barrier), 371 "ORDERED" >> pure(llvm::omp::Directive::OMPD_ordered), 393 "MASTER" >> pure(llvm::omp::Directive::OMPD_master), 397 "SINGLE" >> pure(llvm::omp::Directive::OMPD_single), 401 "TARGET" >> pure(llvm::omp::Directive::OMPD_target), 402 "TASK"_id >> pure(llvm::omp::Directive::OMPD_task), [all …]
|
| H A D | openacc-parsers.cpp | 118 first("DATA" >> pure(llvm::acc::Directive::ACCD_data), 119 "HOST_DATA" >> pure(llvm::acc::Directive::ACCD_host_data), 120 "KERNELS" >> pure(llvm::acc::Directive::ACCD_kernels), 121 "PARALLEL" >> pure(llvm::acc::Directive::ACCD_parallel), 122 "SERIAL" >> pure(llvm::acc::Directive::ACCD_serial))))) 127 "EXIT DATA" >> pure(llvm::acc::Directive::ACCD_exit_data), 128 "INIT" >> pure(llvm::acc::Directive::ACCD_init), 129 "SHUTDOWN" >> pure(llvm::acc::Directive::ACCD_shutdown), 130 "SET" >> pure(llvm::acc::Directive::ACCD_set), 131 "UPDATE" >> pure(llvm::acc::Directive::ACCD_update))))) [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/openmp/ |
| H A D | UseDefaultNoneCheck.cpp | 36 const auto *Directive = in check() local 38 assert(Directive != nullptr && "Expected to match some directive."); in check() 41 diag(Directive->getBeginLoc(), in check() 44 << getOpenMPDirectiveName(Directive->getDirectiveKind()) in check() 52 diag(Directive->getBeginLoc(), in check() 55 << getOpenMPDirectiveName(Directive->getDirectiveKind()); in check()
|
| H A D | ExceptionEscapeCheck.cpp | 54 const auto *Directive = in check() local 56 assert(Directive && "Expected to match some OpenMP Executable directive."); in check() 71 << getOpenMPDirectiveName(Directive->getDirectiveKind()); in check()
|
| /llvm-project-15.0.7/clang-tools-extra/pseudo/include/clang-pseudo/ |
| H A D | DirectiveTree.h | 64 struct Directive { struct 78 std::vector<std::pair<Directive, DirectiveTree>> Branches; 80 Directive End; 105 const DirectiveTree::Directive &); 148 Chunk(Directive C) : DirectiveVariant(std::move(C)) {} in Chunk() 156 CONVERSION(const, Directive); 157 CONVERSION(, Directive); 165 llvm::Optional<Directive> DirectiveVariant;
|
| /llvm-project-15.0.7/clang-tools-extra/pseudo/lib/ |
| H A D | DirectiveTree.cpp | 75 DirectiveTree::Directive Directive; in parse() local 76 parseDirective(&Directive); in parse() 77 Cond Kind = classifyDirective(Directive.Kind); in parse() 88 return std::move(Directive); in parse() 91 Tree->Chunks.push_back(std::move(Directive)); in parse() 122 void parseDirective(DirectiveTree::Directive *D) { in parseDirective() 154 const DirectiveTree::Directive &Directive, unsigned Indent, in dump() argument 203 OSTREAM_DUMP(DirectiveTree::Directive) 257 Score walk(DirectiveTree::Directive &D) { in walk() 269 return walk((DirectiveTree::Directive &)C); in walk() [all …]
|
| /llvm-project-15.0.7/clang/include/clang/Frontend/ |
| H A D | VerifyDiagnosticConsumer.h | 191 class Directive { 193 static std::unique_ptr<Directive> 209 Directive(const Directive &) = delete; 210 Directive &operator=(const Directive &) = delete; 211 virtual ~Directive() = default; 221 Directive(SourceLocation DirectiveLoc, SourceLocation DiagnosticLoc, in Directive() function 233 using DirectiveList = std::vector<std::unique_ptr<Directive>>;
|
| /llvm-project-15.0.7/llvm/include/llvm/Frontend/OpenACC/ |
| H A D | ACC.td | 267 def ACC_Atomic : Directive<"atomic"> {} 270 def ACC_Data : Directive<"data"> { 289 def ACC_Declare : Directive<"declare"> { 303 def ACC_Kernels : Directive<"kernels"> { 356 def ACC_Serial : Directive<"serial"> { 383 def ACC_Loop : Directive<"loop"> { 404 def ACC_Cache : Directive<"cache"> {} 407 def ACC_Init : Directive<"init"> { 431 def ACC_Set : Directive<"set"> { 458 def ACC_Update : Directive<"update"> { [all …]
|
| /llvm-project-15.0.7/llvm/lib/MC/MCParser/ |
| H A D | COFFMasmParser.cpp | 30 void addDirectiveHandler(StringRef Directive) { in addDirectiveHandler() argument 33 getParser().addDirectiveHandler(Directive, Handler); in addDirectiveHandler() 247 bool COFFMasmParser::ParseDirectiveSegment(StringRef Directive, SMLoc Loc) { in ParseDirectiveSegment() argument 276 bool COFFMasmParser::ParseDirectiveSegmentEnd(StringRef Directive, SMLoc Loc) { in ParseDirectiveSegmentEnd() argument 289 bool COFFMasmParser::ParseDirectiveIncludelib(StringRef Directive, SMLoc Loc) { in ParseDirectiveIncludelib() argument 311 bool COFFMasmParser::ParseDirectiveProc(StringRef Directive, SMLoc Loc) { in ParseDirectiveProc() argument 347 bool COFFMasmParser::ParseDirectiveEndProc(StringRef Directive, SMLoc Loc) { in ParseDirectiveEndProc() argument 367 bool COFFMasmParser::ParseDirectiveAlias(StringRef Directive, SMLoc Loc) { in ParseDirectiveAlias() argument 373 return addErrorSuffix(" in " + Directive + " directive"); in ParseDirectiveAlias() 386 bool COFFMasmParser::ParseSEHDirectiveAllocStack(StringRef Directive, in ParseSEHDirectiveAllocStack() argument [all …]
|
| H A D | DarwinAsmParser.cpp | 44 void addDirectiveHandler(StringRef Directive) { in addDirectiveHandler() argument 47 getParser().addDirectiveHandler(Directive, Handler); in addDirectiveHandler() 446 bool parseWatchOSVersionMin(StringRef Directive, SMLoc Loc) { in parseWatchOSVersionMin() argument 449 bool parseTvOSVersionMin(StringRef Directive, SMLoc Loc) { in parseTvOSVersionMin() argument 452 bool parseIOSVersionMin(StringRef Directive, SMLoc Loc) { in parseIOSVersionMin() argument 455 bool parseMacOSXVersionMin(StringRef Directive, SMLoc Loc) { in parseMacOSXVersionMin() argument 459 bool parseBuildVersion(StringRef Directive, SMLoc Loc); 588 bool IsDump = Directive == ".dump"; in parseDirectiveDumpOrLoad() 1096 Warning(Loc, Twine(Directive) + in checkVersion() 1138 checkVersion(Directive, StringRef(), Loc, ExpectedOS); in parseVersionMin() [all …]
|
| H A D | GOFFAsmParser.cpp | 17 void addDirectiveHandler(StringRef Directive) { in addDirectiveHandler() argument 21 getParser().addDirectiveHandler(Directive, Handler); in addDirectiveHandler()
|
| /llvm-project-15.0.7/clang/include/clang/Lex/ |
| H A D | DependencyDirectivesScanner.h | 91 struct Directive { struct 97 Directive() = default; argument 98 Directive(DirectiveKind K, ArrayRef<Token> Tokens) in Directive() function 115 SmallVectorImpl<dependency_directives_scan::Directive> &Directives, 131 ArrayRef<dependency_directives_scan::Directive> Directives,
|
| /llvm-project-15.0.7/llvm/lib/Target/PowerPC/ |
| H A D | PPCHazardRecognizers.cpp | 160 unsigned Directive = in PreEmitNoops() local 164 if (Directive == PPC::DIR_PWR6 || Directive == PPC::DIR_PWR7 || in PreEmitNoops() 165 Directive == PPC::DIR_PWR8 || Directive == PPC::DIR_PWR9) in PreEmitNoops() 220 unsigned Directive = in EmitNoop() local 225 if (Directive == PPC::DIR_PWR6 || Directive == PPC::DIR_PWR7 || in EmitNoop() 226 Directive == PPC::DIR_PWR8 || Directive == PPC::DIR_PWR9 || in EmitNoop()
|
| /llvm-project-15.0.7/llvm/lib/Target/NVPTX/MCTargetDesc/ |
| H A D | NVPTXTargetStreamer.cpp | 38 void NVPTXTargetStreamer::emitDwarfFileDirective(StringRef Directive) { in emitDwarfFileDirective() argument 39 DwarfFiles.emplace_back(Directive); in emitDwarfFileDirective() 112 const char *Directive = MAI->getData8bitsDirective(); in emitRawBytes() 122 const char *Label = Directive; in emitRawBytes() 129 if (Label == Directive) in emitRawBytes()
|
| /llvm-project-15.0.7/llvm/test/TableGen/ |
| H A D | directive2.td | 4 include "llvm/Frontend/Directive/DirectiveBase.td" 35 def TDL_DirA : Directive<"dira"> { 50 // CHECK-NEXT: enum class Directive { 66 // CHECK-NEXT: Directive getTdlDirectiveKind(llvm::StringRef Str); 68 // CHECK-NEXT: llvm::StringRef getTdlDirectiveName(Directive D); 111 // IMPL-NEXT: {llvm::tdl::Directive::TDLD_dira, 219 // IMPL-NEXT: Directive llvm::tdl::getTdlDirectiveKind(llvm::StringRef Str) { 220 // IMPL-NEXT: return llvm::StringSwitch<Directive>(Str) 225 // IMPL-NEXT: llvm::StringRef llvm::tdl::getTdlDirectiveName(Directive Kind) { 230 // IMPL-NEXT: llvm_unreachable("Invalid Tdl Directive kind"); [all …]
|
| H A D | directive1.td | 4 include "llvm/Frontend/Directive/DirectiveBase.td" 36 def TDL_DirA : Directive<"dira"> { 55 // CHECK-NEXT: enum class Directive { 61 // CHECK-NEXT: constexpr auto TDLD_dira = llvm::tdl::Directive::TDLD_dira; 84 // CHECK-NEXT: Directive getTdlDirectiveKind(llvm::StringRef Str); 86 // CHECK-NEXT: llvm::StringRef getTdlDirectiveName(Directive D); 133 // IMPL-NEXT: {llvm::tdl::Directive::TDLD_dira, 251 // IMPL-NEXT: Directive llvm::tdl::getTdlDirectiveKind(llvm::StringRef Str) { 252 // IMPL-NEXT: return llvm::StringSwitch<Directive>(Str) 262 // IMPL-NEXT: llvm_unreachable("Invalid Tdl Directive kind"); [all …]
|
| /llvm-project-15.0.7/clang-tools-extra/pseudo/unittests/ |
| H A D | DirectiveTreeTest.cpp | 75 EXPECT_THAT((const DirectiveTree::Directive &)PP.Chunks[0], in TEST() 100 const DirectiveTree::Directive &Error(NeedsFoo.Chunks[0]); in TEST() 121 const DirectiveTree::Directive &Define(PP.Chunks[1]); in TEST() 142 const DirectiveTree::Directive &Endif(PP.Chunks[1]); in TEST() 299 auto Directive = S.tokens(Cond.Branches[I].first.Tokens); in TEST() local 300 EXPECT_EQ(I == Cond.Taken, Directive.back().text() == "// TAKEN") in TEST() 301 << "At line " << Directive.front().Line << " of: " << Code; in TEST()
|
| /llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/ |
| H A D | MacroToEnumCheck.cpp | 86 EnumMacro(Token Name, const MacroDirective *Directive) in EnumMacro() 87 : Name(Name), Directive(Directive) {} in EnumMacro() 90 const MacroDirective *Directive; member 457 return Macro.Directive->getLocation() >= Range.getBegin() && in invalidateRange() 458 Macro.Directive->getLocation() <= Range.getEnd(); in invalidateRange() 476 Check->diag(Macro.Directive->getLocation(), in warnMacroEnum() 483 MacroList.front().Directive->getMacroInfo()->getDefinitionLoc(); in fixEnumMacro() 493 Macro.Directive->getMacroInfo()->getDefinitionLoc(); in fixEnumMacro() 502 Macro.Directive->getMacroInfo()->getDefinitionLoc(), 0, SM, LangOpts); in fixEnumMacro() 506 Macro.Directive->getMacroInfo()->getDefinitionEndLoc(), 0, SM, in fixEnumMacro() [all …]
|