Home
last modified time | relevance | path

Searched refs:Directive (Results 1 – 25 of 96) sorted by relevance

1234

/llvm-project-15.0.7/flang/lib/Semantics/
H A Dcheck-omp-structure.h36 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 Dcheck-omp-structure.cpp263 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 Dresolve-directives.cpp599 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 Dcheck-acc-structure.cpp58 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 Dcheck-acc-structure.h23 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 Dcheck-directive-structure.h65 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 DOMP.td422 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 Dopenmp-parsers.cpp292 "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 Dopenacc-parsers.cpp118 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 DUseDefaultNoneCheck.cpp36 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 DExceptionEscapeCheck.cpp54 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 DDirectiveTree.h64 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 DDirectiveTree.cpp75 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 DVerifyDiagnosticConsumer.h191 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 DACC.td267 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 DCOFFMasmParser.cpp30 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 DDarwinAsmParser.cpp44 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 DGOFFAsmParser.cpp17 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 DDependencyDirectivesScanner.h91 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 DPPCHazardRecognizers.cpp160 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 DNVPTXTargetStreamer.cpp38 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 Ddirective2.td4 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 Ddirective1.td4 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 DDirectiveTreeTest.cpp75 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 DMacroToEnumCheck.cpp86 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 …]

1234