clang  16.0.0git
StmtProfile.cpp
Go to the documentation of this file.
1 //===---- StmtProfile.cpp - Profile implementation for Stmt ASTs ----------===//
2 //
3 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4 // See https://llvm.org/LICENSE.txt for license information.
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6 //
7 //===----------------------------------------------------------------------===//
8 //
9 // This file implements the Stmt::Profile method, which builds a unique bit
10 // representation that identifies a statement/expression.
11 //
12 //===----------------------------------------------------------------------===//
13 #include "clang/AST/ASTContext.h"
14 #include "clang/AST/DeclCXX.h"
15 #include "clang/AST/DeclObjC.h"
16 #include "clang/AST/DeclTemplate.h"
17 #include "clang/AST/Expr.h"
18 #include "clang/AST/ExprCXX.h"
19 #include "clang/AST/ExprObjC.h"
20 #include "clang/AST/ExprOpenMP.h"
21 #include "clang/AST/ODRHash.h"
22 #include "clang/AST/OpenMPClause.h"
23 #include "clang/AST/StmtVisitor.h"
24 #include "llvm/ADT/FoldingSet.h"
25 using namespace clang;
26 
27 namespace {
28  class StmtProfiler : public ConstStmtVisitor<StmtProfiler> {
29  protected:
30  llvm::FoldingSetNodeID &ID;
31  bool Canonical;
32 
33  public:
34  StmtProfiler(llvm::FoldingSetNodeID &ID, bool Canonical)
35  : ID(ID), Canonical(Canonical) {}
36 
37  virtual ~StmtProfiler() {}
38 
39  void VisitStmt(const Stmt *S);
40 
41  void VisitStmtNoChildren(const Stmt *S) {
42  HandleStmtClass(S->getStmtClass());
43  }
44 
45  virtual void HandleStmtClass(Stmt::StmtClass SC) = 0;
46 
47 #define STMT(Node, Base) void Visit##Node(const Node *S);
48 #include "clang/AST/StmtNodes.inc"
49 
50  /// Visit a declaration that is referenced within an expression
51  /// or statement.
52  virtual void VisitDecl(const Decl *D) = 0;
53 
54  /// Visit a type that is referenced within an expression or
55  /// statement.
56  virtual void VisitType(QualType T) = 0;
57 
58  /// Visit a name that occurs within an expression or statement.
59  virtual void VisitName(DeclarationName Name, bool TreatAsDecl = false) = 0;
60 
61  /// Visit identifiers that are not in Decl's or Type's.
62  virtual void VisitIdentifierInfo(IdentifierInfo *II) = 0;
63 
64  /// Visit a nested-name-specifier that occurs within an expression
65  /// or statement.
66  virtual void VisitNestedNameSpecifier(NestedNameSpecifier *NNS) = 0;
67 
68  /// Visit a template name that occurs within an expression or
69  /// statement.
70  virtual void VisitTemplateName(TemplateName Name) = 0;
71 
72  /// Visit template arguments that occur within an expression or
73  /// statement.
74  void VisitTemplateArguments(const TemplateArgumentLoc *Args,
75  unsigned NumArgs);
76 
77  /// Visit a single template argument.
78  void VisitTemplateArgument(const TemplateArgument &Arg);
79  };
80 
81  class StmtProfilerWithPointers : public StmtProfiler {
82  const ASTContext &Context;
83 
84  public:
85  StmtProfilerWithPointers(llvm::FoldingSetNodeID &ID,
86  const ASTContext &Context, bool Canonical)
87  : StmtProfiler(ID, Canonical), Context(Context) {}
88  private:
89  void HandleStmtClass(Stmt::StmtClass SC) override {
90  ID.AddInteger(SC);
91  }
92 
93  void VisitDecl(const Decl *D) override {
94  ID.AddInteger(D ? D->getKind() : 0);
95 
96  if (Canonical && D) {
97  if (const NonTypeTemplateParmDecl *NTTP =
98  dyn_cast<NonTypeTemplateParmDecl>(D)) {
99  ID.AddInteger(NTTP->getDepth());
100  ID.AddInteger(NTTP->getIndex());
101  ID.AddBoolean(NTTP->isParameterPack());
102  VisitType(NTTP->getType());
103  return;
104  }
105 
106  if (const ParmVarDecl *Parm = dyn_cast<ParmVarDecl>(D)) {
107  // The Itanium C++ ABI uses the type, scope depth, and scope
108  // index of a parameter when mangling expressions that involve
109  // function parameters, so we will use the parameter's type for
110  // establishing function parameter identity. That way, our
111  // definition of "equivalent" (per C++ [temp.over.link]) is at
112  // least as strong as the definition of "equivalent" used for
113  // name mangling.
114  VisitType(Parm->getType());
115  ID.AddInteger(Parm->getFunctionScopeDepth());
116  ID.AddInteger(Parm->getFunctionScopeIndex());
117  return;
118  }
119 
120  if (const TemplateTypeParmDecl *TTP =
121  dyn_cast<TemplateTypeParmDecl>(D)) {
122  ID.AddInteger(TTP->getDepth());
123  ID.AddInteger(TTP->getIndex());
124  ID.AddBoolean(TTP->isParameterPack());
125  return;
126  }
127 
128  if (const TemplateTemplateParmDecl *TTP =
129  dyn_cast<TemplateTemplateParmDecl>(D)) {
130  ID.AddInteger(TTP->getDepth());
131  ID.AddInteger(TTP->getIndex());
132  ID.AddBoolean(TTP->isParameterPack());
133  return;
134  }
135  }
136 
137  ID.AddPointer(D ? D->getCanonicalDecl() : nullptr);
138  }
139 
140  void VisitType(QualType T) override {
141  if (Canonical && !T.isNull())
142  T = Context.getCanonicalType(T);
143 
144  ID.AddPointer(T.getAsOpaquePtr());
145  }
146 
147  void VisitName(DeclarationName Name, bool /*TreatAsDecl*/) override {
148  ID.AddPointer(Name.getAsOpaquePtr());
149  }
150 
151  void VisitIdentifierInfo(IdentifierInfo *II) override {
152  ID.AddPointer(II);
153  }
154 
155  void VisitNestedNameSpecifier(NestedNameSpecifier *NNS) override {
156  if (Canonical)
157  NNS = Context.getCanonicalNestedNameSpecifier(NNS);
158  ID.AddPointer(NNS);
159  }
160 
161  void VisitTemplateName(TemplateName Name) override {
162  if (Canonical)
163  Name = Context.getCanonicalTemplateName(Name);
164 
165  Name.Profile(ID);
166  }
167  };
168 
169  class StmtProfilerWithoutPointers : public StmtProfiler {
170  ODRHash &Hash;
171  public:
172  StmtProfilerWithoutPointers(llvm::FoldingSetNodeID &ID, ODRHash &Hash)
173  : StmtProfiler(ID, false), Hash(Hash) {}
174 
175  private:
176  void HandleStmtClass(Stmt::StmtClass SC) override {
177  if (SC == Stmt::UnresolvedLookupExprClass) {
178  // Pretend that the name looked up is a Decl due to how templates
179  // handle some Decl lookups.
180  ID.AddInteger(Stmt::DeclRefExprClass);
181  } else {
182  ID.AddInteger(SC);
183  }
184  }
185 
186  void VisitType(QualType T) override {
187  Hash.AddQualType(T);
188  }
189 
190  void VisitName(DeclarationName Name, bool TreatAsDecl) override {
191  if (TreatAsDecl) {
192  // A Decl can be null, so each Decl is preceded by a boolean to
193  // store its nullness. Add a boolean here to match.
194  ID.AddBoolean(true);
195  }
196  Hash.AddDeclarationName(Name, TreatAsDecl);
197  }
198  void VisitIdentifierInfo(IdentifierInfo *II) override {
199  ID.AddBoolean(II);
200  if (II) {
201  Hash.AddIdentifierInfo(II);
202  }
203  }
204  void VisitDecl(const Decl *D) override {
205  ID.AddBoolean(D);
206  if (D) {
207  Hash.AddDecl(D);
208  }
209  }
210  void VisitTemplateName(TemplateName Name) override {
211  Hash.AddTemplateName(Name);
212  }
213  void VisitNestedNameSpecifier(NestedNameSpecifier *NNS) override {
214  ID.AddBoolean(NNS);
215  if (NNS) {
216  Hash.AddNestedNameSpecifier(NNS);
217  }
218  }
219  };
220 }
221 
222 void StmtProfiler::VisitStmt(const Stmt *S) {
223  assert(S && "Requires non-null Stmt pointer");
224 
225  VisitStmtNoChildren(S);
226 
227  for (const Stmt *SubStmt : S->children()) {
228  if (SubStmt)
229  Visit(SubStmt);
230  else
231  ID.AddInteger(0);
232  }
233 }
234 
235 void StmtProfiler::VisitDeclStmt(const DeclStmt *S) {
236  VisitStmt(S);
237  for (const auto *D : S->decls())
238  VisitDecl(D);
239 }
240 
241 void StmtProfiler::VisitNullStmt(const NullStmt *S) {
242  VisitStmt(S);
243 }
244 
245 void StmtProfiler::VisitCompoundStmt(const CompoundStmt *S) {
246  VisitStmt(S);
247 }
248 
249 void StmtProfiler::VisitCaseStmt(const CaseStmt *S) {
250  VisitStmt(S);
251 }
252 
253 void StmtProfiler::VisitDefaultStmt(const DefaultStmt *S) {
254  VisitStmt(S);
255 }
256 
257 void StmtProfiler::VisitLabelStmt(const LabelStmt *S) {
258  VisitStmt(S);
259  VisitDecl(S->getDecl());
260 }
261 
262 void StmtProfiler::VisitAttributedStmt(const AttributedStmt *S) {
263  VisitStmt(S);
264  // TODO: maybe visit attributes?
265 }
266 
267 void StmtProfiler::VisitIfStmt(const IfStmt *S) {
268  VisitStmt(S);
269  VisitDecl(S->getConditionVariable());
270 }
271 
272 void StmtProfiler::VisitSwitchStmt(const SwitchStmt *S) {
273  VisitStmt(S);
274  VisitDecl(S->getConditionVariable());
275 }
276 
277 void StmtProfiler::VisitWhileStmt(const WhileStmt *S) {
278  VisitStmt(S);
279  VisitDecl(S->getConditionVariable());
280 }
281 
282 void StmtProfiler::VisitDoStmt(const DoStmt *S) {
283  VisitStmt(S);
284 }
285 
286 void StmtProfiler::VisitForStmt(const ForStmt *S) {
287  VisitStmt(S);
288 }
289 
290 void StmtProfiler::VisitGotoStmt(const GotoStmt *S) {
291  VisitStmt(S);
292  VisitDecl(S->getLabel());
293 }
294 
295 void StmtProfiler::VisitIndirectGotoStmt(const IndirectGotoStmt *S) {
296  VisitStmt(S);
297 }
298 
299 void StmtProfiler::VisitContinueStmt(const ContinueStmt *S) {
300  VisitStmt(S);
301 }
302 
303 void StmtProfiler::VisitBreakStmt(const BreakStmt *S) {
304  VisitStmt(S);
305 }
306 
307 void StmtProfiler::VisitReturnStmt(const ReturnStmt *S) {
308  VisitStmt(S);
309 }
310 
311 void StmtProfiler::VisitGCCAsmStmt(const GCCAsmStmt *S) {
312  VisitStmt(S);
313  ID.AddBoolean(S->isVolatile());
314  ID.AddBoolean(S->isSimple());
315  VisitStringLiteral(S->getAsmString());
316  ID.AddInteger(S->getNumOutputs());
317  for (unsigned I = 0, N = S->getNumOutputs(); I != N; ++I) {
318  ID.AddString(S->getOutputName(I));
319  VisitStringLiteral(S->getOutputConstraintLiteral(I));
320  }
321  ID.AddInteger(S->getNumInputs());
322  for (unsigned I = 0, N = S->getNumInputs(); I != N; ++I) {
323  ID.AddString(S->getInputName(I));
324  VisitStringLiteral(S->getInputConstraintLiteral(I));
325  }
326  ID.AddInteger(S->getNumClobbers());
327  for (unsigned I = 0, N = S->getNumClobbers(); I != N; ++I)
328  VisitStringLiteral(S->getClobberStringLiteral(I));
329  ID.AddInteger(S->getNumLabels());
330  for (auto *L : S->labels())
331  VisitDecl(L->getLabel());
332 }
333 
334 void StmtProfiler::VisitMSAsmStmt(const MSAsmStmt *S) {
335  // FIXME: Implement MS style inline asm statement profiler.
336  VisitStmt(S);
337 }
338 
339 void StmtProfiler::VisitCXXCatchStmt(const CXXCatchStmt *S) {
340  VisitStmt(S);
341  VisitType(S->getCaughtType());
342 }
343 
344 void StmtProfiler::VisitCXXTryStmt(const CXXTryStmt *S) {
345  VisitStmt(S);
346 }
347 
348 void StmtProfiler::VisitCXXForRangeStmt(const CXXForRangeStmt *S) {
349  VisitStmt(S);
350 }
351 
352 void StmtProfiler::VisitMSDependentExistsStmt(const MSDependentExistsStmt *S) {
353  VisitStmt(S);
354  ID.AddBoolean(S->isIfExists());
355  VisitNestedNameSpecifier(S->getQualifierLoc().getNestedNameSpecifier());
356  VisitName(S->getNameInfo().getName());
357 }
358 
359 void StmtProfiler::VisitSEHTryStmt(const SEHTryStmt *S) {
360  VisitStmt(S);
361 }
362 
363 void StmtProfiler::VisitSEHFinallyStmt(const SEHFinallyStmt *S) {
364  VisitStmt(S);
365 }
366 
367 void StmtProfiler::VisitSEHExceptStmt(const SEHExceptStmt *S) {
368  VisitStmt(S);
369 }
370 
371 void StmtProfiler::VisitSEHLeaveStmt(const SEHLeaveStmt *S) {
372  VisitStmt(S);
373 }
374 
375 void StmtProfiler::VisitCapturedStmt(const CapturedStmt *S) {
376  VisitStmt(S);
377 }
378 
379 void StmtProfiler::VisitObjCForCollectionStmt(const ObjCForCollectionStmt *S) {
380  VisitStmt(S);
381 }
382 
383 void StmtProfiler::VisitObjCAtCatchStmt(const ObjCAtCatchStmt *S) {
384  VisitStmt(S);
385  ID.AddBoolean(S->hasEllipsis());
386  if (S->getCatchParamDecl())
387  VisitType(S->getCatchParamDecl()->getType());
388 }
389 
390 void StmtProfiler::VisitObjCAtFinallyStmt(const ObjCAtFinallyStmt *S) {
391  VisitStmt(S);
392 }
393 
394 void StmtProfiler::VisitObjCAtTryStmt(const ObjCAtTryStmt *S) {
395  VisitStmt(S);
396 }
397 
398 void
399 StmtProfiler::VisitObjCAtSynchronizedStmt(const ObjCAtSynchronizedStmt *S) {
400  VisitStmt(S);
401 }
402 
403 void StmtProfiler::VisitObjCAtThrowStmt(const ObjCAtThrowStmt *S) {
404  VisitStmt(S);
405 }
406 
407 void
408 StmtProfiler::VisitObjCAutoreleasePoolStmt(const ObjCAutoreleasePoolStmt *S) {
409  VisitStmt(S);
410 }
411 
412 namespace {
413 class OMPClauseProfiler : public ConstOMPClauseVisitor<OMPClauseProfiler> {
414  StmtProfiler *Profiler;
415  /// Process clauses with list of variables.
416  template <typename T>
417  void VisitOMPClauseList(T *Node);
418 
419 public:
420  OMPClauseProfiler(StmtProfiler *P) : Profiler(P) { }
421 #define GEN_CLANG_CLAUSE_CLASS
422 #define CLAUSE_CLASS(Enum, Str, Class) void Visit##Class(const Class *C);
423 #include "llvm/Frontend/OpenMP/OMP.inc"
424  void VistOMPClauseWithPreInit(const OMPClauseWithPreInit *C);
425  void VistOMPClauseWithPostUpdate(const OMPClauseWithPostUpdate *C);
426 };
427 
428 void OMPClauseProfiler::VistOMPClauseWithPreInit(
429  const OMPClauseWithPreInit *C) {
430  if (auto *S = C->getPreInitStmt())
431  Profiler->VisitStmt(S);
432 }
433 
434 void OMPClauseProfiler::VistOMPClauseWithPostUpdate(
435  const OMPClauseWithPostUpdate *C) {
436  VistOMPClauseWithPreInit(C);
437  if (auto *E = C->getPostUpdateExpr())
438  Profiler->VisitStmt(E);
439 }
440 
441 void OMPClauseProfiler::VisitOMPIfClause(const OMPIfClause *C) {
442  VistOMPClauseWithPreInit(C);
443  if (C->getCondition())
444  Profiler->VisitStmt(C->getCondition());
445 }
446 
447 void OMPClauseProfiler::VisitOMPFinalClause(const OMPFinalClause *C) {
448  VistOMPClauseWithPreInit(C);
449  if (C->getCondition())
450  Profiler->VisitStmt(C->getCondition());
451 }
452 
453 void OMPClauseProfiler::VisitOMPNumThreadsClause(const OMPNumThreadsClause *C) {
454  VistOMPClauseWithPreInit(C);
455  if (C->getNumThreads())
456  Profiler->VisitStmt(C->getNumThreads());
457 }
458 
459 void OMPClauseProfiler::VisitOMPAlignClause(const OMPAlignClause *C) {
460  if (C->getAlignment())
461  Profiler->VisitStmt(C->getAlignment());
462 }
463 
464 void OMPClauseProfiler::VisitOMPSafelenClause(const OMPSafelenClause *C) {
465  if (C->getSafelen())
466  Profiler->VisitStmt(C->getSafelen());
467 }
468 
469 void OMPClauseProfiler::VisitOMPSimdlenClause(const OMPSimdlenClause *C) {
470  if (C->getSimdlen())
471  Profiler->VisitStmt(C->getSimdlen());
472 }
473 
474 void OMPClauseProfiler::VisitOMPSizesClause(const OMPSizesClause *C) {
475  for (auto *E : C->getSizesRefs())
476  if (E)
477  Profiler->VisitExpr(E);
478 }
479 
480 void OMPClauseProfiler::VisitOMPFullClause(const OMPFullClause *C) {}
481 
482 void OMPClauseProfiler::VisitOMPPartialClause(const OMPPartialClause *C) {
483  if (const Expr *Factor = C->getFactor())
484  Profiler->VisitExpr(Factor);
485 }
486 
487 void OMPClauseProfiler::VisitOMPAllocatorClause(const OMPAllocatorClause *C) {
488  if (C->getAllocator())
489  Profiler->VisitStmt(C->getAllocator());
490 }
491 
492 void OMPClauseProfiler::VisitOMPCollapseClause(const OMPCollapseClause *C) {
493  if (C->getNumForLoops())
494  Profiler->VisitStmt(C->getNumForLoops());
495 }
496 
497 void OMPClauseProfiler::VisitOMPDetachClause(const OMPDetachClause *C) {
498  if (Expr *Evt = C->getEventHandler())
499  Profiler->VisitStmt(Evt);
500 }
501 
502 void OMPClauseProfiler::VisitOMPNovariantsClause(const OMPNovariantsClause *C) {
503  VistOMPClauseWithPreInit(C);
504  if (C->getCondition())
505  Profiler->VisitStmt(C->getCondition());
506 }
507 
508 void OMPClauseProfiler::VisitOMPNocontextClause(const OMPNocontextClause *C) {
509  VistOMPClauseWithPreInit(C);
510  if (C->getCondition())
511  Profiler->VisitStmt(C->getCondition());
512 }
513 
514 void OMPClauseProfiler::VisitOMPDefaultClause(const OMPDefaultClause *C) { }
515 
516 void OMPClauseProfiler::VisitOMPProcBindClause(const OMPProcBindClause *C) { }
517 
518 void OMPClauseProfiler::VisitOMPUnifiedAddressClause(
519  const OMPUnifiedAddressClause *C) {}
520 
521 void OMPClauseProfiler::VisitOMPUnifiedSharedMemoryClause(
522  const OMPUnifiedSharedMemoryClause *C) {}
523 
524 void OMPClauseProfiler::VisitOMPReverseOffloadClause(
525  const OMPReverseOffloadClause *C) {}
526 
527 void OMPClauseProfiler::VisitOMPDynamicAllocatorsClause(
528  const OMPDynamicAllocatorsClause *C) {}
529 
530 void OMPClauseProfiler::VisitOMPAtomicDefaultMemOrderClause(
531  const OMPAtomicDefaultMemOrderClause *C) {}
532 
533 void OMPClauseProfiler::VisitOMPAtClause(const OMPAtClause *C) {}
534 
535 void OMPClauseProfiler::VisitOMPSeverityClause(const OMPSeverityClause *C) {}
536 
537 void OMPClauseProfiler::VisitOMPMessageClause(const OMPMessageClause *C) {
538  if (C->getMessageString())
539  Profiler->VisitStmt(C->getMessageString());
540 }
541 
542 void OMPClauseProfiler::VisitOMPScheduleClause(const OMPScheduleClause *C) {
543  VistOMPClauseWithPreInit(C);
544  if (auto *S = C->getChunkSize())
545  Profiler->VisitStmt(S);
546 }
547 
548 void OMPClauseProfiler::VisitOMPOrderedClause(const OMPOrderedClause *C) {
549  if (auto *Num = C->getNumForLoops())
550  Profiler->VisitStmt(Num);
551 }
552 
553 void OMPClauseProfiler::VisitOMPNowaitClause(const OMPNowaitClause *) {}
554 
555 void OMPClauseProfiler::VisitOMPUntiedClause(const OMPUntiedClause *) {}
556 
557 void OMPClauseProfiler::VisitOMPMergeableClause(const OMPMergeableClause *) {}
558 
559 void OMPClauseProfiler::VisitOMPReadClause(const OMPReadClause *) {}
560 
561 void OMPClauseProfiler::VisitOMPWriteClause(const OMPWriteClause *) {}
562 
563 void OMPClauseProfiler::VisitOMPUpdateClause(const OMPUpdateClause *) {}
564 
565 void OMPClauseProfiler::VisitOMPCaptureClause(const OMPCaptureClause *) {}
566 
567 void OMPClauseProfiler::VisitOMPCompareClause(const OMPCompareClause *) {}
568 
569 void OMPClauseProfiler::VisitOMPSeqCstClause(const OMPSeqCstClause *) {}
570 
571 void OMPClauseProfiler::VisitOMPAcqRelClause(const OMPAcqRelClause *) {}
572 
573 void OMPClauseProfiler::VisitOMPAcquireClause(const OMPAcquireClause *) {}
574 
575 void OMPClauseProfiler::VisitOMPReleaseClause(const OMPReleaseClause *) {}
576 
577 void OMPClauseProfiler::VisitOMPRelaxedClause(const OMPRelaxedClause *) {}
578 
579 void OMPClauseProfiler::VisitOMPThreadsClause(const OMPThreadsClause *) {}
580 
581 void OMPClauseProfiler::VisitOMPSIMDClause(const OMPSIMDClause *) {}
582 
583 void OMPClauseProfiler::VisitOMPNogroupClause(const OMPNogroupClause *) {}
584 
585 void OMPClauseProfiler::VisitOMPInitClause(const OMPInitClause *C) {
586  VisitOMPClauseList(C);
587 }
588 
589 void OMPClauseProfiler::VisitOMPUseClause(const OMPUseClause *C) {
590  if (C->getInteropVar())
591  Profiler->VisitStmt(C->getInteropVar());
592 }
593 
594 void OMPClauseProfiler::VisitOMPDestroyClause(const OMPDestroyClause *C) {
595  if (C->getInteropVar())
596  Profiler->VisitStmt(C->getInteropVar());
597 }
598 
599 void OMPClauseProfiler::VisitOMPFilterClause(const OMPFilterClause *C) {
600  VistOMPClauseWithPreInit(C);
601  if (C->getThreadID())
602  Profiler->VisitStmt(C->getThreadID());
603 }
604 
605 template<typename T>
606 void OMPClauseProfiler::VisitOMPClauseList(T *Node) {
607  for (auto *E : Node->varlists()) {
608  if (E)
609  Profiler->VisitStmt(E);
610  }
611 }
612 
613 void OMPClauseProfiler::VisitOMPPrivateClause(const OMPPrivateClause *C) {
614  VisitOMPClauseList(C);
615  for (auto *E : C->private_copies()) {
616  if (E)
617  Profiler->VisitStmt(E);
618  }
619 }
620 void
621 OMPClauseProfiler::VisitOMPFirstprivateClause(const OMPFirstprivateClause *C) {
622  VisitOMPClauseList(C);
623  VistOMPClauseWithPreInit(C);
624  for (auto *E : C->private_copies()) {
625  if (E)
626  Profiler->VisitStmt(E);
627  }
628  for (auto *E : C->inits()) {
629  if (E)
630  Profiler->VisitStmt(E);
631  }
632 }
633 void
634 OMPClauseProfiler::VisitOMPLastprivateClause(const OMPLastprivateClause *C) {
635  VisitOMPClauseList(C);
636  VistOMPClauseWithPostUpdate(C);
637  for (auto *E : C->source_exprs()) {
638  if (E)
639  Profiler->VisitStmt(E);
640  }
641  for (auto *E : C->destination_exprs()) {
642  if (E)
643  Profiler->VisitStmt(E);
644  }
645  for (auto *E : C->assignment_ops()) {
646  if (E)
647  Profiler->VisitStmt(E);
648  }
649 }
650 void OMPClauseProfiler::VisitOMPSharedClause(const OMPSharedClause *C) {
651  VisitOMPClauseList(C);
652 }
653 void OMPClauseProfiler::VisitOMPReductionClause(
654  const OMPReductionClause *C) {
655  Profiler->VisitNestedNameSpecifier(
656  C->getQualifierLoc().getNestedNameSpecifier());
657  Profiler->VisitName(C->getNameInfo().getName());
658  VisitOMPClauseList(C);
659  VistOMPClauseWithPostUpdate(C);
660  for (auto *E : C->privates()) {
661  if (E)
662  Profiler->VisitStmt(E);
663  }
664  for (auto *E : C->lhs_exprs()) {
665  if (E)
666  Profiler->VisitStmt(E);
667  }
668  for (auto *E : C->rhs_exprs()) {
669  if (E)
670  Profiler->VisitStmt(E);
671  }
672  for (auto *E : C->reduction_ops()) {
673  if (E)
674  Profiler->VisitStmt(E);
675  }
676  if (C->getModifier() == clang::OMPC_REDUCTION_inscan) {
677  for (auto *E : C->copy_ops()) {
678  if (E)
679  Profiler->VisitStmt(E);
680  }
681  for (auto *E : C->copy_array_temps()) {
682  if (E)
683  Profiler->VisitStmt(E);
684  }
685  for (auto *E : C->copy_array_elems()) {
686  if (E)
687  Profiler->VisitStmt(E);
688  }
689  }
690 }
691 void OMPClauseProfiler::VisitOMPTaskReductionClause(
692  const OMPTaskReductionClause *C) {
693  Profiler->VisitNestedNameSpecifier(
694  C->getQualifierLoc().getNestedNameSpecifier());
695  Profiler->VisitName(C->getNameInfo().getName());
696  VisitOMPClauseList(C);
697  VistOMPClauseWithPostUpdate(C);
698  for (auto *E : C->privates()) {
699  if (E)
700  Profiler->VisitStmt(E);
701  }
702  for (auto *E : C->lhs_exprs()) {
703  if (E)
704  Profiler->VisitStmt(E);
705  }
706  for (auto *E : C->rhs_exprs()) {
707  if (E)
708  Profiler->VisitStmt(E);
709  }
710  for (auto *E : C->reduction_ops()) {
711  if (E)
712  Profiler->VisitStmt(E);
713  }
714 }
715 void OMPClauseProfiler::VisitOMPInReductionClause(
716  const OMPInReductionClause *C) {
717  Profiler->VisitNestedNameSpecifier(
718  C->getQualifierLoc().getNestedNameSpecifier());
719  Profiler->VisitName(C->getNameInfo().getName());
720  VisitOMPClauseList(C);
721  VistOMPClauseWithPostUpdate(C);
722  for (auto *E : C->privates()) {
723  if (E)
724  Profiler->VisitStmt(E);
725  }
726  for (auto *E : C->lhs_exprs()) {
727  if (E)
728  Profiler->VisitStmt(E);
729  }
730  for (auto *E : C->rhs_exprs()) {
731  if (E)
732  Profiler->VisitStmt(E);
733  }
734  for (auto *E : C->reduction_ops()) {
735  if (E)
736  Profiler->VisitStmt(E);
737  }
738  for (auto *E : C->taskgroup_descriptors()) {
739  if (E)
740  Profiler->VisitStmt(E);
741  }
742 }
743 void OMPClauseProfiler::VisitOMPLinearClause(const OMPLinearClause *C) {
744  VisitOMPClauseList(C);
745  VistOMPClauseWithPostUpdate(C);
746  for (auto *E : C->privates()) {
747  if (E)
748  Profiler->VisitStmt(E);
749  }
750  for (auto *E : C->inits()) {
751  if (E)
752  Profiler->VisitStmt(E);
753  }
754  for (auto *E : C->updates()) {
755  if (E)
756  Profiler->VisitStmt(E);
757  }
758  for (auto *E : C->finals()) {
759  if (E)
760  Profiler->VisitStmt(E);
761  }
762  if (C->getStep())
763  Profiler->VisitStmt(C->getStep());
764  if (C->getCalcStep())
765  Profiler->VisitStmt(C->getCalcStep());
766 }
767 void OMPClauseProfiler::VisitOMPAlignedClause(const OMPAlignedClause *C) {
768  VisitOMPClauseList(C);
769  if (C->getAlignment())
770  Profiler->VisitStmt(C->getAlignment());
771 }
772 void OMPClauseProfiler::VisitOMPCopyinClause(const OMPCopyinClause *C) {
773  VisitOMPClauseList(C);
774  for (auto *E : C->source_exprs()) {
775  if (E)
776  Profiler->VisitStmt(E);
777  }
778  for (auto *E : C->destination_exprs()) {
779  if (E)
780  Profiler->VisitStmt(E);
781  }
782  for (auto *E : C->assignment_ops()) {
783  if (E)
784  Profiler->VisitStmt(E);
785  }
786 }
787 void
788 OMPClauseProfiler::VisitOMPCopyprivateClause(const OMPCopyprivateClause *C) {
789  VisitOMPClauseList(C);
790  for (auto *E : C->source_exprs()) {
791  if (E)
792  Profiler->VisitStmt(E);
793  }
794  for (auto *E : C->destination_exprs()) {
795  if (E)
796  Profiler->VisitStmt(E);
797  }
798  for (auto *E : C->assignment_ops()) {
799  if (E)
800  Profiler->VisitStmt(E);
801  }
802 }
803 void OMPClauseProfiler::VisitOMPFlushClause(const OMPFlushClause *C) {
804  VisitOMPClauseList(C);
805 }
806 void OMPClauseProfiler::VisitOMPDepobjClause(const OMPDepobjClause *C) {
807  if (const Expr *Depobj = C->getDepobj())
808  Profiler->VisitStmt(Depobj);
809 }
810 void OMPClauseProfiler::VisitOMPDependClause(const OMPDependClause *C) {
811  VisitOMPClauseList(C);
812 }
813 void OMPClauseProfiler::VisitOMPDeviceClause(const OMPDeviceClause *C) {
814  if (C->getDevice())
815  Profiler->VisitStmt(C->getDevice());
816 }
817 void OMPClauseProfiler::VisitOMPMapClause(const OMPMapClause *C) {
818  VisitOMPClauseList(C);
819 }
820 void OMPClauseProfiler::VisitOMPAllocateClause(const OMPAllocateClause *C) {
821  if (Expr *Allocator = C->getAllocator())
822  Profiler->VisitStmt(Allocator);
823  VisitOMPClauseList(C);
824 }
825 void OMPClauseProfiler::VisitOMPNumTeamsClause(const OMPNumTeamsClause *C) {
826  VistOMPClauseWithPreInit(C);
827  if (C->getNumTeams())
828  Profiler->VisitStmt(C->getNumTeams());
829 }
830 void OMPClauseProfiler::VisitOMPThreadLimitClause(
831  const OMPThreadLimitClause *C) {
832  VistOMPClauseWithPreInit(C);
833  if (C->getThreadLimit())
834  Profiler->VisitStmt(C->getThreadLimit());
835 }
836 void OMPClauseProfiler::VisitOMPPriorityClause(const OMPPriorityClause *C) {
837  VistOMPClauseWithPreInit(C);
838  if (C->getPriority())
839  Profiler->VisitStmt(C->getPriority());
840 }
841 void OMPClauseProfiler::VisitOMPGrainsizeClause(const OMPGrainsizeClause *C) {
842  VistOMPClauseWithPreInit(C);
843  if (C->getGrainsize())
844  Profiler->VisitStmt(C->getGrainsize());
845 }
846 void OMPClauseProfiler::VisitOMPNumTasksClause(const OMPNumTasksClause *C) {
847  VistOMPClauseWithPreInit(C);
848  if (C->getNumTasks())
849  Profiler->VisitStmt(C->getNumTasks());
850 }
851 void OMPClauseProfiler::VisitOMPHintClause(const OMPHintClause *C) {
852  if (C->getHint())
853  Profiler->VisitStmt(C->getHint());
854 }
855 void OMPClauseProfiler::VisitOMPToClause(const OMPToClause *C) {
856  VisitOMPClauseList(C);
857 }
858 void OMPClauseProfiler::VisitOMPFromClause(const OMPFromClause *C) {
859  VisitOMPClauseList(C);
860 }
861 void OMPClauseProfiler::VisitOMPUseDevicePtrClause(
862  const OMPUseDevicePtrClause *C) {
863  VisitOMPClauseList(C);
864 }
865 void OMPClauseProfiler::VisitOMPUseDeviceAddrClause(
866  const OMPUseDeviceAddrClause *C) {
867  VisitOMPClauseList(C);
868 }
869 void OMPClauseProfiler::VisitOMPIsDevicePtrClause(
870  const OMPIsDevicePtrClause *C) {
871  VisitOMPClauseList(C);
872 }
873 void OMPClauseProfiler::VisitOMPHasDeviceAddrClause(
874  const OMPHasDeviceAddrClause *C) {
875  VisitOMPClauseList(C);
876 }
877 void OMPClauseProfiler::VisitOMPNontemporalClause(
878  const OMPNontemporalClause *C) {
879  VisitOMPClauseList(C);
880  for (auto *E : C->private_refs())
881  Profiler->VisitStmt(E);
882 }
883 void OMPClauseProfiler::VisitOMPInclusiveClause(const OMPInclusiveClause *C) {
884  VisitOMPClauseList(C);
885 }
886 void OMPClauseProfiler::VisitOMPExclusiveClause(const OMPExclusiveClause *C) {
887  VisitOMPClauseList(C);
888 }
889 void OMPClauseProfiler::VisitOMPUsesAllocatorsClause(
890  const OMPUsesAllocatorsClause *C) {
891  for (unsigned I = 0, E = C->getNumberOfAllocators(); I < E; ++I) {
892  OMPUsesAllocatorsClause::Data D = C->getAllocatorData(I);
893  Profiler->VisitStmt(D.Allocator);
894  if (D.AllocatorTraits)
895  Profiler->VisitStmt(D.AllocatorTraits);
896  }
897 }
898 void OMPClauseProfiler::VisitOMPAffinityClause(const OMPAffinityClause *C) {
899  if (const Expr *Modifier = C->getModifier())
900  Profiler->VisitStmt(Modifier);
901  for (const Expr *E : C->varlists())
902  Profiler->VisitStmt(E);
903 }
904 void OMPClauseProfiler::VisitOMPOrderClause(const OMPOrderClause *C) {}
905 void OMPClauseProfiler::VisitOMPBindClause(const OMPBindClause *C) {}
906 } // namespace
907 
908 void
909 StmtProfiler::VisitOMPExecutableDirective(const OMPExecutableDirective *S) {
910  VisitStmt(S);
911  OMPClauseProfiler P(this);
912  ArrayRef<OMPClause *> Clauses = S->clauses();
913  for (ArrayRef<OMPClause *>::iterator I = Clauses.begin(), E = Clauses.end();
914  I != E; ++I)
915  if (*I)
916  P.Visit(*I);
917 }
918 
919 void StmtProfiler::VisitOMPCanonicalLoop(const OMPCanonicalLoop *L) {
920  VisitStmt(L);
921 }
922 
923 void StmtProfiler::VisitOMPLoopBasedDirective(const OMPLoopBasedDirective *S) {
924  VisitOMPExecutableDirective(S);
925 }
926 
927 void StmtProfiler::VisitOMPLoopDirective(const OMPLoopDirective *S) {
928  VisitOMPLoopBasedDirective(S);
929 }
930 
931 void StmtProfiler::VisitOMPMetaDirective(const OMPMetaDirective *S) {
932  VisitOMPExecutableDirective(S);
933 }
934 
935 void StmtProfiler::VisitOMPParallelDirective(const OMPParallelDirective *S) {
936  VisitOMPExecutableDirective(S);
937 }
938 
939 void StmtProfiler::VisitOMPSimdDirective(const OMPSimdDirective *S) {
940  VisitOMPLoopDirective(S);
941 }
942 
943 void StmtProfiler::VisitOMPLoopTransformationDirective(
945  VisitOMPLoopBasedDirective(S);
946 }
947 
948 void StmtProfiler::VisitOMPTileDirective(const OMPTileDirective *S) {
949  VisitOMPLoopTransformationDirective(S);
950 }
951 
952 void StmtProfiler::VisitOMPUnrollDirective(const OMPUnrollDirective *S) {
953  VisitOMPLoopTransformationDirective(S);
954 }
955 
956 void StmtProfiler::VisitOMPForDirective(const OMPForDirective *S) {
957  VisitOMPLoopDirective(S);
958 }
959 
960 void StmtProfiler::VisitOMPForSimdDirective(const OMPForSimdDirective *S) {
961  VisitOMPLoopDirective(S);
962 }
963 
964 void StmtProfiler::VisitOMPSectionsDirective(const OMPSectionsDirective *S) {
965  VisitOMPExecutableDirective(S);
966 }
967 
968 void StmtProfiler::VisitOMPSectionDirective(const OMPSectionDirective *S) {
969  VisitOMPExecutableDirective(S);
970 }
971 
972 void StmtProfiler::VisitOMPSingleDirective(const OMPSingleDirective *S) {
973  VisitOMPExecutableDirective(S);
974 }
975 
976 void StmtProfiler::VisitOMPMasterDirective(const OMPMasterDirective *S) {
977  VisitOMPExecutableDirective(S);
978 }
979 
980 void StmtProfiler::VisitOMPCriticalDirective(const OMPCriticalDirective *S) {
981  VisitOMPExecutableDirective(S);
982  VisitName(S->getDirectiveName().getName());
983 }
984 
985 void
986 StmtProfiler::VisitOMPParallelForDirective(const OMPParallelForDirective *S) {
987  VisitOMPLoopDirective(S);
988 }
989 
990 void StmtProfiler::VisitOMPParallelForSimdDirective(
991  const OMPParallelForSimdDirective *S) {
992  VisitOMPLoopDirective(S);
993 }
994 
995 void StmtProfiler::VisitOMPParallelMasterDirective(
996  const OMPParallelMasterDirective *S) {
997  VisitOMPExecutableDirective(S);
998 }
999 
1000 void StmtProfiler::VisitOMPParallelMaskedDirective(
1001  const OMPParallelMaskedDirective *S) {
1002  VisitOMPExecutableDirective(S);
1003 }
1004 
1005 void StmtProfiler::VisitOMPParallelSectionsDirective(
1006  const OMPParallelSectionsDirective *S) {
1007  VisitOMPExecutableDirective(S);
1008 }
1009 
1010 void StmtProfiler::VisitOMPTaskDirective(const OMPTaskDirective *S) {
1011  VisitOMPExecutableDirective(S);
1012 }
1013 
1014 void StmtProfiler::VisitOMPTaskyieldDirective(const OMPTaskyieldDirective *S) {
1015  VisitOMPExecutableDirective(S);
1016 }
1017 
1018 void StmtProfiler::VisitOMPBarrierDirective(const OMPBarrierDirective *S) {
1019  VisitOMPExecutableDirective(S);
1020 }
1021 
1022 void StmtProfiler::VisitOMPTaskwaitDirective(const OMPTaskwaitDirective *S) {
1023  VisitOMPExecutableDirective(S);
1024 }
1025 
1026 void StmtProfiler::VisitOMPErrorDirective(const OMPErrorDirective *S) {
1027  VisitOMPExecutableDirective(S);
1028 }
1029 void StmtProfiler::VisitOMPTaskgroupDirective(const OMPTaskgroupDirective *S) {
1030  VisitOMPExecutableDirective(S);
1031  if (const Expr *E = S->getReductionRef())
1032  VisitStmt(E);
1033 }
1034 
1035 void StmtProfiler::VisitOMPFlushDirective(const OMPFlushDirective *S) {
1036  VisitOMPExecutableDirective(S);
1037 }
1038 
1039 void StmtProfiler::VisitOMPDepobjDirective(const OMPDepobjDirective *S) {
1040  VisitOMPExecutableDirective(S);
1041 }
1042 
1043 void StmtProfiler::VisitOMPScanDirective(const OMPScanDirective *S) {
1044  VisitOMPExecutableDirective(S);
1045 }
1046 
1047 void StmtProfiler::VisitOMPOrderedDirective(const OMPOrderedDirective *S) {
1048  VisitOMPExecutableDirective(S);
1049 }
1050 
1051 void StmtProfiler::VisitOMPAtomicDirective(const OMPAtomicDirective *S) {
1052  VisitOMPExecutableDirective(S);
1053 }
1054 
1055 void StmtProfiler::VisitOMPTargetDirective(const OMPTargetDirective *S) {
1056  VisitOMPExecutableDirective(S);
1057 }
1058 
1059 void StmtProfiler::VisitOMPTargetDataDirective(const OMPTargetDataDirective *S) {
1060  VisitOMPExecutableDirective(S);
1061 }
1062 
1063 void StmtProfiler::VisitOMPTargetEnterDataDirective(
1064  const OMPTargetEnterDataDirective *S) {
1065  VisitOMPExecutableDirective(S);
1066 }
1067 
1068 void StmtProfiler::VisitOMPTargetExitDataDirective(
1069  const OMPTargetExitDataDirective *S) {
1070  VisitOMPExecutableDirective(S);
1071 }
1072 
1073 void StmtProfiler::VisitOMPTargetParallelDirective(
1074  const OMPTargetParallelDirective *S) {
1075  VisitOMPExecutableDirective(S);
1076 }
1077 
1078 void StmtProfiler::VisitOMPTargetParallelForDirective(
1079  const OMPTargetParallelForDirective *S) {
1080  VisitOMPExecutableDirective(S);
1081 }
1082 
1083 void StmtProfiler::VisitOMPTeamsDirective(const OMPTeamsDirective *S) {
1084  VisitOMPExecutableDirective(S);
1085 }
1086 
1087 void StmtProfiler::VisitOMPCancellationPointDirective(
1088  const OMPCancellationPointDirective *S) {
1089  VisitOMPExecutableDirective(S);
1090 }
1091 
1092 void StmtProfiler::VisitOMPCancelDirective(const OMPCancelDirective *S) {
1093  VisitOMPExecutableDirective(S);
1094 }
1095 
1096 void StmtProfiler::VisitOMPTaskLoopDirective(const OMPTaskLoopDirective *S) {
1097  VisitOMPLoopDirective(S);
1098 }
1099 
1100 void StmtProfiler::VisitOMPTaskLoopSimdDirective(
1101  const OMPTaskLoopSimdDirective *S) {
1102  VisitOMPLoopDirective(S);
1103 }
1104 
1105 void StmtProfiler::VisitOMPMasterTaskLoopDirective(
1106  const OMPMasterTaskLoopDirective *S) {
1107  VisitOMPLoopDirective(S);
1108 }
1109 
1110 void StmtProfiler::VisitOMPMaskedTaskLoopDirective(
1111  const OMPMaskedTaskLoopDirective *S) {
1112  VisitOMPLoopDirective(S);
1113 }
1114 
1115 void StmtProfiler::VisitOMPMasterTaskLoopSimdDirective(
1116  const OMPMasterTaskLoopSimdDirective *S) {
1117  VisitOMPLoopDirective(S);
1118 }
1119 
1120 void StmtProfiler::VisitOMPMaskedTaskLoopSimdDirective(
1121  const OMPMaskedTaskLoopSimdDirective *S) {
1122  VisitOMPLoopDirective(S);
1123 }
1124 
1125 void StmtProfiler::VisitOMPParallelMasterTaskLoopDirective(
1127  VisitOMPLoopDirective(S);
1128 }
1129 
1130 void StmtProfiler::VisitOMPParallelMaskedTaskLoopDirective(
1132  VisitOMPLoopDirective(S);
1133 }
1134 
1135 void StmtProfiler::VisitOMPParallelMasterTaskLoopSimdDirective(
1137  VisitOMPLoopDirective(S);
1138 }
1139 
1140 void StmtProfiler::VisitOMPParallelMaskedTaskLoopSimdDirective(
1142  VisitOMPLoopDirective(S);
1143 }
1144 
1145 void StmtProfiler::VisitOMPDistributeDirective(
1146  const OMPDistributeDirective *S) {
1147  VisitOMPLoopDirective(S);
1148 }
1149 
1150 void OMPClauseProfiler::VisitOMPDistScheduleClause(
1151  const OMPDistScheduleClause *C) {
1152  VistOMPClauseWithPreInit(C);
1153  if (auto *S = C->getChunkSize())
1154  Profiler->VisitStmt(S);
1155 }
1156 
1157 void OMPClauseProfiler::VisitOMPDefaultmapClause(const OMPDefaultmapClause *) {}
1158 
1159 void StmtProfiler::VisitOMPTargetUpdateDirective(
1160  const OMPTargetUpdateDirective *S) {
1161  VisitOMPExecutableDirective(S);
1162 }
1163 
1164 void StmtProfiler::VisitOMPDistributeParallelForDirective(
1166  VisitOMPLoopDirective(S);
1167 }
1168 
1169 void StmtProfiler::VisitOMPDistributeParallelForSimdDirective(
1171  VisitOMPLoopDirective(S);
1172 }
1173 
1174 void StmtProfiler::VisitOMPDistributeSimdDirective(
1175  const OMPDistributeSimdDirective *S) {
1176  VisitOMPLoopDirective(S);
1177 }
1178 
1179 void StmtProfiler::VisitOMPTargetParallelForSimdDirective(
1181  VisitOMPLoopDirective(S);
1182 }
1183 
1184 void StmtProfiler::VisitOMPTargetSimdDirective(
1185  const OMPTargetSimdDirective *S) {
1186  VisitOMPLoopDirective(S);
1187 }
1188 
1189 void StmtProfiler::VisitOMPTeamsDistributeDirective(
1190  const OMPTeamsDistributeDirective *S) {
1191  VisitOMPLoopDirective(S);
1192 }
1193 
1194 void StmtProfiler::VisitOMPTeamsDistributeSimdDirective(
1196  VisitOMPLoopDirective(S);
1197 }
1198 
1199 void StmtProfiler::VisitOMPTeamsDistributeParallelForSimdDirective(
1201  VisitOMPLoopDirective(S);
1202 }
1203 
1204 void StmtProfiler::VisitOMPTeamsDistributeParallelForDirective(
1206  VisitOMPLoopDirective(S);
1207 }
1208 
1209 void StmtProfiler::VisitOMPTargetTeamsDirective(
1210  const OMPTargetTeamsDirective *S) {
1211  VisitOMPExecutableDirective(S);
1212 }
1213 
1214 void StmtProfiler::VisitOMPTargetTeamsDistributeDirective(
1216  VisitOMPLoopDirective(S);
1217 }
1218 
1219 void StmtProfiler::VisitOMPTargetTeamsDistributeParallelForDirective(
1221  VisitOMPLoopDirective(S);
1222 }
1223 
1224 void StmtProfiler::VisitOMPTargetTeamsDistributeParallelForSimdDirective(
1226  VisitOMPLoopDirective(S);
1227 }
1228 
1229 void StmtProfiler::VisitOMPTargetTeamsDistributeSimdDirective(
1231  VisitOMPLoopDirective(S);
1232 }
1233 
1234 void StmtProfiler::VisitOMPInteropDirective(const OMPInteropDirective *S) {
1235  VisitOMPExecutableDirective(S);
1236 }
1237 
1238 void StmtProfiler::VisitOMPDispatchDirective(const OMPDispatchDirective *S) {
1239  VisitOMPExecutableDirective(S);
1240 }
1241 
1242 void StmtProfiler::VisitOMPMaskedDirective(const OMPMaskedDirective *S) {
1243  VisitOMPExecutableDirective(S);
1244 }
1245 
1246 void StmtProfiler::VisitOMPGenericLoopDirective(
1247  const OMPGenericLoopDirective *S) {
1248  VisitOMPLoopDirective(S);
1249 }
1250 
1251 void StmtProfiler::VisitOMPTeamsGenericLoopDirective(
1252  const OMPTeamsGenericLoopDirective *S) {
1253  VisitOMPLoopDirective(S);
1254 }
1255 
1256 void StmtProfiler::VisitOMPTargetTeamsGenericLoopDirective(
1258  VisitOMPLoopDirective(S);
1259 }
1260 
1261 void StmtProfiler::VisitOMPParallelGenericLoopDirective(
1263  VisitOMPLoopDirective(S);
1264 }
1265 
1266 void StmtProfiler::VisitOMPTargetParallelGenericLoopDirective(
1268  VisitOMPLoopDirective(S);
1269 }
1270 
1271 void StmtProfiler::VisitExpr(const Expr *S) {
1272  VisitStmt(S);
1273 }
1274 
1275 void StmtProfiler::VisitConstantExpr(const ConstantExpr *S) {
1276  VisitExpr(S);
1277 }
1278 
1279 void StmtProfiler::VisitDeclRefExpr(const DeclRefExpr *S) {
1280  VisitExpr(S);
1281  if (!Canonical)
1282  VisitNestedNameSpecifier(S->getQualifier());
1283  VisitDecl(S->getDecl());
1284  if (!Canonical) {
1285  ID.AddBoolean(S->hasExplicitTemplateArgs());
1286  if (S->hasExplicitTemplateArgs())
1287  VisitTemplateArguments(S->getTemplateArgs(), S->getNumTemplateArgs());
1288  }
1289 }
1290 
1291 void StmtProfiler::VisitSYCLUniqueStableNameExpr(
1292  const SYCLUniqueStableNameExpr *S) {
1293  VisitExpr(S);
1294  VisitType(S->getTypeSourceInfo()->getType());
1295 }
1296 
1297 void StmtProfiler::VisitPredefinedExpr(const PredefinedExpr *S) {
1298  VisitExpr(S);
1299  ID.AddInteger(S->getIdentKind());
1300 }
1301 
1302 void StmtProfiler::VisitIntegerLiteral(const IntegerLiteral *S) {
1303  VisitExpr(S);
1304  S->getValue().Profile(ID);
1305  ID.AddInteger(S->getType()->castAs<BuiltinType>()->getKind());
1306 }
1307 
1308 void StmtProfiler::VisitFixedPointLiteral(const FixedPointLiteral *S) {
1309  VisitExpr(S);
1310  S->getValue().Profile(ID);
1311  ID.AddInteger(S->getType()->castAs<BuiltinType>()->getKind());
1312 }
1313 
1314 void StmtProfiler::VisitCharacterLiteral(const CharacterLiteral *S) {
1315  VisitExpr(S);
1316  ID.AddInteger(S->getKind());
1317  ID.AddInteger(S->getValue());
1318 }
1319 
1320 void StmtProfiler::VisitFloatingLiteral(const FloatingLiteral *S) {
1321  VisitExpr(S);
1322  S->getValue().Profile(ID);
1323  ID.AddBoolean(S->isExact());
1324  ID.AddInteger(S->getType()->castAs<BuiltinType>()->getKind());
1325 }
1326 
1327 void StmtProfiler::VisitImaginaryLiteral(const ImaginaryLiteral *S) {
1328  VisitExpr(S);
1329 }
1330 
1331 void StmtProfiler::VisitStringLiteral(const StringLiteral *S) {
1332  VisitExpr(S);
1333  ID.AddString(S->getBytes());
1334  ID.AddInteger(S->getKind());
1335 }
1336 
1337 void StmtProfiler::VisitParenExpr(const ParenExpr *S) {
1338  VisitExpr(S);
1339 }
1340 
1341 void StmtProfiler::VisitParenListExpr(const ParenListExpr *S) {
1342  VisitExpr(S);
1343 }
1344 
1345 void StmtProfiler::VisitUnaryOperator(const UnaryOperator *S) {
1346  VisitExpr(S);
1347  ID.AddInteger(S->getOpcode());
1348 }
1349 
1350 void StmtProfiler::VisitOffsetOfExpr(const OffsetOfExpr *S) {
1351  VisitType(S->getTypeSourceInfo()->getType());
1352  unsigned n = S->getNumComponents();
1353  for (unsigned i = 0; i < n; ++i) {
1354  const OffsetOfNode &ON = S->getComponent(i);
1355  ID.AddInteger(ON.getKind());
1356  switch (ON.getKind()) {
1357  case OffsetOfNode::Array:
1358  // Expressions handled below.
1359  break;
1360 
1361  case OffsetOfNode::Field:
1362  VisitDecl(ON.getField());
1363  break;
1364 
1366  VisitIdentifierInfo(ON.getFieldName());
1367  break;
1368 
1369  case OffsetOfNode::Base:
1370  // These nodes are implicit, and therefore don't need profiling.
1371  break;
1372  }
1373  }
1374 
1375  VisitExpr(S);
1376 }
1377 
1378 void
1379 StmtProfiler::VisitUnaryExprOrTypeTraitExpr(const UnaryExprOrTypeTraitExpr *S) {
1380  VisitExpr(S);
1381  ID.AddInteger(S->getKind());
1382  if (S->isArgumentType())
1383  VisitType(S->getArgumentType());
1384 }
1385 
1386 void StmtProfiler::VisitArraySubscriptExpr(const ArraySubscriptExpr *S) {
1387  VisitExpr(S);
1388 }
1389 
1390 void StmtProfiler::VisitMatrixSubscriptExpr(const MatrixSubscriptExpr *S) {
1391  VisitExpr(S);
1392 }
1393 
1394 void StmtProfiler::VisitOMPArraySectionExpr(const OMPArraySectionExpr *S) {
1395  VisitExpr(S);
1396 }
1397 
1398 void StmtProfiler::VisitOMPArrayShapingExpr(const OMPArrayShapingExpr *S) {
1399  VisitExpr(S);
1400 }
1401 
1402 void StmtProfiler::VisitOMPIteratorExpr(const OMPIteratorExpr *S) {
1403  VisitExpr(S);
1404  for (unsigned I = 0, E = S->numOfIterators(); I < E; ++I)
1405  VisitDecl(S->getIteratorDecl(I));
1406 }
1407 
1408 void StmtProfiler::VisitCallExpr(const CallExpr *S) {
1409  VisitExpr(S);
1410 }
1411 
1412 void StmtProfiler::VisitMemberExpr(const MemberExpr *S) {
1413  VisitExpr(S);
1414  VisitDecl(S->getMemberDecl());
1415  if (!Canonical)
1416  VisitNestedNameSpecifier(S->getQualifier());
1417  ID.AddBoolean(S->isArrow());
1418 }
1419 
1420 void StmtProfiler::VisitCompoundLiteralExpr(const CompoundLiteralExpr *S) {
1421  VisitExpr(S);
1422  ID.AddBoolean(S->isFileScope());
1423 }
1424 
1425 void StmtProfiler::VisitCastExpr(const CastExpr *S) {
1426  VisitExpr(S);
1427 }
1428 
1429 void StmtProfiler::VisitImplicitCastExpr(const ImplicitCastExpr *S) {
1430  VisitCastExpr(S);
1431  ID.AddInteger(S->getValueKind());
1432 }
1433 
1434 void StmtProfiler::VisitExplicitCastExpr(const ExplicitCastExpr *S) {
1435  VisitCastExpr(S);
1436  VisitType(S->getTypeAsWritten());
1437 }
1438 
1439 void StmtProfiler::VisitCStyleCastExpr(const CStyleCastExpr *S) {
1440  VisitExplicitCastExpr(S);
1441 }
1442 
1443 void StmtProfiler::VisitBinaryOperator(const BinaryOperator *S) {
1444  VisitExpr(S);
1445  ID.AddInteger(S->getOpcode());
1446 }
1447 
1448 void
1449 StmtProfiler::VisitCompoundAssignOperator(const CompoundAssignOperator *S) {
1450  VisitBinaryOperator(S);
1451 }
1452 
1453 void StmtProfiler::VisitConditionalOperator(const ConditionalOperator *S) {
1454  VisitExpr(S);
1455 }
1456 
1457 void StmtProfiler::VisitBinaryConditionalOperator(
1458  const BinaryConditionalOperator *S) {
1459  VisitExpr(S);
1460 }
1461 
1462 void StmtProfiler::VisitAddrLabelExpr(const AddrLabelExpr *S) {
1463  VisitExpr(S);
1464  VisitDecl(S->getLabel());
1465 }
1466 
1467 void StmtProfiler::VisitStmtExpr(const StmtExpr *S) {
1468  VisitExpr(S);
1469 }
1470 
1471 void StmtProfiler::VisitShuffleVectorExpr(const ShuffleVectorExpr *S) {
1472  VisitExpr(S);
1473 }
1474 
1475 void StmtProfiler::VisitConvertVectorExpr(const ConvertVectorExpr *S) {
1476  VisitExpr(S);
1477 }
1478 
1479 void StmtProfiler::VisitChooseExpr(const ChooseExpr *S) {
1480  VisitExpr(S);
1481 }
1482 
1483 void StmtProfiler::VisitGNUNullExpr(const GNUNullExpr *S) {
1484  VisitExpr(S);
1485 }
1486 
1487 void StmtProfiler::VisitVAArgExpr(const VAArgExpr *S) {
1488  VisitExpr(S);
1489 }
1490 
1491 void StmtProfiler::VisitInitListExpr(const InitListExpr *S) {
1492  if (S->getSyntacticForm()) {
1493  VisitInitListExpr(S->getSyntacticForm());
1494  return;
1495  }
1496 
1497  VisitExpr(S);
1498 }
1499 
1500 void StmtProfiler::VisitDesignatedInitExpr(const DesignatedInitExpr *S) {
1501  VisitExpr(S);
1502  ID.AddBoolean(S->usesGNUSyntax());
1503  for (const DesignatedInitExpr::Designator &D : S->designators()) {
1504  if (D.isFieldDesignator()) {
1505  ID.AddInteger(0);
1506  VisitName(D.getFieldName());
1507  continue;
1508  }
1509 
1510  if (D.isArrayDesignator()) {
1511  ID.AddInteger(1);
1512  } else {
1513  assert(D.isArrayRangeDesignator());
1514  ID.AddInteger(2);
1515  }
1516  ID.AddInteger(D.getFirstExprIndex());
1517  }
1518 }
1519 
1520 // Seems that if VisitInitListExpr() only works on the syntactic form of an
1521 // InitListExpr, then a DesignatedInitUpdateExpr is not encountered.
1522 void StmtProfiler::VisitDesignatedInitUpdateExpr(
1523  const DesignatedInitUpdateExpr *S) {
1524  llvm_unreachable("Unexpected DesignatedInitUpdateExpr in syntactic form of "
1525  "initializer");
1526 }
1527 
1528 void StmtProfiler::VisitArrayInitLoopExpr(const ArrayInitLoopExpr *S) {
1529  VisitExpr(S);
1530 }
1531 
1532 void StmtProfiler::VisitArrayInitIndexExpr(const ArrayInitIndexExpr *S) {
1533  VisitExpr(S);
1534 }
1535 
1536 void StmtProfiler::VisitNoInitExpr(const NoInitExpr *S) {
1537  llvm_unreachable("Unexpected NoInitExpr in syntactic form of initializer");
1538 }
1539 
1540 void StmtProfiler::VisitImplicitValueInitExpr(const ImplicitValueInitExpr *S) {
1541  VisitExpr(S);
1542 }
1543 
1544 void StmtProfiler::VisitExtVectorElementExpr(const ExtVectorElementExpr *S) {
1545  VisitExpr(S);
1546  VisitName(&S->getAccessor());
1547 }
1548 
1549 void StmtProfiler::VisitBlockExpr(const BlockExpr *S) {
1550  VisitExpr(S);
1551  VisitDecl(S->getBlockDecl());
1552 }
1553 
1554 void StmtProfiler::VisitGenericSelectionExpr(const GenericSelectionExpr *S) {
1555  VisitExpr(S);
1556  for (const GenericSelectionExpr::ConstAssociation Assoc :
1557  S->associations()) {
1558  QualType T = Assoc.getType();
1559  if (T.isNull())
1560  ID.AddPointer(nullptr);
1561  else
1562  VisitType(T);
1563  VisitExpr(Assoc.getAssociationExpr());
1564  }
1565 }
1566 
1567 void StmtProfiler::VisitPseudoObjectExpr(const PseudoObjectExpr *S) {
1568  VisitExpr(S);
1570  i = S->semantics_begin(), e = S->semantics_end(); i != e; ++i)
1571  // Normally, we would not profile the source expressions of OVEs.
1572  if (const OpaqueValueExpr *OVE = dyn_cast<OpaqueValueExpr>(*i))
1573  Visit(OVE->getSourceExpr());
1574 }
1575 
1576 void StmtProfiler::VisitAtomicExpr(const AtomicExpr *S) {
1577  VisitExpr(S);
1578  ID.AddInteger(S->getOp());
1579 }
1580 
1581 void StmtProfiler::VisitConceptSpecializationExpr(
1582  const ConceptSpecializationExpr *S) {
1583  VisitExpr(S);
1584  VisitDecl(S->getNamedConcept());
1585  for (const TemplateArgument &Arg : S->getTemplateArguments())
1586  VisitTemplateArgument(Arg);
1587 }
1588 
1589 void StmtProfiler::VisitRequiresExpr(const RequiresExpr *S) {
1590  VisitExpr(S);
1591  ID.AddInteger(S->getLocalParameters().size());
1592  for (ParmVarDecl *LocalParam : S->getLocalParameters())
1593  VisitDecl(LocalParam);
1594  ID.AddInteger(S->getRequirements().size());
1595  for (concepts::Requirement *Req : S->getRequirements()) {
1596  if (auto *TypeReq = dyn_cast<concepts::TypeRequirement>(Req)) {
1597  ID.AddInteger(concepts::Requirement::RK_Type);
1598  ID.AddBoolean(TypeReq->isSubstitutionFailure());
1599  if (!TypeReq->isSubstitutionFailure())
1600  VisitType(TypeReq->getType()->getType());
1601  } else if (auto *ExprReq = dyn_cast<concepts::ExprRequirement>(Req)) {
1603  ID.AddBoolean(ExprReq->isExprSubstitutionFailure());
1604  if (!ExprReq->isExprSubstitutionFailure())
1605  Visit(ExprReq->getExpr());
1606  // C++2a [expr.prim.req.compound]p1 Example:
1607  // [...] The compound-requirement in C1 requires that x++ is a valid
1608  // expression. It is equivalent to the simple-requirement x++; [...]
1609  // We therefore do not profile isSimple() here.
1610  ID.AddBoolean(ExprReq->getNoexceptLoc().isValid());
1612  ExprReq->getReturnTypeRequirement();
1613  if (RetReq.isEmpty()) {
1614  ID.AddInteger(0);
1615  } else if (RetReq.isTypeConstraint()) {
1616  ID.AddInteger(1);
1618  } else {
1619  assert(RetReq.isSubstitutionFailure());
1620  ID.AddInteger(2);
1621  }
1622  } else {
1624  auto *NestedReq = cast<concepts::NestedRequirement>(Req);
1625  ID.AddBoolean(NestedReq->isSubstitutionFailure());
1626  if (!NestedReq->isSubstitutionFailure())
1627  Visit(NestedReq->getConstraintExpr());
1628  }
1629  }
1630 }
1631 
1633  UnaryOperatorKind &UnaryOp,
1634  BinaryOperatorKind &BinaryOp) {
1635  switch (S->getOperator()) {
1636  case OO_None:
1637  case OO_New:
1638  case OO_Delete:
1639  case OO_Array_New:
1640  case OO_Array_Delete:
1641  case OO_Arrow:
1642  case OO_Conditional:
1644  llvm_unreachable("Invalid operator call kind");
1645 
1646  case OO_Plus:
1647  if (S->getNumArgs() == 1) {
1648  UnaryOp = UO_Plus;
1649  return Stmt::UnaryOperatorClass;
1650  }
1651 
1652  BinaryOp = BO_Add;
1653  return Stmt::BinaryOperatorClass;
1654 
1655  case OO_Minus:
1656  if (S->getNumArgs() == 1) {
1657  UnaryOp = UO_Minus;
1658  return Stmt::UnaryOperatorClass;
1659  }
1660 
1661  BinaryOp = BO_Sub;
1662  return Stmt::BinaryOperatorClass;
1663 
1664  case OO_Star:
1665  if (S->getNumArgs() == 1) {
1666  UnaryOp = UO_Deref;
1667  return Stmt::UnaryOperatorClass;
1668  }
1669 
1670  BinaryOp = BO_Mul;
1671  return Stmt::BinaryOperatorClass;
1672 
1673  case OO_Slash:
1674  BinaryOp = BO_Div;
1675  return Stmt::BinaryOperatorClass;
1676 
1677  case OO_Percent:
1678  BinaryOp = BO_Rem;
1679  return Stmt::BinaryOperatorClass;
1680 
1681  case OO_Caret:
1682  BinaryOp = BO_Xor;
1683  return Stmt::BinaryOperatorClass;
1684 
1685  case OO_Amp:
1686  if (S->getNumArgs() == 1) {
1687  UnaryOp = UO_AddrOf;
1688  return Stmt::UnaryOperatorClass;
1689  }
1690 
1691  BinaryOp = BO_And;
1692  return Stmt::BinaryOperatorClass;
1693 
1694  case OO_Pipe:
1695  BinaryOp = BO_Or;
1696  return Stmt::BinaryOperatorClass;
1697 
1698  case OO_Tilde:
1699  UnaryOp = UO_Not;
1700  return Stmt::UnaryOperatorClass;
1701 
1702  case OO_Exclaim:
1703  UnaryOp = UO_LNot;
1704  return Stmt::UnaryOperatorClass;
1705 
1706  case OO_Equal:
1707  BinaryOp = BO_Assign;
1708  return Stmt::BinaryOperatorClass;
1709 
1710  case OO_Less:
1711  BinaryOp = BO_LT;
1712  return Stmt::BinaryOperatorClass;
1713 
1714  case OO_Greater:
1715  BinaryOp = BO_GT;
1716  return Stmt::BinaryOperatorClass;
1717 
1718  case OO_PlusEqual:
1719  BinaryOp = BO_AddAssign;
1720  return Stmt::CompoundAssignOperatorClass;
1721 
1722  case OO_MinusEqual:
1723  BinaryOp = BO_SubAssign;
1724  return Stmt::CompoundAssignOperatorClass;
1725 
1726  case OO_StarEqual:
1727  BinaryOp = BO_MulAssign;
1728  return Stmt::CompoundAssignOperatorClass;
1729 
1730  case OO_SlashEqual:
1731  BinaryOp = BO_DivAssign;
1732  return Stmt::CompoundAssignOperatorClass;
1733 
1734  case OO_PercentEqual:
1735  BinaryOp = BO_RemAssign;
1736  return Stmt::CompoundAssignOperatorClass;
1737 
1738  case OO_CaretEqual:
1739  BinaryOp = BO_XorAssign;
1740  return Stmt::CompoundAssignOperatorClass;
1741 
1742  case OO_AmpEqual:
1743  BinaryOp = BO_AndAssign;
1744  return Stmt::CompoundAssignOperatorClass;
1745 
1746  case OO_PipeEqual:
1747  BinaryOp = BO_OrAssign;
1748  return Stmt::CompoundAssignOperatorClass;
1749 
1750  case OO_LessLess:
1751  BinaryOp = BO_Shl;
1752  return Stmt::BinaryOperatorClass;
1753 
1754  case OO_GreaterGreater:
1755  BinaryOp = BO_Shr;
1756  return Stmt::BinaryOperatorClass;
1757 
1758  case OO_LessLessEqual:
1759  BinaryOp = BO_ShlAssign;
1760  return Stmt::CompoundAssignOperatorClass;
1761 
1762  case OO_GreaterGreaterEqual:
1763  BinaryOp = BO_ShrAssign;
1764  return Stmt::CompoundAssignOperatorClass;
1765 
1766  case OO_EqualEqual:
1767  BinaryOp = BO_EQ;
1768  return Stmt::BinaryOperatorClass;
1769 
1770  case OO_ExclaimEqual:
1771  BinaryOp = BO_NE;
1772  return Stmt::BinaryOperatorClass;
1773 
1774  case OO_LessEqual:
1775  BinaryOp = BO_LE;
1776  return Stmt::BinaryOperatorClass;
1777 
1778  case OO_GreaterEqual:
1779  BinaryOp = BO_GE;
1780  return Stmt::BinaryOperatorClass;
1781 
1782  case OO_Spaceship:
1783  BinaryOp = BO_Cmp;
1784  return Stmt::BinaryOperatorClass;
1785 
1786  case OO_AmpAmp:
1787  BinaryOp = BO_LAnd;
1788  return Stmt::BinaryOperatorClass;
1789 
1790  case OO_PipePipe:
1791  BinaryOp = BO_LOr;
1792  return Stmt::BinaryOperatorClass;
1793 
1794  case OO_PlusPlus:
1795  UnaryOp = S->getNumArgs() == 1? UO_PreInc
1796  : UO_PostInc;
1797  return Stmt::UnaryOperatorClass;
1798 
1799  case OO_MinusMinus:
1800  UnaryOp = S->getNumArgs() == 1? UO_PreDec
1801  : UO_PostDec;
1802  return Stmt::UnaryOperatorClass;
1803 
1804  case OO_Comma:
1805  BinaryOp = BO_Comma;
1806  return Stmt::BinaryOperatorClass;
1807 
1808  case OO_ArrowStar:
1809  BinaryOp = BO_PtrMemI;
1810  return Stmt::BinaryOperatorClass;
1811 
1812  case OO_Subscript:
1813  return Stmt::ArraySubscriptExprClass;
1814 
1815  case OO_Call:
1816  return Stmt::CallExprClass;
1817 
1818  case OO_Coawait:
1819  UnaryOp = UO_Coawait;
1820  return Stmt::UnaryOperatorClass;
1821  }
1822 
1823  llvm_unreachable("Invalid overloaded operator expression");
1824 }
1825 
1826 #if defined(_MSC_VER) && !defined(__clang__)
1827 #if _MSC_VER == 1911
1828 // Work around https://developercommunity.visualstudio.com/content/problem/84002/clang-cl-when-built-with-vc-2017-crashes-cause-vc.html
1829 // MSVC 2017 update 3 miscompiles this function, and a clang built with it
1830 // will crash in stage 2 of a bootstrap build.
1831 #pragma optimize("", off)
1832 #endif
1833 #endif
1834 
1835 void StmtProfiler::VisitCXXOperatorCallExpr(const CXXOperatorCallExpr *S) {
1836  if (S->isTypeDependent()) {
1837  // Type-dependent operator calls are profiled like their underlying
1838  // syntactic operator.
1839  //
1840  // An operator call to operator-> is always implicit, so just skip it. The
1841  // enclosing MemberExpr will profile the actual member access.
1842  if (S->getOperator() == OO_Arrow)
1843  return Visit(S->getArg(0));
1844 
1845  UnaryOperatorKind UnaryOp = UO_Extension;
1846  BinaryOperatorKind BinaryOp = BO_Comma;
1847  Stmt::StmtClass SC = DecodeOperatorCall(S, UnaryOp, BinaryOp);
1848 
1849  ID.AddInteger(SC);
1850  for (unsigned I = 0, N = S->getNumArgs(); I != N; ++I)
1851  Visit(S->getArg(I));
1852  if (SC == Stmt::UnaryOperatorClass)
1853  ID.AddInteger(UnaryOp);
1854  else if (SC == Stmt::BinaryOperatorClass ||
1855  SC == Stmt::CompoundAssignOperatorClass)
1856  ID.AddInteger(BinaryOp);
1857  else
1858  assert(SC == Stmt::ArraySubscriptExprClass || SC == Stmt::CallExprClass);
1859 
1860  return;
1861  }
1862 
1863  VisitCallExpr(S);
1864  ID.AddInteger(S->getOperator());
1865 }
1866 
1867 void StmtProfiler::VisitCXXRewrittenBinaryOperator(
1868  const CXXRewrittenBinaryOperator *S) {
1869  // If a rewritten operator were ever to be type-dependent, we should profile
1870  // it following its syntactic operator.
1871  assert(!S->isTypeDependent() &&
1872  "resolved rewritten operator should never be type-dependent");
1873  ID.AddBoolean(S->isReversed());
1874  VisitExpr(S->getSemanticForm());
1875 }
1876 
1877 #if defined(_MSC_VER) && !defined(__clang__)
1878 #if _MSC_VER == 1911
1879 #pragma optimize("", on)
1880 #endif
1881 #endif
1882 
1883 void StmtProfiler::VisitCXXMemberCallExpr(const CXXMemberCallExpr *S) {
1884  VisitCallExpr(S);
1885 }
1886 
1887 void StmtProfiler::VisitCUDAKernelCallExpr(const CUDAKernelCallExpr *S) {
1888  VisitCallExpr(S);
1889 }
1890 
1891 void StmtProfiler::VisitAsTypeExpr(const AsTypeExpr *S) {
1892  VisitExpr(S);
1893 }
1894 
1895 void StmtProfiler::VisitCXXNamedCastExpr(const CXXNamedCastExpr *S) {
1896  VisitExplicitCastExpr(S);
1897 }
1898 
1899 void StmtProfiler::VisitCXXStaticCastExpr(const CXXStaticCastExpr *S) {
1900  VisitCXXNamedCastExpr(S);
1901 }
1902 
1903 void StmtProfiler::VisitCXXDynamicCastExpr(const CXXDynamicCastExpr *S) {
1904  VisitCXXNamedCastExpr(S);
1905 }
1906 
1907 void
1908 StmtProfiler::VisitCXXReinterpretCastExpr(const CXXReinterpretCastExpr *S) {
1909  VisitCXXNamedCastExpr(S);
1910 }
1911 
1912 void StmtProfiler::VisitCXXConstCastExpr(const CXXConstCastExpr *S) {
1913  VisitCXXNamedCastExpr(S);
1914 }
1915 
1916 void StmtProfiler::VisitBuiltinBitCastExpr(const BuiltinBitCastExpr *S) {
1917  VisitExpr(S);
1918  VisitType(S->getTypeInfoAsWritten()->getType());
1919 }
1920 
1921 void StmtProfiler::VisitCXXAddrspaceCastExpr(const CXXAddrspaceCastExpr *S) {
1922  VisitCXXNamedCastExpr(S);
1923 }
1924 
1925 void StmtProfiler::VisitUserDefinedLiteral(const UserDefinedLiteral *S) {
1926  VisitCallExpr(S);
1927 }
1928 
1929 void StmtProfiler::VisitCXXBoolLiteralExpr(const CXXBoolLiteralExpr *S) {
1930  VisitExpr(S);
1931  ID.AddBoolean(S->getValue());
1932 }
1933 
1934 void StmtProfiler::VisitCXXNullPtrLiteralExpr(const CXXNullPtrLiteralExpr *S) {
1935  VisitExpr(S);
1936 }
1937 
1938 void StmtProfiler::VisitCXXStdInitializerListExpr(
1939  const CXXStdInitializerListExpr *S) {
1940  VisitExpr(S);
1941 }
1942 
1943 void StmtProfiler::VisitCXXTypeidExpr(const CXXTypeidExpr *S) {
1944  VisitExpr(S);
1945  if (S->isTypeOperand())
1946  VisitType(S->getTypeOperandSourceInfo()->getType());
1947 }
1948 
1949 void StmtProfiler::VisitCXXUuidofExpr(const CXXUuidofExpr *S) {
1950  VisitExpr(S);
1951  if (S->isTypeOperand())
1952  VisitType(S->getTypeOperandSourceInfo()->getType());
1953 }
1954 
1955 void StmtProfiler::VisitMSPropertyRefExpr(const MSPropertyRefExpr *S) {
1956  VisitExpr(S);
1957  VisitDecl(S->getPropertyDecl());
1958 }
1959 
1960 void StmtProfiler::VisitMSPropertySubscriptExpr(
1961  const MSPropertySubscriptExpr *S) {
1962  VisitExpr(S);
1963 }
1964 
1965 void StmtProfiler::VisitCXXThisExpr(const CXXThisExpr *S) {
1966  VisitExpr(S);
1967  ID.AddBoolean(S->isImplicit());
1968 }
1969 
1970 void StmtProfiler::VisitCXXThrowExpr(const CXXThrowExpr *S) {
1971  VisitExpr(S);
1972 }
1973 
1974 void StmtProfiler::VisitCXXDefaultArgExpr(const CXXDefaultArgExpr *S) {
1975  VisitExpr(S);
1976  VisitDecl(S->getParam());
1977 }
1978 
1979 void StmtProfiler::VisitCXXDefaultInitExpr(const CXXDefaultInitExpr *S) {
1980  VisitExpr(S);
1981  VisitDecl(S->getField());
1982 }
1983 
1984 void StmtProfiler::VisitCXXBindTemporaryExpr(const CXXBindTemporaryExpr *S) {
1985  VisitExpr(S);
1986  VisitDecl(
1987  const_cast<CXXDestructorDecl *>(S->getTemporary()->getDestructor()));
1988 }
1989 
1990 void StmtProfiler::VisitCXXConstructExpr(const CXXConstructExpr *S) {
1991  VisitExpr(S);
1992  VisitDecl(S->getConstructor());
1993  ID.AddBoolean(S->isElidable());
1994 }
1995 
1996 void StmtProfiler::VisitCXXInheritedCtorInitExpr(
1997  const CXXInheritedCtorInitExpr *S) {
1998  VisitExpr(S);
1999  VisitDecl(S->getConstructor());
2000 }
2001 
2002 void StmtProfiler::VisitCXXFunctionalCastExpr(const CXXFunctionalCastExpr *S) {
2003  VisitExplicitCastExpr(S);
2004 }
2005 
2006 void
2007 StmtProfiler::VisitCXXTemporaryObjectExpr(const CXXTemporaryObjectExpr *S) {
2008  VisitCXXConstructExpr(S);
2009 }
2010 
2011 void
2012 StmtProfiler::VisitLambdaExpr(const LambdaExpr *S) {
2013  // Do not recursively visit the children of this expression. Profiling the
2014  // body would result in unnecessary work, and is not safe to do during
2015  // deserialization.
2016  VisitStmtNoChildren(S);
2017 
2018  // C++20 [temp.over.link]p5:
2019  // Two lambda-expressions are never considered equivalent.
2020  VisitDecl(S->getLambdaClass());
2021 }
2022 
2023 void
2024 StmtProfiler::VisitCXXScalarValueInitExpr(const CXXScalarValueInitExpr *S) {
2025  VisitExpr(S);
2026 }
2027 
2028 void StmtProfiler::VisitCXXDeleteExpr(const CXXDeleteExpr *S) {
2029  VisitExpr(S);
2030  ID.AddBoolean(S->isGlobalDelete());
2031  ID.AddBoolean(S->isArrayForm());
2032  VisitDecl(S->getOperatorDelete());
2033 }
2034 
2035 void StmtProfiler::VisitCXXNewExpr(const CXXNewExpr *S) {
2036  VisitExpr(S);
2037  VisitType(S->getAllocatedType());
2038  VisitDecl(S->getOperatorNew());
2039  VisitDecl(S->getOperatorDelete());
2040  ID.AddBoolean(S->isArray());
2041  ID.AddInteger(S->getNumPlacementArgs());
2042  ID.AddBoolean(S->isGlobalNew());
2043  ID.AddBoolean(S->isParenTypeId());
2044  ID.AddInteger(S->getInitializationStyle());
2045 }
2046 
2047 void
2048 StmtProfiler::VisitCXXPseudoDestructorExpr(const CXXPseudoDestructorExpr *S) {
2049  VisitExpr(S);
2050  ID.AddBoolean(S->isArrow());
2051  VisitNestedNameSpecifier(S->getQualifier());
2052  ID.AddBoolean(S->getScopeTypeInfo() != nullptr);
2053  if (S->getScopeTypeInfo())
2054  VisitType(S->getScopeTypeInfo()->getType());
2055  ID.AddBoolean(S->getDestroyedTypeInfo() != nullptr);
2056  if (S->getDestroyedTypeInfo())
2057  VisitType(S->getDestroyedType());
2058  else
2059  VisitIdentifierInfo(S->getDestroyedTypeIdentifier());
2060 }
2061 
2062 void StmtProfiler::VisitOverloadExpr(const OverloadExpr *S) {
2063  VisitExpr(S);
2064  VisitNestedNameSpecifier(S->getQualifier());
2065  VisitName(S->getName(), /*TreatAsDecl*/ true);
2066  ID.AddBoolean(S->hasExplicitTemplateArgs());
2067  if (S->hasExplicitTemplateArgs())
2068  VisitTemplateArguments(S->getTemplateArgs(), S->getNumTemplateArgs());
2069 }
2070 
2071 void
2072 StmtProfiler::VisitUnresolvedLookupExpr(const UnresolvedLookupExpr *S) {
2073  VisitOverloadExpr(S);
2074 }
2075 
2076 void StmtProfiler::VisitTypeTraitExpr(const TypeTraitExpr *S) {
2077  VisitExpr(S);
2078  ID.AddInteger(S->getTrait());
2079  ID.AddInteger(S->getNumArgs());
2080  for (unsigned I = 0, N = S->getNumArgs(); I != N; ++I)
2081  VisitType(S->getArg(I)->getType());
2082 }
2083 
2084 void StmtProfiler::VisitArrayTypeTraitExpr(const ArrayTypeTraitExpr *S) {
2085  VisitExpr(S);
2086  ID.AddInteger(S->getTrait());
2087  VisitType(S->getQueriedType());
2088 }
2089 
2090 void StmtProfiler::VisitExpressionTraitExpr(const ExpressionTraitExpr *S) {
2091  VisitExpr(S);
2092  ID.AddInteger(S->getTrait());
2093  VisitExpr(S->getQueriedExpression());
2094 }
2095 
2096 void StmtProfiler::VisitDependentScopeDeclRefExpr(
2097  const DependentScopeDeclRefExpr *S) {
2098  VisitExpr(S);
2099  VisitName(S->getDeclName());
2100  VisitNestedNameSpecifier(S->getQualifier());
2101  ID.AddBoolean(S->hasExplicitTemplateArgs());
2102  if (S->hasExplicitTemplateArgs())
2103  VisitTemplateArguments(S->getTemplateArgs(), S->getNumTemplateArgs());
2104 }
2105 
2106 void StmtProfiler::VisitExprWithCleanups(const ExprWithCleanups *S) {
2107  VisitExpr(S);
2108 }
2109 
2110 void StmtProfiler::VisitCXXUnresolvedConstructExpr(
2111  const CXXUnresolvedConstructExpr *S) {
2112  VisitExpr(S);
2113  VisitType(S->getTypeAsWritten());
2114  ID.AddInteger(S->isListInitialization());
2115 }
2116 
2117 void StmtProfiler::VisitCXXDependentScopeMemberExpr(
2118  const CXXDependentScopeMemberExpr *S) {
2119  ID.AddBoolean(S->isImplicitAccess());
2120  if (!S->isImplicitAccess()) {
2121  VisitExpr(S);
2122  ID.AddBoolean(S->isArrow());
2123  }
2124  VisitNestedNameSpecifier(S->getQualifier());
2125  VisitName(S->getMember());
2126  ID.AddBoolean(S->hasExplicitTemplateArgs());
2127  if (S->hasExplicitTemplateArgs())
2128  VisitTemplateArguments(S->getTemplateArgs(), S->getNumTemplateArgs());
2129 }
2130 
2131 void StmtProfiler::VisitUnresolvedMemberExpr(const UnresolvedMemberExpr *S) {
2132  ID.AddBoolean(S->isImplicitAccess());
2133  if (!S->isImplicitAccess()) {
2134  VisitExpr(S);
2135  ID.AddBoolean(S->isArrow());
2136  }
2137  VisitNestedNameSpecifier(S->getQualifier());
2138  VisitName(S->getMemberName());
2139  ID.AddBoolean(S->hasExplicitTemplateArgs());
2140  if (S->hasExplicitTemplateArgs())
2141  VisitTemplateArguments(S->getTemplateArgs(), S->getNumTemplateArgs());
2142 }
2143 
2144 void StmtProfiler::VisitCXXNoexceptExpr(const CXXNoexceptExpr *S) {
2145  VisitExpr(S);
2146 }
2147 
2148 void StmtProfiler::VisitPackExpansionExpr(const PackExpansionExpr *S) {
2149  VisitExpr(S);
2150 }
2151 
2152 void StmtProfiler::VisitSizeOfPackExpr(const SizeOfPackExpr *S) {
2153  VisitExpr(S);
2154  VisitDecl(S->getPack());
2155  if (S->isPartiallySubstituted()) {
2156  auto Args = S->getPartialArguments();
2157  ID.AddInteger(Args.size());
2158  for (const auto &TA : Args)
2159  VisitTemplateArgument(TA);
2160  } else {
2161  ID.AddInteger(0);
2162  }
2163 }
2164 
2165 void StmtProfiler::VisitSubstNonTypeTemplateParmPackExpr(
2167  VisitExpr(S);
2168  VisitDecl(S->getParameterPack());
2169  VisitTemplateArgument(S->getArgumentPack());
2170 }
2171 
2172 void StmtProfiler::VisitSubstNonTypeTemplateParmExpr(
2173  const SubstNonTypeTemplateParmExpr *E) {
2174  // Profile exactly as the replacement expression.
2175  Visit(E->getReplacement());
2176 }
2177 
2178 void StmtProfiler::VisitFunctionParmPackExpr(const FunctionParmPackExpr *S) {
2179  VisitExpr(S);
2180  VisitDecl(S->getParameterPack());
2181  ID.AddInteger(S->getNumExpansions());
2182  for (FunctionParmPackExpr::iterator I = S->begin(), E = S->end(); I != E; ++I)
2183  VisitDecl(*I);
2184 }
2185 
2186 void StmtProfiler::VisitMaterializeTemporaryExpr(
2187  const MaterializeTemporaryExpr *S) {
2188  VisitExpr(S);
2189 }
2190 
2191 void StmtProfiler::VisitCXXFoldExpr(const CXXFoldExpr *S) {
2192  VisitExpr(S);
2193  ID.AddInteger(S->getOperator());
2194 }
2195 
2196 void StmtProfiler::VisitCoroutineBodyStmt(const CoroutineBodyStmt *S) {
2197  VisitStmt(S);
2198 }
2199 
2200 void StmtProfiler::VisitCoreturnStmt(const CoreturnStmt *S) {
2201  VisitStmt(S);
2202 }
2203 
2204 void StmtProfiler::VisitCoawaitExpr(const CoawaitExpr *S) {
2205  VisitExpr(S);
2206 }
2207 
2208 void StmtProfiler::VisitDependentCoawaitExpr(const DependentCoawaitExpr *S) {
2209  VisitExpr(S);
2210 }
2211 
2212 void StmtProfiler::VisitCoyieldExpr(const CoyieldExpr *S) {
2213  VisitExpr(S);
2214 }
2215 
2216 void StmtProfiler::VisitOpaqueValueExpr(const OpaqueValueExpr *E) {
2217  VisitExpr(E);
2218 }
2219 
2220 void StmtProfiler::VisitTypoExpr(const TypoExpr *E) {
2221  VisitExpr(E);
2222 }
2223 
2224 void StmtProfiler::VisitSourceLocExpr(const SourceLocExpr *E) {
2225  VisitExpr(E);
2226 }
2227 
2228 void StmtProfiler::VisitRecoveryExpr(const RecoveryExpr *E) { VisitExpr(E); }
2229 
2230 void StmtProfiler::VisitObjCStringLiteral(const ObjCStringLiteral *S) {
2231  VisitExpr(S);
2232 }
2233 
2234 void StmtProfiler::VisitObjCBoxedExpr(const ObjCBoxedExpr *E) {
2235  VisitExpr(E);
2236 }
2237 
2238 void StmtProfiler::VisitObjCArrayLiteral(const ObjCArrayLiteral *E) {
2239  VisitExpr(E);
2240 }
2241 
2242 void StmtProfiler::VisitObjCDictionaryLiteral(const ObjCDictionaryLiteral *E) {
2243  VisitExpr(E);
2244 }
2245 
2246 void StmtProfiler::VisitObjCEncodeExpr(const ObjCEncodeExpr *S) {
2247  VisitExpr(S);
2248  VisitType(S->getEncodedType());
2249 }
2250 
2251 void StmtProfiler::VisitObjCSelectorExpr(const ObjCSelectorExpr *S) {
2252  VisitExpr(S);
2253  VisitName(S->getSelector());
2254 }
2255 
2256 void StmtProfiler::VisitObjCProtocolExpr(const ObjCProtocolExpr *S) {
2257  VisitExpr(S);
2258  VisitDecl(S->getProtocol());
2259 }
2260 
2261 void StmtProfiler::VisitObjCIvarRefExpr(const ObjCIvarRefExpr *S) {
2262  VisitExpr(S);
2263  VisitDecl(S->getDecl());
2264  ID.AddBoolean(S->isArrow());
2265  ID.AddBoolean(S->isFreeIvar());
2266 }
2267 
2268 void StmtProfiler::VisitObjCPropertyRefExpr(const ObjCPropertyRefExpr *S) {
2269  VisitExpr(S);
2270  if (S->isImplicitProperty()) {
2271  VisitDecl(S->getImplicitPropertyGetter());
2272  VisitDecl(S->getImplicitPropertySetter());
2273  } else {
2274  VisitDecl(S->getExplicitProperty());
2275  }
2276  if (S->isSuperReceiver()) {
2277  ID.AddBoolean(S->isSuperReceiver());
2278  VisitType(S->getSuperReceiverType());
2279  }
2280 }
2281 
2282 void StmtProfiler::VisitObjCSubscriptRefExpr(const ObjCSubscriptRefExpr *S) {
2283  VisitExpr(S);
2284  VisitDecl(S->getAtIndexMethodDecl());
2285  VisitDecl(S->setAtIndexMethodDecl());
2286 }
2287 
2288 void StmtProfiler::VisitObjCMessageExpr(const ObjCMessageExpr *S) {
2289  VisitExpr(S);
2290  VisitName(S->getSelector());
2291  VisitDecl(S->getMethodDecl());
2292 }
2293 
2294 void StmtProfiler::VisitObjCIsaExpr(const ObjCIsaExpr *S) {
2295  VisitExpr(S);
2296  ID.AddBoolean(S->isArrow());
2297 }
2298 
2299 void StmtProfiler::VisitObjCBoolLiteralExpr(const ObjCBoolLiteralExpr *S) {
2300  VisitExpr(S);
2301  ID.AddBoolean(S->getValue());
2302 }
2303 
2304 void StmtProfiler::VisitObjCIndirectCopyRestoreExpr(
2305  const ObjCIndirectCopyRestoreExpr *S) {
2306  VisitExpr(S);
2307  ID.AddBoolean(S->shouldCopy());
2308 }
2309 
2310 void StmtProfiler::VisitObjCBridgedCastExpr(const ObjCBridgedCastExpr *S) {
2311  VisitExplicitCastExpr(S);
2312  ID.AddBoolean(S->getBridgeKind());
2313 }
2314 
2315 void StmtProfiler::VisitObjCAvailabilityCheckExpr(
2316  const ObjCAvailabilityCheckExpr *S) {
2317  VisitExpr(S);
2318 }
2319 
2320 void StmtProfiler::VisitTemplateArguments(const TemplateArgumentLoc *Args,
2321  unsigned NumArgs) {
2322  ID.AddInteger(NumArgs);
2323  for (unsigned I = 0; I != NumArgs; ++I)
2324  VisitTemplateArgument(Args[I].getArgument());
2325 }
2326 
2327 void StmtProfiler::VisitTemplateArgument(const TemplateArgument &Arg) {
2328  // Mostly repetitive with TemplateArgument::Profile!
2329  ID.AddInteger(Arg.getKind());
2330  switch (Arg.getKind()) {
2332  break;
2333 
2335  VisitType(Arg.getAsType());
2336  break;
2337 
2340  VisitTemplateName(Arg.getAsTemplateOrTemplatePattern());
2341  break;
2342 
2344  VisitType(Arg.getParamTypeForDecl());
2345  // FIXME: Do we need to recursively decompose template parameter objects?
2346  VisitDecl(Arg.getAsDecl());
2347  break;
2348 
2350  VisitType(Arg.getNullPtrType());
2351  break;
2352 
2354  VisitType(Arg.getIntegralType());
2355  Arg.getAsIntegral().Profile(ID);
2356  break;
2357 
2359  Visit(Arg.getAsExpr());
2360  break;
2361 
2363  for (const auto &P : Arg.pack_elements())
2364  VisitTemplateArgument(P);
2365  break;
2366  }
2367 }
2368 
2369 void Stmt::Profile(llvm::FoldingSetNodeID &ID, const ASTContext &Context,
2370  bool Canonical) const {
2371  StmtProfilerWithPointers Profiler(ID, Context, Canonical);
2372  Profiler.Visit(this);
2373 }
2374 
2375 void Stmt::ProcessODRHash(llvm::FoldingSetNodeID &ID,
2376  class ODRHash &Hash) const {
2377  StmtProfilerWithoutPointers Profiler(ID, Hash);
2378  Profiler.Visit(this);
2379 }
clang::ArrayInitIndexExpr
Represents the index of the current element of an array being initialized by an ArrayInitLoopExpr.
Definition: Expr.h:5479
clang::BuiltinType
This class is used for builtin types like 'int'.
Definition: Type.h:2620
clang::IndirectGotoStmt
IndirectGotoStmt - This represents an indirect goto.
Definition: Stmt.h:2680
clang::LabelStmt
LabelStmt - Represents a label, which has a substatement.
Definition: Stmt.h:1835
clang::ExpressionTraitExpr
An expression trait intrinsic.
Definition: ExprCXX.h:2847
clang::OMPForDirective
This represents '#pragma omp for' directive.
Definition: StmtOpenMP.h:1632
clang::OMPPartialClause
Representation of the 'partial' clause of the '#pragma omp unroll' directive.
Definition: OpenMPClause.h:1017
clang::OMPIteratorExpr
OpenMP 5.0 [2.1.6 Iterators] Iterators are identifiers that expand to multiple values in the clause o...
Definition: ExprOpenMP.h:272
clang::MatrixSubscriptExpr
MatrixSubscriptExpr - Matrix subscript expression for the MatrixType extension.
Definition: Expr.h:2732
clang::SubstNonTypeTemplateParmExpr
Represents a reference to a non-type template parameter that has been substituted with a template arg...
Definition: ExprCXX.h:4269
clang::OMPAtClause
This represents 'at' clause in the '#pragma omp error' directive.
Definition: OpenMPClause.h:1573
clang::AtomicExpr
AtomicExpr - Variadic atomic builtins: __atomic_exchange, __atomic_fetch_*, __atomic_load,...
Definition: Expr.h:6239
clang::OMPMasterTaskLoopSimdDirective
This represents '#pragma omp master taskloop simd' directive.
Definition: StmtOpenMP.h:3950
clang::CaseStmt
CaseStmt - Represent a case statement.
Definition: Stmt.h:1603
clang::OMPTaskyieldDirective
This represents '#pragma omp taskyield' directive.
Definition: StmtOpenMP.h:2526
clang::ImaginaryLiteral
ImaginaryLiteral - We support imaginary integer and floating point literals, like "1....
Definition: Expr.h:1727
clang::OMPDestroyClause
This represents 'destroy' clause in the '#pragma omp depobj' directive or the '#pragma omp interop' d...
Definition: OpenMPClause.h:8181
clang::OMPLastprivateClause
This represents clause 'lastprivate' in the '#pragma omp ...' directives.
Definition: OpenMPClause.h:2953
clang::ArrayTypeTraitExpr
An Embarcadero array type trait, as used in the implementation of __array_rank and __array_extent.
Definition: ExprCXX.h:2777
clang::ObjCBoxedExpr
ObjCBoxedExpr - used for generalized expression boxing.
Definition: ExprObjC.h:128
clang::CXXBoolLiteralExpr
A boolean literal, per ([C++ lex.bool] Boolean literals).
Definition: ExprCXX.h:721
clang::AsTypeExpr
AsTypeExpr - Clang builtin function __builtin_astype [OpenCL 6.2.4.2] This AST node provides support ...
Definition: Expr.h:6036
clang::ODRHash::AddDecl
void AddDecl(const Decl *D)
Definition: ODRHash.cpp:728
clang::OffsetOfExpr
OffsetOfExpr - [C99 7.17] - This represents an expression of the form offsetof(record-type,...
Definition: Expr.h:2453
clang::OMPUsesAllocatorsClause::Data::Allocator
Expr * Allocator
Allocator.
Definition: OpenMPClause.h:8627
clang::concepts::ExprRequirement::ReturnTypeRequirement::getTypeConstraint
const TypeConstraint * getTypeConstraint() const
Definition: ExprConcepts.cpp:107
clang::CXXPseudoDestructorExpr
Represents a C++ pseudo-destructor (C++ [expr.pseudo]).
Definition: ExprCXX.h:2541
clang::ConstOMPClauseVisitor
Definition: OpenMPClause.h:9037
clang::OMPSeverityClause
This represents 'severity' clause in the '#pragma omp error' directive.
Definition: OpenMPClause.h:1652
clang::OMPPriorityClause
This represents 'priority' clause in the '#pragma omp ...' directive.
Definition: OpenMPClause.h:6343
clang::OMPTileDirective
This represents the '#pragma omp tile' loop transformation directive.
Definition: StmtOpenMP.h:5492
clang::SwitchStmt
SwitchStmt - This represents a 'switch' stmt.
Definition: Stmt.h:2186
clang::GenericSelectionExpr::ConstAssociation
AssociationTy< true > ConstAssociation
Definition: Expr.h:5791
clang::OMPMaskedDirective
This represents '#pragma omp masked' directive.
Definition: StmtOpenMP.h:5819
clang::WhileStmt
WhileStmt - This represents a 'while' stmt.
Definition: Stmt.h:2377
clang::NullStmt
NullStmt - This is the null statement ";": C99 6.8.3p3.
Definition: Stmt.h:1375
clang::OMPInitClause
This represents the 'init' clause in '#pragma omp ...' directives.
Definition: OpenMPClause.h:7985
clang::TemplateArgument::getAsTemplateOrTemplatePattern
TemplateName getAsTemplateOrTemplatePattern() const
Retrieve the template argument as a template name; if the argument is a pack expansion,...
Definition: TemplateBase.h:299
clang::CXXReinterpretCastExpr
A C++ reinterpret_cast expression (C++ [expr.reinterpret.cast]).
Definition: ExprCXX.h:521
clang::TemplateArgument::pack_elements
ArrayRef< TemplateArgument > pack_elements() const
Iterator range referencing all of the elements of a template argument pack.
Definition: TemplateBase.h:365
clang::TemplateArgument::Null
@ Null
Represents an empty template argument, e.g., one that has not been deduced.
Definition: TemplateBase.h:67
clang::OMPParallelMasterTaskLoopDirective
This represents '#pragma omp parallel master taskloop' directive.
Definition: StmtOpenMP.h:4081
clang::OMPTargetParallelGenericLoopDirective
This represents '#pragma omp target parallel loop' directive.
Definition: StmtOpenMP.h:6167
clang::OMPDepobjClause
This represents implicit clause 'depobj' for the '#pragma omp depobj' directive.
Definition: OpenMPClause.h:4884
clang::DesignatedInitExpr
Represents a C99 designated initializer expression.
Definition: Expr.h:5034
clang::OMPTargetTeamsDistributeDirective
This represents '#pragma omp target teams distribute' combined directive.
Definition: StmtOpenMP.h:5199
clang::SubstNonTypeTemplateParmPackExpr
Represents a reference to a non-type template parameter pack that has been substituted with a non-tem...
Definition: ExprCXX.h:4354
clang::OMPTargetTeamsDistributeSimdDirective
This represents '#pragma omp target teams distribute simd' combined directive.
Definition: StmtOpenMP.h:5434
clang::OMPDefaultmapClause
This represents 'defaultmap' clause in the '#pragma omp ...' directive.
Definition: OpenMPClause.h:6822
clang::OMPCanonicalLoop
Representation of an OpenMP canonical loop.
Definition: StmtOpenMP.h:142
clang::MSPropertyRefExpr
A member reference to an MSPropertyDecl.
Definition: ExprCXX.h:930
clang::ODRHash::AddDeclarationName
void AddDeclarationName(DeclarationName Name, bool TreatAsDecl=false)
Definition: ODRHash.cpp:34
clang::ParenListExpr
Definition: Expr.h:5542
clang::OffsetOfNode::getKind
Kind getKind() const
Determine what kind of offsetof node this is.
Definition: Expr.h:2403
clang::TemplateArgument::getIntegralType
QualType getIntegralType() const
Retrieve the type of the integral value.
Definition: TemplateBase.h:326
clang::OMPThreadsClause
This represents 'threads' clause in the '#pragma omp ...' directive.
Definition: OpenMPClause.h:5215
clang::OMPMasterDirective
This represents '#pragma omp master' directive.
Definition: StmtOpenMP.h:1975
clang::OMPAllocatorClause
This represents 'allocator' clause in the '#pragma omp ...' directive.
Definition: OpenMPClause.h:270
clang::Stmt::StmtClass
StmtClass
Definition: Stmt.h:73
clang::OMPIfClause
This represents 'if' clause in the '#pragma omp ...' directive.
Definition: OpenMPClause.h:505
clang::NoInitExpr
Represents a place-holder for an object not to be initialized by anything.
Definition: Expr.h:5335
clang::OMPLinearClause
This represents clause 'linear' in the '#pragma omp ...' directives.
Definition: OpenMPClause.h:4087
clang::OMPCopyinClause
This represents clause 'copyin' in the '#pragma omp ...' directives.
Definition: OpenMPClause.h:4462
clang::OMPPrivateClause
This represents clause 'private' in the '#pragma omp ...' directives.
Definition: OpenMPClause.h:2706
clang::OffsetOfNode::Array
@ Array
An index into an array.
Definition: Expr.h:2354
clang::OMPTaskwaitDirective
This represents '#pragma omp taskwait' directive.
Definition: StmtOpenMP.h:2618
clang::TemplateArgument::getParamTypeForDecl
QualType getParamTypeForDecl() const
Definition: TemplateBase.h:280
clang::UnresolvedMemberExpr
Represents a C++ member access expression for which lookup produced a set of overloaded functions.
Definition: ExprCXX.h:3834
clang::QualType
A (possibly-)qualified type.
Definition: Type.h:737
clang::concepts::ExprRequirement::ReturnTypeRequirement::isEmpty
bool isEmpty() const
Definition: ExprConcepts.h:300
clang::NonTypeTemplateParmDecl
NonTypeTemplateParmDecl - Declares a non-type template parameter, e.g., "Size" in.
Definition: DeclTemplate.h:1410
clang::ObjCBridgedCastExpr
An Objective-C "bridged" cast expression, which casts between Objective-C pointers and C pointers,...
Definition: ExprObjC.h:1625
AttributeLangSupport::C
@ C
Definition: SemaDeclAttr.cpp:56
clang::TypeConstraint::getImmediatelyDeclaredConstraint
Expr * getImmediatelyDeclaredConstraint() const
Get the immediately-declared constraint expression introduced by this type-constraint,...
Definition: ASTConcept.h:187
clang::NestedNameSpecifier
Represents a C++ nested name specifier, such as "\::std::vector<int>::".
Definition: NestedNameSpecifier.h:50
clang::OMPCompareClause
This represents 'compare' clause in the '#pragma omp atomic' directive.
Definition: OpenMPClause.h:2460
clang::OMPSectionDirective
This represents '#pragma omp section' directive.
Definition: StmtOpenMP.h:1862
clang::TypeTraitExpr
A type trait used in the implementation of various C++11 and Library TR1 trait templates.
Definition: ExprCXX.h:2689
clang::CXXTypeidExpr
A C++ typeid expression (C++ [expr.typeid]), which gets the type_info that corresponds to the supplie...
Definition: ExprCXX.h:846
clang::RequiresExpr
C++2a [expr.prim.req]: A requires-expression provides a concise way to express requirements on templa...
Definition: ExprConcepts.h:471
clang::ParmVarDecl
Represents a parameter to a function.
Definition: Decl.h:1712
DeclCXX.h
clang::OMPTeamsDistributeSimdDirective
This represents '#pragma omp teams distribute simd' combined directive.
Definition: StmtOpenMP.h:4916
clang::OMPAtomicDefaultMemOrderClause
This represents 'atomic_default_mem_order' clause in the '#pragma omp requires' directive.
Definition: OpenMPClause.h:1484
clang::TemplateArgument::Declaration
@ Declaration
The template argument is a declaration that was provided for a pointer, reference,...
Definition: TemplateBase.h:74
clang::CXXNewExpr
Represents a new-expression for memory allocation and constructor calls, e.g: "new CXXNewExpr(foo)".
Definition: ExprCXX.h:2146
clang::OMPDistScheduleClause
This represents 'dist_schedule' clause in the '#pragma omp ...' directive.
Definition: OpenMPClause.h:6703
clang::OMPClauseWithPostUpdate
Class that handles post-update expression for some clauses, like 'lastprivate', 'reduction' etc.
Definition: OpenMPClause.h:150
clang::IfStmt
IfStmt - This represents an if/then/else.
Definition: Stmt.h:1940
clang::ObjCAtTryStmt
Represents Objective-C's @try ... @catch ... @finally statement.
Definition: StmtObjC.h:165
clang::RecoveryExpr
Frontend produces RecoveryExprs on semantic errors that prevent creating other well-formed expression...
Definition: Expr.h:6426
clang::OMPSeqCstClause
This represents 'seq_cst' clause in the '#pragma omp atomic' directive.
Definition: OpenMPClause.h:2501
clang::GotoStmt
GotoStmt - This represents a direct goto.
Definition: Stmt.h:2641
clang::OMPMapClause
This represents clause 'map' in the '#pragma omp ...' directives.
Definition: OpenMPClause.h:5937
clang::InitListExpr
Describes an C or C++ initializer list.
Definition: Expr.h:4796
clang::OffsetOfNode::getFieldName
IdentifierInfo * getFieldName() const
For a field or identifier offsetof node, returns the name of the field.
Definition: Expr.cpp:1673
clang::OMPLoopTransformationDirective
The base class for all loop transformation directives.
Definition: StmtOpenMP.h:959
clang::OMPInReductionClause
This represents clause 'in_reduction' in the '#pragma omp task' directives.
Definition: OpenMPClause.h:3831
getArgument
static const TemplateArgument & getArgument(const TemplateArgument &A)
Definition: TypePrinter.cpp:1919
clang::UnaryOperator
UnaryOperator - This represents the unary-expression's (except sizeof and alignof),...
Definition: Expr.h:2172
clang::OMPReductionClause
This represents clause 'reduction' in the '#pragma omp ...' directives.
Definition: OpenMPClause.h:3264
clang::Stmt::ProcessODRHash
void ProcessODRHash(llvm::FoldingSetNodeID &ID, ODRHash &Hash) const
Calculate a unique representation for a statement that is stable across compiler invocations.
Definition: StmtProfile.cpp:2375
clang::OMPUnifiedAddressClause
This represents 'unified_address' clause in the '#pragma omp requires' directive.
Definition: OpenMPClause.h:1312
clang::concepts::ExprRequirement::ReturnTypeRequirement::isTypeConstraint
bool isTypeConstraint() const
Definition: ExprConcepts.h:309
clang::CoreturnStmt
Represents a 'co_return' statement in the C++ Coroutines TS.
Definition: StmtCXX.h:458
clang::OMPUsesAllocatorsClause::Data::AllocatorTraits
Expr * AllocatorTraits
Allocator traits.
Definition: OpenMPClause.h:8629
ExprOpenMP.h
clang::CXXStaticCastExpr
A C++ static_cast expression (C++ [expr.static.cast]).
Definition: ExprCXX.h:431
clang::ObjCForCollectionStmt
Represents Objective-C's collection statement.
Definition: StmtObjC.h:23
clang::ArrayInitLoopExpr
Represents a loop initializing the elements of an array.
Definition: Expr.h:5426
clang::OMPInclusiveClause
This represents clause 'inclusive' in the '#pragma omp scan' directive.
Definition: OpenMPClause.h:8470
clang::TemplateArgument::getAsExpr
Expr * getAsExpr() const
Retrieve the template argument as an expression.
Definition: TemplateBase.h:341
clang::OMPUseDeviceAddrClause
This represents clause 'use_device_addr' in the '#pragma omp ...' directives.
Definition: OpenMPClause.h:7501
clang::OMPReleaseClause
This represents 'release' clause in the '#pragma omp atomic|flush' directives.
Definition: OpenMPClause.h:2624
clang::DeclarationName
The name of a declaration.
Definition: DeclarationName.h:144
clang::OMPSharedClause
This represents clause 'shared' in the '#pragma omp ...' directives.
Definition: OpenMPClause.h:3191
clang::TemplateArgument::Expression
@ Expression
The template argument is an expression, and we've not resolved it to one of the other forms yet,...
Definition: TemplateBase.h:96
clang::TemplateArgument::getAsIntegral
llvm::APSInt getAsIntegral() const
Retrieve the template argument as an integral value.
Definition: TemplateBase.h:312
clang::OMPTargetTeamsDistributeParallelForDirective
This represents '#pragma omp target teams distribute parallel for' combined directive.
Definition: StmtOpenMP.h:5265
clang::OpaqueValueExpr
OpaqueValueExpr - An expression referring to an opaque object of a fixed type and value class.
Definition: Expr.h:1144
clang::OMPScheduleClause
This represents 'schedule' clause in the '#pragma omp ...' directive.
Definition: OpenMPClause.h:1798
clang::SEHTryStmt
Definition: Stmt.h:3444
clang::OMPCollapseClause
This represents 'collapse' clause in the '#pragma omp ...' directive.
Definition: OpenMPClause.h:1086
clang::CXXFoldExpr
Represents a folding of a pack over an operator.
Definition: ExprCXX.h:4625
clang::ObjCSubscriptRefExpr
ObjCSubscriptRefExpr - used for array and dictionary subscripting.
Definition: ExprObjC.h:841
clang::ObjCBoolLiteralExpr
ObjCBoolLiteralExpr - Objective-C Boolean Literal.
Definition: ExprObjC.h:88
clang::OMPAllocateClause
This represents clause 'allocate' in the '#pragma omp ...' directives.
Definition: OpenMPClause.h:408
DecodeOperatorCall
static Stmt::StmtClass DecodeOperatorCall(const CXXOperatorCallExpr *S, UnaryOperatorKind &UnaryOp, BinaryOperatorKind &BinaryOp)
Definition: StmtProfile.cpp:1632
clang::OMPTaskgroupDirective
This represents '#pragma omp taskgroup' directive.
Definition: StmtOpenMP.h:2669
clang::ObjCIndirectCopyRestoreExpr
ObjCIndirectCopyRestoreExpr - Represents the passing of a function argument by indirect copy-restore ...
Definition: ExprObjC.h:1566
clang::ConditionalOperator
ConditionalOperator - The ?: ternary operator.
Definition: Expr.h:4150
clang::CXXThrowExpr
A C++ throw-expression (C++ [except.throw]).
Definition: ExprCXX.h:1188
clang::OMPUseDevicePtrClause
This represents clause 'use_device_ptr' in the '#pragma omp ...' directives.
Definition: OpenMPClause.h:7337
clang::ObjCArrayLiteral
ObjCArrayLiteral - used for objective-c array containers; as in: @["Hello", NSApp,...
Definition: ExprObjC.h:190
DeclObjC.h
clang::TemplateArgument::Integral
@ Integral
The template argument is an integral value stored in an llvm::APSInt that was provided for an integra...
Definition: TemplateBase.h:82
clang::ObjCPropertyRefExpr
ObjCPropertyRefExpr - A dot-syntax expression to access an ObjC property.
Definition: ExprObjC.h:614
clang::OMPAlignedClause
This represents clause 'aligned' in the '#pragma omp ...' directives.
Definition: OpenMPClause.h:4364
clang::OMPHasDeviceAddrClause
This represents clause 'has_device_ptr' in the '#pragma omp ...' directives.
Definition: OpenMPClause.h:7708
clang::CXXTemporaryObjectExpr
Represents a C++ functional cast expression that builds a temporary object.
Definition: ExprCXX.h:1804
clang::OMPNocontextClause
This represents 'nocontext' clause in the '#pragma omp ...' directive.
Definition: OpenMPClause.h:8339
clang::FunctionParmPackExpr
Represents a reference to a function parameter pack or init-capture pack that has been substituted bu...
Definition: ExprCXX.h:4431
clang::OMPOrderedClause
This represents 'ordered' clause in the '#pragma omp ...' directive.
Definition: OpenMPClause.h:1991
clang::FixedPointLiteral
Definition: Expr.h:1546
clang::OMPTargetExitDataDirective
This represents '#pragma omp target exit data' directive.
Definition: StmtOpenMP.h:3259
clang::TemplateArgument::NullPtr
@ NullPtr
The template argument is a null pointer or null pointer to member that was provided for a non-type te...
Definition: TemplateBase.h:78
clang::OMPForSimdDirective
This represents '#pragma omp for simd' directive.
Definition: StmtOpenMP.h:1722
clang::concepts::ExprRequirement::ReturnTypeRequirement::isSubstitutionFailure
bool isSubstitutionFailure() const
Definition: ExprConcepts.h:304
clang::AttributedStmt
Represents an attribute applied to a statement.
Definition: Stmt.h:1882
clang::OMPParallelGenericLoopDirective
This represents '#pragma omp parallel loop' directive.
Definition: StmtOpenMP.h:6102
clang::OMPErrorDirective
This represents '#pragma omp error' directive.
Definition: StmtOpenMP.h:6229
clang::IntegerLiteral
Definition: Expr.h:1503
clang::OMPProcBindClause
This represents 'proc_bind' clause in the '#pragma omp ...' directive.
Definition: OpenMPClause.h:1230
clang::ObjCAtCatchStmt
Represents Objective-C's @catch statement.
Definition: StmtObjC.h:77
clang::UnaryExprOrTypeTraitExpr
UnaryExprOrTypeTraitExpr - expression with either a type or (unevaluated) expression operand.
Definition: Expr.h:2558
clang::OMPNovariantsClause
This represents 'novariants' clause in the '#pragma omp ...' directive.
Definition: OpenMPClause.h:8268
clang::FloatingLiteral
Definition: Expr.h:1648
clang::TemplateArgument::getKind
ArgKind getKind() const
Return the kind of stored template argument.
Definition: TemplateBase.h:244
clang::CompoundStmt
CompoundStmt - This represents a group of statements like { stmt stmt }.
Definition: Stmt.h:1410
clang::ConvertVectorExpr
ConvertVectorExpr - Clang builtin function __builtin_convertvector This AST node provides support for...
Definition: Expr.h:4470
clang::OMPNumTeamsClause
This represents 'num_teams' clause in the '#pragma omp ...' directive.
Definition: OpenMPClause.h:6190
clang::ObjCSelectorExpr
ObjCSelectorExpr used for @selector in Objective-C.
Definition: ExprObjC.h:454
DeclTemplate.h
clang::MSPropertySubscriptExpr
MS property subscript expression.
Definition: ExprCXX.h:1001
clang::CXXAddrspaceCastExpr
A C++ addrspace_cast expression (currently only enabled for OpenCL).
Definition: ExprCXX.h:600
clang::OMPSIMDClause
This represents 'simd' clause in the '#pragma omp ...' directive.
Definition: OpenMPClause.h:5255
clang::OMPParallelMasterDirective
This represents '#pragma omp parallel master' directive.
Definition: StmtOpenMP.h:2256
clang::ODRHash::AddQualType
void AddQualType(QualType T)
Definition: ODRHash.cpp:1222
clang::UnresolvedLookupExpr
A reference to a name which we were able to look up during parsing but could not resolve to a specifi...
Definition: ExprCXX.h:3097
clang::CXXRewrittenBinaryOperator
A rewritten comparison expression that was originally written using operator syntax.
Definition: ExprCXX.h:284
clang::OMPReverseOffloadClause
This represents 'reverse_offload' clause in the '#pragma omp requires' directive.
Definition: OpenMPClause.h:1398
clang::DependentCoawaitExpr
Represents a 'co_await' expression while the type of the promise is dependent.
Definition: ExprCXX.h:4855
clang::SizeOfPackExpr
Represents an expression that computes the length of a parameter pack.
Definition: ExprCXX.h:4151
clang::OMPTaskReductionClause
This represents clause 'task_reduction' in the '#pragma omp taskgroup' directives.
Definition: OpenMPClause.h:3600
Node
DynTypedNode Node
Definition: ASTMatchFinder.cpp:68
clang::CXXBindTemporaryExpr
Represents binding an expression to a temporary.
Definition: ExprCXX.h:1419
clang::Decl::getKind
Kind getKind() const
Definition: DeclBase.h:435
clang::BinaryOperator
A builtin binary operation expression such as "x + y" or "x <= y".
Definition: Expr.h:3812
clang::OMPTeamsDirective
This represents '#pragma omp teams' directive.
Definition: StmtOpenMP.h:3488
clang::LambdaExpr
A C++ lambda expression, which produces a function object (of unspecified type) that can be invoked l...
Definition: ExprCXX.h:1872
clang::OMPLoopDirective
This is a common base class for loop directives ('omp simd', 'omp for', 'omp for simd' etc....
Definition: StmtOpenMP.h:1002
clang::ObjCAtThrowStmt
Represents Objective-C's @throw statement.
Definition: StmtObjC.h:357
clang::SubstNonTypeTemplateParmExpr::getReplacement
Expr * getReplacement() const
Definition: ExprCXX.h:4307
clang::ObjCStringLiteral
ObjCStringLiteral, used for Objective-C string literals i.e.
Definition: ExprObjC.h:52
clang::OMPFullClause
Representation of the 'full' clause of the '#pragma omp unroll' directive.
Definition: OpenMPClause.h:973
clang::ConceptSpecializationExpr
Represents the specialization of a concept - evaluates to a prvalue of type bool.
Definition: ExprConcepts.h:40
clang::OMPScanDirective
This represents '#pragma omp scan' directive.
Definition: StmtOpenMP.h:5648
clang::MaterializeTemporaryExpr
Represents a prvalue temporary that is written into memory so that a reference can bind to it.
Definition: ExprCXX.h:4513
clang::ASTContext
Holds long-lived AST nodes (such as types and decls) that can be referred to throughout the semantic ...
Definition: ASTContext.h:209
clang::ObjCDictionaryLiteral
ObjCDictionaryLiteral - AST node to represent objective-c dictionary literals; as in:"name" : NSUserN...
Definition: ExprObjC.h:306
clang::OMPMetaDirective
This represents '#pragma omp metadirective' directive.
Definition: StmtOpenMP.h:5870
clang::OMPParallelMaskedTaskLoopSimdDirective
This represents '#pragma omp parallel masked taskloop simd' directive.
Definition: StmtOpenMP.h:4304
clang::OMPDetachClause
This represents 'detach' clause in the '#pragma omp task' directive.
Definition: OpenMPClause.h:8408
clang::PseudoObjectExpr::const_semantics_iterator
const typedef Expr *const * const_semantics_iterator
Definition: Expr.h:6172
clang::BuiltinBitCastExpr
Represents a C++2a __builtin_bit_cast(T, v) expression.
Definition: ExprCXX.h:4928
clang::OMPDeviceClause
This represents 'device' clause in the '#pragma omp ...' directive.
Definition: OpenMPClause.h:5121
clang::OMPParallelMaskedTaskLoopDirective
This represents '#pragma omp parallel masked taskloop' directive.
Definition: StmtOpenMP.h:4159
clang::TemplateArgument
Represents a template argument.
Definition: TemplateBase.h:61
clang::concepts::Requirement
A static requirement that can be used in a requires-expression to check properties of types and expre...
Definition: ExprConcepts.h:145
clang::OMPDistributeParallelForSimdDirective
This represents '#pragma omp distribute parallel for simd' composite directive.
Definition: StmtOpenMP.h:4587
clang::ForStmt
ForStmt - This represents a 'for (init;cond;inc)' stmt.
Definition: Stmt.h:2570
clang::ObjCAvailabilityCheckExpr
A runtime availability query.
Definition: ExprObjC.h:1686
clang::OMPDepobjDirective
This represents '#pragma omp depobj' directive.
Definition: StmtOpenMP.h:2788
clang::ODRHash::AddTemplateName
void AddTemplateName(TemplateName Name)
Definition: ODRHash.cpp:141
clang::PseudoObjectExpr
PseudoObjectExpr - An expression which accesses a pseudo-object l-value.
Definition: Expr.h:6105
clang::ObjCAtSynchronizedStmt
Represents Objective-C's @synchronized statement.
Definition: StmtObjC.h:302
clang::Decl::getCanonicalDecl
virtual Decl * getCanonicalDecl()
Retrieves the "canonical" declaration of the given declaration.
Definition: DeclBase.h:943
clang::OffsetOfNode::getField
FieldDecl * getField() const
For a field offsetof node, returns the field.
Definition: Expr.h:2413
clang::OMPNowaitClause
This represents 'nowait' clause in the '#pragma omp ...' directive.
Definition: OpenMPClause.h:2086
clang::BinaryConditionalOperator
BinaryConditionalOperator - The GNU extension to the conditional operator which allows the middle ope...
Definition: Expr.h:4212
clang::OMPUsesAllocatorsClause
This represents clause 'uses_allocators' in the '#pragma omp target'-based directives.
Definition: OpenMPClause.h:8619
clang::CXXDestructorDecl
Represents a C++ destructor within a class.
Definition: DeclCXX.h:2703
clang::TemplateArgumentLoc
Location wrapper for a TemplateArgument.
Definition: TemplateBase.h:457
clang::OMPDynamicAllocatorsClause
This represents 'dynamic_allocators' clause in the '#pragma omp requires' directive.
Definition: OpenMPClause.h:1441
clang::OMPLoopBasedDirective
The base class for all loop-based directives, including loop transformation directives.
Definition: StmtOpenMP.h:682
Expr.h
clang::OMPToClause
This represents clause 'to' in the '#pragma omp ...' directives.
Definition: OpenMPClause.h:6937
clang::ODRHash::AddIdentifierInfo
void AddIdentifierInfo(const IdentifierInfo *II)
Definition: ODRHash.cpp:29
clang::ImplicitValueInitExpr
Represents an implicitly-generated value initialization of an object of a given type.
Definition: Expr.h:5515
clang::TemplateTemplateParmDecl
TemplateTemplateParmDecl - Declares a template template parameter, e.g., "T" in.
Definition: DeclTemplate.h:1627
clang::OMPParallelDirective
This represents '#pragma omp parallel' directive.
Definition: StmtOpenMP.h:611
ASTContext.h
clang::CXXDynamicCastExpr
A C++ dynamic_cast expression (C++ [expr.dynamic.cast]).
Definition: ExprCXX.h:477
clang::OMPParallelForSimdDirective
This represents '#pragma omp parallel for simd' directive.
Definition: StmtOpenMP.h:2191
clang::OMPTaskDirective
This represents '#pragma omp task' directive.
Definition: StmtOpenMP.h:2464
clang::StringLiteral
StringLiteral - This represents a string literal expression, e.g.
Definition: Expr.h:1776
clang::OMPTargetParallelDirective
This represents '#pragma omp target parallel' directive.
Definition: StmtOpenMP.h:3313
clang::ExprWithCleanups
Represents an expression – generally a full-expression – that introduces cleanups to be run at the en...
Definition: ExprCXX.h:3366
clang::NUM_OVERLOADED_OPERATORS
@ NUM_OVERLOADED_OPERATORS
Definition: OperatorKinds.h:26
clang::CapturedStmt
This captures a statement into a function.
Definition: Stmt.h:3536
clang::ASTContext::getCanonicalType
CanQualType getCanonicalType(QualType T) const
Return the canonical (structural) type corresponding to the specified potentially non-canonical type ...
Definition: ASTContext.h:2528
clang::ObjCAtFinallyStmt
Represents Objective-C's @finally statement.
Definition: StmtObjC.h:127
clang::OMPParallelForDirective
This represents '#pragma omp parallel for' directive.
Definition: StmtOpenMP.h:2094
clang::OMPGrainsizeClause
This represents 'grainsize' clause in the '#pragma omp ...' directive.
Definition: OpenMPClause.h:6417
clang::CXXTryStmt
CXXTryStmt - A C++ try block, including all handlers.
Definition: StmtCXX.h:68
ExprObjC.h
clang::Stmt::Profile
void Profile(llvm::FoldingSetNodeID &ID, const ASTContext &Context, bool Canonical) const
Produce a unique representation of the given statement.
Definition: StmtProfile.cpp:2369
ExprCXX.h
clang::OMPDefaultClause
This represents 'default' clause in the '#pragma omp ...' directive.
Definition: OpenMPClause.h:1149
clang::ObjCEncodeExpr
ObjCEncodeExpr, used for @encode in Objective-C.
Definition: ExprObjC.h:409
clang::CXXInheritedCtorInitExpr
Represents a call to an inherited base class constructor from an inheriting constructor.
Definition: ExprCXX.h:1658
clang::CXXDefaultArgExpr
A default argument (C++ [dcl.fct.default]).
Definition: ExprCXX.h:1248
clang::PackExpansionExpr
Represents a C++11 pack expansion that produces a sequence of expressions.
Definition: ExprCXX.h:4075
clang::OMPHintClause
This represents 'hint' clause in the '#pragma omp ...' directive.
Definition: OpenMPClause.h:6640
clang::OMPCriticalDirective
This represents '#pragma omp critical' directive.
Definition: StmtOpenMP.h:2023
clang::OMPTargetTeamsGenericLoopDirective
This represents '#pragma omp target teams loop' directive.
Definition: StmtOpenMP.h:6036
clang::OMPTargetParallelForSimdDirective
This represents '#pragma omp target parallel for simd' directive.
Definition: StmtOpenMP.h:4718
clang::OMPCaptureClause
This represents 'capture' clause in the '#pragma omp atomic' directive.
Definition: OpenMPClause.h:2419
clang::OMPFirstprivateClause
This represents clause 'firstprivate' in the '#pragma omp ...' directives.
Definition: OpenMPClause.h:2812
clang::OMPMasterTaskLoopDirective
This represents '#pragma omp master taskloop' directive.
Definition: StmtOpenMP.h:3798
clang::OMPNumTasksClause
This represents 'num_tasks' clause in the '#pragma omp ...' directive.
Definition: OpenMPClause.h:6549
clang::concepts::Requirement::RK_Compound
@ RK_Compound
Definition: ExprConcepts.h:149
clang::ConstantExpr
ConstantExpr - An expression that occurs in a constant context and optionally the result of evaluatin...
Definition: Expr.h:1041
clang::TemplateTypeParmDecl
Declaration of a template type parameter.
Definition: DeclTemplate.h:1205
clang::ObjCMessageExpr
An expression that sends a message to the given Objective-C object or class.
Definition: ExprObjC.h:940
clang::OMPTeamsDistributeDirective
This represents '#pragma omp teams distribute' directive.
Definition: StmtOpenMP.h:4850
clang::OMPAlignClause
This represents the 'align' clause in the '#pragma omp allocate' directive.
Definition: OpenMPClause.h:335
clang::OffsetOfNode
Helper class for OffsetOfExpr.
Definition: Expr.h:2349
clang::OMPUnifiedSharedMemoryClause
This represents 'unified_shared_memory' clause in the '#pragma omp requires' directive.
Definition: OpenMPClause.h:1355
clang::ChooseExpr
ChooseExpr - GNU builtin-in function __builtin_choose_expr.
Definition: Expr.h:4529
clang::ODRHash
Definition: ODRHash.h:41
clang::SEHExceptStmt
Definition: Stmt.h:3365
clang::OMPArrayShapingExpr
An explicit cast in C or a C-style cast in C++, which uses the syntax ([s1][s2]......
Definition: ExprOpenMP.h:146
clang::OMPMergeableClause
This represents 'mergeable' clause in the '#pragma omp ...' directive.
Definition: OpenMPClause.h:2165
clang::CharacterLiteral
Definition: Expr.h:1593
clang::UserDefinedLiteral
A call to a literal operator (C++11 [over.literal]) written as a user-defined literal (C++11 [lit....
Definition: ExprCXX.h:638
clang::OMPMaskedTaskLoopDirective
This represents '#pragma omp masked taskloop' directive.
Definition: StmtOpenMP.h:3874
clang::TemplateArgument::TemplateExpansion
@ TemplateExpansion
The template argument is a pack expansion of a template name that was provided for a template templat...
Definition: TemplateBase.h:90
clang::OMPOrderClause
This represents 'order' clause in the '#pragma omp ...' directive.
Definition: OpenMPClause.h:7908
clang::OMPCancelDirective
This represents '#pragma omp cancel' directive.
Definition: StmtOpenMP.h:3599
clang::CompoundLiteralExpr
CompoundLiteralExpr - [C99 6.5.2.5].
Definition: Expr.h:3410
clang::OMPSafelenClause
This represents 'safelen' clause in the '#pragma omp ...' directive.
Definition: OpenMPClause.h:752
clang::OMPSectionsDirective
This represents '#pragma omp sections' directive.
Definition: StmtOpenMP.h:1785
clang::OMPTargetTeamsDistributeParallelForSimdDirective
This represents '#pragma omp target teams distribute parallel for simd' combined directive.
Definition: StmtOpenMP.h:5363
clang::OMPMaskedTaskLoopSimdDirective
This represents '#pragma omp masked taskloop simd' directive.
Definition: StmtOpenMP.h:4015
clang::CStyleCastExpr
CStyleCastExpr - An explicit cast in C (C99 6.5.4) or a C-style cast in C++ (C++ [expr....
Definition: Expr.h:3740
clang::GCCAsmStmt
This represents a GCC inline-assembly statement extension.
Definition: Stmt.h:3038
clang::OMPUntiedClause
This represents 'untied' clause in the '#pragma omp ...' directive.
Definition: OpenMPClause.h:2125
clang::OMPRelaxedClause
This represents 'relaxed' clause in the '#pragma omp atomic' directives.
Definition: OpenMPClause.h:2665
clang::OMPClauseWithPreInit
Class that handles pre-initialization statement for some clauses, like 'shedule', 'firstprivate' etc.
Definition: OpenMPClause.h:112
clang::OO_None
@ OO_None
Not an overloaded operator.
Definition: OperatorKinds.h:22
clang::OMPDependClause
This represents implicit clause 'depend' for the '#pragma omp task' directive.
Definition: OpenMPClause.h:4967
clang::OMPFlushDirective
This represents '#pragma omp flush' directive.
Definition: StmtOpenMP.h:2736
clang::RISCV::TA
@ TA
Definition: RISCVVIntrinsicUtils.h:98
P
StringRef P
Definition: ASTMatchersInternal.cpp:563
clang::OMPTargetEnterDataDirective
This represents '#pragma omp target enter data' directive.
Definition: StmtOpenMP.h:3204
clang::DesignatedInitUpdateExpr
Definition: Expr.h:5372
clang::OMPSizesClause
This represents the 'sizes' clause in the '#pragma omp tile' directive.
Definition: OpenMPClause.h:880
clang::OMPInteropDirective
This represents '#pragma omp interop' directive.
Definition: StmtOpenMP.h:5701
false
#define false
Definition: stdbool.h:22
clang::OMPDistributeDirective
This represents '#pragma omp distribute' directive.
Definition: StmtOpenMP.h:4369
clang::OMPTeamsGenericLoopDirective
This represents '#pragma omp teams loop' directive.
Definition: StmtOpenMP.h:5971
clang::OMPSingleDirective
This represents '#pragma omp single' directive.
Definition: StmtOpenMP.h:1924
clang::TemplateName
Represents a C++ template name within the type system.
Definition: TemplateName.h:201
clang::ParenExpr
ParenExpr - This represents a parethesized expression, e.g.
Definition: Expr.h:2121
clang::CoyieldExpr
Represents a 'co_yield' expression.
Definition: ExprCXX.h:4904
clang::ObjCProtocolExpr
ObjCProtocolExpr used for protocol expression in Objective-C.
Definition: ExprObjC.h:504
clang::CXXDeleteExpr
Represents a delete expression for memory deallocation and destructor calls, e.g.
Definition: ExprCXX.h:2422
clang::QualType::isNull
bool isNull() const
Return true if this QualType doesn't point to a type yet.
Definition: Type.h:802
clang::BlockExpr
BlockExpr - Adaptor class for mixing a BlockDecl with expressions.
Definition: Expr.h:5975
clang::StmtExpr
StmtExpr - This is the GNU Statement Expression extension: ({int X=4; X;}).
Definition: Expr.h:4354
llvm::ArrayRef
Definition: LLVM.h:34
clang::OMPTaskLoopDirective
This represents '#pragma omp taskloop' directive.
Definition: StmtOpenMP.h:3659
clang::FunctionParmPackExpr::iterator
VarDecl *const * iterator
Iterators over the parameters which the parameter pack expanded into.
Definition: ExprCXX.h:4467
clang::OMPFilterClause
This represents 'filter' clause in the '#pragma omp ...' directive.
Definition: OpenMPClause.h:8844
clang::ODRHash::AddNestedNameSpecifier
void AddNestedNameSpecifier(const NestedNameSpecifier *NNS)
Definition: ODRHash.cpp:112
clang::Decl
Decl - This represents one declaration (or definition), e.g.
Definition: DeclBase.h:83
clang::OMPUsesAllocatorsClause::Data
Data for list of allocators.
Definition: OpenMPClause.h:8625
clang::OffsetOfNode::Base
@ Base
An implicit indirection through a C++ base class, when the field found is in a base class.
Definition: Expr.h:2361
OpenMPClause.h
clang::AddrLabelExpr
AddrLabelExpr - The GNU address of label extension, representing &&label.
Definition: Expr.h:4309
clang::CXXFunctionalCastExpr
Represents an explicit C++ type conversion that uses "functional" notation (C++ [expr....
Definition: ExprCXX.h:1733
clang::DesignatedInitExpr::Designator
Represents a single C99 designator.
Definition: Expr.h:5109
clang::OMPIsDevicePtrClause
This represents clause 'is_device_ptr' in the '#pragma omp ...' directives.
Definition: OpenMPClause.h:7605
clang::OMPNogroupClause
This represents 'nogroup' clause in the '#pragma omp ...' directive.
Definition: OpenMPClause.h:6507
clang::ArraySubscriptExpr
ArraySubscriptExpr - [C99 6.5.2.1] Array Subscripting.
Definition: Expr.h:2654
clang::CXXUuidofExpr
A Microsoft C++ __uuidof expression, which gets the _GUID that corresponds to the supplied type or ex...
Definition: ExprCXX.h:1063
clang::DependentScopeDeclRefExpr
A qualified reference to a name whose declaration cannot yet be resolved.
Definition: ExprCXX.h:3215
clang::DoStmt
DoStmt - This represents a 'do/while' stmt.
Definition: Stmt.h:2514
clang::ASTContext::getCanonicalTemplateName
TemplateName getCanonicalTemplateName(const TemplateName &Name) const
Retrieves the "canonical" template name that refers to a given template.
Definition: ASTContext.cpp:6255
StmtVisitor.h
clang::CXXNullPtrLiteralExpr
The null pointer literal (C++11 [lex.nullptr])
Definition: ExprCXX.h:766
clang::CoroutineBodyStmt
Represents the body of a coroutine.
Definition: StmtCXX.h:317
clang::OffsetOfNode::Field
@ Field
A field.
Definition: Expr.h:2356
clang::CoawaitExpr
Represents a 'co_await' expression.
Definition: ExprCXX.h:4823
clang::UnaryOperatorKind
UnaryOperatorKind
Definition: OperationKinds.h:30
clang::BreakStmt
BreakStmt - This represents a break.
Definition: Stmt.h:2759
clang::OMPAffinityClause
This represents clause 'affinity' in the '#pragma omp task'-based directives.
Definition: OpenMPClause.h:8745
clang::OverloadExpr
A reference to an overloaded function set, either an UnresolvedLookupExpr or an UnresolvedMemberExpr.
Definition: ExprCXX.h:2904
clang::OMPCancellationPointDirective
This represents '#pragma omp cancellation point' directive.
Definition: StmtOpenMP.h:3541
clang::OMPSimdlenClause
This represents 'simdlen' clause in the '#pragma omp ...' directive.
Definition: OpenMPClause.h:818
clang::OMPDispatchDirective
This represents '#pragma omp dispatch' directive.
Definition: StmtOpenMP.h:5754
clang::CXXDependentScopeMemberExpr
Represents a C++ member access expression where the actual member referenced could not be resolved be...
Definition: ExprCXX.h:3574
clang::CompoundAssignOperator
CompoundAssignOperator - For compound assignments (e.g.
Definition: Expr.h:4059
clang::BinaryOperatorKind
BinaryOperatorKind
Definition: OperationKinds.h:25
clang::CXXNoexceptExpr
Represents a C++11 noexcept expression (C++ [expr.unary.noexcept]).
Definition: ExprCXX.h:4021
clang::CXXUnresolvedConstructExpr
Describes an explicit type conversion that uses functional notion but could not be resolved because o...
Definition: ExprCXX.h:3452
clang::ConstStmtVisitor
ConstStmtVisitor - This class implements a simple visitor for Stmt subclasses.
Definition: StmtVisitor.h:193
clang::IdentifierInfo
One of these records is kept for each identifier that is lexed.
Definition: IdentifierTable.h:85
clang::OMPExecutableDirective
This is a basic class for representing single OpenMP executable directive.
Definition: StmtOpenMP.h:266
ODRHash.h
clang::OMPWriteClause
This represents 'write' clause in the '#pragma omp atomic' directive.
Definition: OpenMPClause.h:2244
clang::CXXForRangeStmt
CXXForRangeStmt - This represents C++0x [stmt.ranged]'s ranged for statement, represented as 'for (ra...
Definition: StmtCXX.h:134
clang::DeclStmt
DeclStmt - Adaptor class for mixing declarations with statements and expressions.
Definition: Stmt.h:1303
clang::ContinueStmt
ContinueStmt - This represents a continue.
Definition: Stmt.h:2729
clang::BuiltinType::getKind
Kind getKind() const
Definition: Type.h:2655
clang::OffsetOfNode::Identifier
@ Identifier
A field in a dependent type, known only by its name.
Definition: Expr.h:2358
clang::OMPFlushClause
This represents implicit clause 'flush' for the '#pragma omp flush' directive.
Definition: OpenMPClause.h:4807
clang::CXXConstCastExpr
A C++ const_cast expression (C++ [expr.const.cast]).
Definition: ExprCXX.h:562
clang::CXXThisExpr
Represents the this expression in C++.
Definition: ExprCXX.h:1149
clang::TemplateArgument::getAsDecl
ValueDecl * getAsDecl() const
Retrieve the declaration for a declaration non-type template argument.
Definition: TemplateBase.h:275
clang::ExtVectorElementExpr
ExtVectorElementExpr - This represents access to specific elements of a vector, and may occur on the ...
Definition: Expr.h:5915
clang::OMPTeamsDistributeParallelForDirective
This represents '#pragma omp teams distribute parallel for' composite directive.
Definition: StmtOpenMP.h:5050
clang::OMPExclusiveClause
This represents clause 'exclusive' in the '#pragma omp scan' directive.
Definition: OpenMPClause.h:8544
clang::TypoExpr
TypoExpr - Internal placeholder for expressions where typo correction still needs to be performed and...
Definition: Expr.h:6372
clang::PredefinedExpr
[C99 6.4.2.2] - A predefined identifier such as func.
Definition: Expr.h:1968
clang::MSDependentExistsStmt
Representation of a Microsoft __if_exists or __if_not_exists statement with a dependent name.
Definition: StmtCXX.h:252
clang::SEHFinallyStmt
Definition: Stmt.h:3409
clang::CUDAKernelCallExpr
Represents a call to a CUDA kernel function.
Definition: ExprCXX.h:232
clang::concepts::ExprRequirement::ReturnTypeRequirement
Definition: ExprConcepts.h:264
clang::OMPSimdDirective
This represents '#pragma omp simd' directive.
Definition: StmtOpenMP.h:1569
clang::Builtin::ID
ID
Definition: Builtins.h:52
clang::TemplateArgument::Type
@ Type
The template argument is a type.
Definition: TemplateBase.h:70
clang::OMPUseClause
This represents the 'use' clause in '#pragma omp ...' directives.
Definition: OpenMPClause.h:8106
clang::OMPArraySectionExpr
OpenMP 5.0 [2.1.5, Array Sections].
Definition: ExprOpenMP.h:56
clang
Definition: CalledOnceCheck.h:17
clang::OMPAcquireClause
This represents 'acquire' clause in the '#pragma omp atomic|flush' directives.
Definition: OpenMPClause.h:2583
clang::OMPTargetTeamsDirective
This represents '#pragma omp target teams' directive.
Definition: StmtOpenMP.h:5143
clang::TemplateArgument::getNullPtrType
QualType getNullPtrType() const
Retrieve the type for null non-type template argument.
Definition: TemplateBase.h:286
clang::TemplateArgument::Template
@ Template
The template argument is a template name that was provided for a template template parameter.
Definition: TemplateBase.h:86
clang::Stmt
Stmt - This represents one statement.
Definition: Stmt.h:71
clang::OMPDistributeParallelForDirective
This represents '#pragma omp distribute parallel for' composite directive.
Definition: StmtOpenMP.h:4491
clang::DefaultStmt
Definition: Stmt.h:1759
clang::OMPParallelMaskedDirective
This represents '#pragma omp parallel masked' directive.
Definition: StmtOpenMP.h:2319
clang::ObjCAutoreleasePoolStmt
Represents Objective-C's @autoreleasepool Statement.
Definition: StmtObjC.h:393
clang::CXXCatchStmt
CXXCatchStmt - This represents a C++ catch block.
Definition: StmtCXX.h:28
clang::OMPBindClause
This represents 'bind' clause in the '#pragma omp ...' directives.
Definition: OpenMPClause.h:8913
clang::OMPAcqRelClause
This represents 'acq_rel' clause in the '#pragma omp atomic|flush' directives.
Definition: OpenMPClause.h:2542
clang::GenericSelectionExpr
Represents a C11 generic selection.
Definition: Expr.h:5633
clang::CXXScalarValueInitExpr
An expression "T()" which creates a value-initialized rvalue of type T, which is a non-class type.
Definition: ExprCXX.h:2100
clang::ObjCIsaExpr
ObjCIsaExpr - Represent X->isa and X.isa when X is an ObjC 'id' type.
Definition: ExprObjC.h:1482
clang::OMPUnrollDirective
This represents the '#pragma omp unroll' loop transformation directive.
Definition: StmtOpenMP.h:5574
clang::CXXNamedCastExpr
Abstract class common to all of the C++ "named"/"keyword" casts.
Definition: ExprCXX.h:373
clang::OMPTargetDirective
This represents '#pragma omp target' directive.
Definition: StmtOpenMP.h:3096
clang::OMPGenericLoopDirective
This represents '#pragma omp loop' directive.
Definition: StmtOpenMP.h:5909
clang::OMPTargetUpdateDirective
This represents '#pragma omp target update' directive.
Definition: StmtOpenMP.h:4435
clang::ImplicitCastExpr
ImplicitCastExpr - Allows us to explicitly represent implicit type conversions, which have no direct ...
Definition: Expr.h:3624
clang::VAArgExpr
Represents a call to the builtin function __builtin_va_arg.
Definition: Expr.h:4638
clang::OMPOrderedDirective
This represents '#pragma omp ordered' directive.
Definition: StmtOpenMP.h:2840
clang::SourceLocExpr
Represents a function call to one of __builtin_LINE(), __builtin_COLUMN(), __builtin_FUNCTION(),...
Definition: Expr.h:4687
clang::MemberExpr
MemberExpr - [C99 6.5.2.3] Structure and Union Members.
Definition: Expr.h:3169
clang::OMPThreadLimitClause
This represents 'thread_limit' clause in the '#pragma omp ...' directive.
Definition: OpenMPClause.h:6266
clang::OMPReadClause
This represents 'read' clause in the '#pragma omp atomic' directive.
Definition: OpenMPClause.h:2205
clang::QualType::getAsOpaquePtr
void * getAsOpaquePtr() const
Definition: Type.h:782
clang::OMPUpdateClause
This represents 'update' clause in the '#pragma omp atomic' directive.
Definition: OpenMPClause.h:2292
clang::OMPNontemporalClause
This represents clause 'nontemporal' in the '#pragma omp ...' directives.
Definition: OpenMPClause.h:7811
clang::OMPDistributeSimdDirective
This represents '#pragma omp distribute simd' composite directive.
Definition: StmtOpenMP.h:4652
clang::OMPParallelMasterTaskLoopSimdDirective
This represents '#pragma omp parallel master taskloop simd' directive.
Definition: StmtOpenMP.h:4237
clang::GNUNullExpr
GNUNullExpr - Implements the GNU __null extension, which is a name for a null pointer constant that h...
Definition: Expr.h:4604
clang::CXXStdInitializerListExpr
Implicit construction of a std::initializer_list<T> object from an array temporary within list-initia...
Definition: ExprCXX.h:798
clang::concepts::Requirement::RK_Nested
@ RK_Nested
Definition: ExprConcepts.h:149
clang::OMPNumThreadsClause
This represents 'num_threads' clause in the '#pragma omp ...' directive.
Definition: OpenMPClause.h:675
clang::Expr
This represents one expression.
Definition: Expr.h:109
clang::OMPTargetDataDirective
This represents '#pragma omp target data' directive.
Definition: StmtOpenMP.h:3150
clang::CXXDefaultInitExpr
A use of a default initializer in a constructor or in aggregate initialization.
Definition: ExprCXX.h:1325
clang::OMPCopyprivateClause
This represents clause 'copyprivate' in the '#pragma omp ...' directives.
Definition: OpenMPClause.h:4639
clang::OMPTargetSimdDirective
This represents '#pragma omp target simd' directive.
Definition: StmtOpenMP.h:4785
clang::concepts::Requirement::RK_Type
@ RK_Type
Definition: ExprConcepts.h:149
clang::CastExpr
CastExpr - Base class for type casts, including both implicit casts (ImplicitCastExpr) and explicit c...
Definition: Expr.h:3480
clang::MSAsmStmt
This represents a Microsoft inline-assembly statement extension.
Definition: Stmt.h:3261
clang::DeclRefExpr
A reference to a declared variable, function, enum, etc.
Definition: Expr.h:1232
clang::OMPFinalClause
This represents 'final' clause in the '#pragma omp ...' directive.
Definition: OpenMPClause.h:606
clang::OMPTaskLoopSimdDirective
This represents '#pragma omp taskloop simd' directive.
Definition: StmtOpenMP.h:3732
clang::OMPTargetParallelForDirective
This represents '#pragma omp target parallel for' directive.
Definition: StmtOpenMP.h:3393
clang::CallExpr
CallExpr - Represents a function call (C99 6.5.2.2, C++ [expr.call]).
Definition: Expr.h:2810
clang::OMPParallelSectionsDirective
This represents '#pragma omp parallel sections' directive.
Definition: StmtOpenMP.h:2383
clang::CXXOperatorCallExpr
A call to an overloaded operator written using operator syntax.
Definition: ExprCXX.h:82
clang::ShuffleVectorExpr
ShuffleVectorExpr - clang-specific builtin-in function __builtin_shufflevector.
Definition: Expr.h:4402
clang::CXXConstructExpr
Represents a call to a C++ constructor.
Definition: ExprCXX.h:1467
clang::ObjCIvarRefExpr
ObjCIvarRefExpr - A reference to an ObjC instance variable.
Definition: ExprObjC.h:548
clang::OMPAtomicDirective
This represents '#pragma omp atomic' directive.
Definition: StmtOpenMP.h:2894
clang::CXXMemberCallExpr
Represents a call to a member function that may be written either with member call syntax (e....
Definition: ExprCXX.h:177
clang::ExplicitCastExpr
ExplicitCastExpr - An explicit cast written in the source code.
Definition: Expr.h:3702
clang::ASTContext::getCanonicalNestedNameSpecifier
NestedNameSpecifier * getCanonicalNestedNameSpecifier(NestedNameSpecifier *NNS) const
Retrieves the "canonical" nested name specifier for a given nested name specifier.
Definition: ASTContext.cpp:6814
clang::OMPMessageClause
This represents 'message' clause in the '#pragma omp error' directive.
Definition: OpenMPClause.h:1732
clang::ReturnStmt
ReturnStmt - This represents a return, optionally of an expression: return; return 4;.
Definition: Stmt.h:2796
clang::TemplateArgument::getAsType
QualType getAsType() const
Retrieve the type for a type template argument.
Definition: TemplateBase.h:268
clang::SEHLeaveStmt
Represents a __leave statement.
Definition: Stmt.h:3497
clang::TemplateArgument::Pack
@ Pack
The template argument is actually a parameter pack.
Definition: TemplateBase.h:100
clang::OMPTeamsDistributeParallelForSimdDirective
This represents '#pragma omp teams distribute parallel for simd' composite directive.
Definition: StmtOpenMP.h:4983
clang::OMPBarrierDirective
This represents '#pragma omp barrier' directive.
Definition: StmtOpenMP.h:2572
clang::SYCLUniqueStableNameExpr
Definition: Expr.h:2065
clang::OMPFromClause
This represents clause 'from' in the '#pragma omp ...' directives.
Definition: OpenMPClause.h:7137