Index: include/clang/AST/Stmt.h =================================================================== --- include/clang/AST/Stmt.h +++ include/clang/AST/Stmt.h @@ -91,12 +91,15 @@ //===--- Statement bitfields classes ---===// class StmtBitfields { + friend class ASTStmtReader; + friend class ASTStmtWriter; friend class Stmt; /// The statement class. unsigned sClass : 8; + unsigned IsOMPStructuredBlock : 1; }; - enum { NumStmtBits = 8 }; + enum { NumStmtBits = 9 }; class NullStmtBitfields { friend class ASTStmtReader; @@ -1026,6 +1029,7 @@ static_assert(sizeof(*this) % alignof(void *) == 0, "Insufficient alignment!"); StmtBits.sClass = SC; + StmtBits.IsOMPStructuredBlock = false; if (StatisticsEnabled) Stmt::addStmtClass(SC); } @@ -1035,6 +1039,11 @@ const char *getStmtClassName() const; + bool isOMPStructuredBlock() const { return StmtBits.IsOMPStructuredBlock; } + void setIsOMPStructuredBlock(bool IsOMPStructuredBlock) { + StmtBits.IsOMPStructuredBlock = IsOMPStructuredBlock; + } + /// SourceLocation tokens are not useful in isolation - they are low level /// value objects created/interpreted by SourceManager. We assume AST /// clients will have a pointer to the respective SourceManager. Index: include/clang/AST/StmtOpenMP.h =================================================================== --- include/clang/AST/StmtOpenMP.h +++ include/clang/AST/StmtOpenMP.h @@ -19,6 +19,7 @@ #include "clang/AST/Stmt.h" #include "clang/Basic/OpenMPKinds.h" #include "clang/Basic/SourceLocation.h" +#include "llvm/ADT/Optional.h" namespace clang { @@ -261,6 +262,11 @@ ArrayRef clauses() const { return const_cast(this)->getClauses(); } + + /// Returns the AST statement representing OpenMP structured-block of this + /// OpenMP executable directive, + /// or if this is an OpenMP stand-alone directive returns `None`. + llvm::Optional getStructuredBlock() const; }; /// This represents '#pragma omp parallel' directive. @@ -326,6 +332,10 @@ /// Return true if current directive has inner cancel directive. bool hasCancel() const { return HasCancel; } + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getInnermostCapturedStmt()->getCapturedStmt()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPParallelDirectiveClass; } @@ -1086,6 +1096,10 @@ static OMPSimdDirective *CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell); + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getBody()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPSimdDirectiveClass; } @@ -1163,6 +1177,10 @@ /// Return true if current directive has inner cancel directive. bool hasCancel() const { return HasCancel; } + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getBody()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPForDirectiveClass; } @@ -1228,6 +1246,10 @@ unsigned NumClauses, unsigned CollapsedNum, EmptyShell); + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getBody()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPForSimdDirectiveClass; } @@ -1299,6 +1321,10 @@ /// Return true if current directive has inner cancel directive. bool hasCancel() const { return HasCancel; } + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getInnermostCapturedStmt()->getCapturedStmt()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPSectionsDirectiveClass; } @@ -1359,6 +1385,10 @@ /// Return true if current directive has inner cancel directive. bool hasCancel() const { return HasCancel; } + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getInnermostCapturedStmt()->getCapturedStmt()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPSectionDirectiveClass; } @@ -1416,6 +1446,10 @@ static OMPSingleDirective *CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell); + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getInnermostCapturedStmt()->getCapturedStmt()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPSingleDirectiveClass; } @@ -1463,6 +1497,10 @@ /// static OMPMasterDirective *CreateEmpty(const ASTContext &C, EmptyShell); + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getInnermostCapturedStmt()->getCapturedStmt()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPMasterDirectiveClass; } @@ -1534,6 +1572,10 @@ /// DeclarationNameInfo getDirectiveName() const { return DirName; } + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getInnermostCapturedStmt()->getCapturedStmt()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPCriticalDirectiveClass; } @@ -1613,6 +1655,10 @@ /// Return true if current directive has inner cancel directive. bool hasCancel() const { return HasCancel; } + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getBody()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPParallelForDirectiveClass; } @@ -1682,6 +1728,10 @@ unsigned CollapsedNum, EmptyShell); + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getBody()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPParallelForSimdDirectiveClass; } @@ -1754,6 +1804,10 @@ /// Return true if current directive has inner cancel directive. bool hasCancel() const { return HasCancel; } + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getInnermostCapturedStmt()->getCapturedStmt()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPParallelSectionsDirectiveClass; } @@ -1824,6 +1878,10 @@ /// Return true if current directive has inner cancel directive. bool hasCancel() const { return HasCancel; } + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getInnermostCapturedStmt()->getCapturedStmt()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPTaskDirectiveClass; } @@ -1868,6 +1926,9 @@ /// static OMPTaskyieldDirective *CreateEmpty(const ASTContext &C, EmptyShell); + /// OpenMP taskyield construct is a stand-alone directive. + llvm::Optional getStructuredBlockImpl() const { return llvm::None; }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPTaskyieldDirectiveClass; } @@ -1912,6 +1973,9 @@ /// static OMPBarrierDirective *CreateEmpty(const ASTContext &C, EmptyShell); + /// OpenMP barrier construct is a stand-alone directive. + llvm::Optional getStructuredBlockImpl() const { return llvm::None; }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPBarrierDirectiveClass; } @@ -1956,6 +2020,9 @@ /// static OMPTaskwaitDirective *CreateEmpty(const ASTContext &C, EmptyShell); + /// OpenMP taskwait construct is a stand-alone directive. + llvm::Optional getStructuredBlockImpl() const { return llvm::None; }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPTaskwaitDirectiveClass; } @@ -2025,6 +2092,10 @@ return static_cast(*std::next(child_begin(), 1)); } + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getInnermostCapturedStmt()->getCapturedStmt()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPTaskgroupDirectiveClass; } @@ -2084,6 +2155,9 @@ static OMPFlushDirective *CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell); + /// OpenMP flush construct is a stand-alone directive. + llvm::Optional getStructuredBlockImpl() const { return llvm::None; }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPFlushDirectiveClass; } @@ -2138,6 +2212,13 @@ static OMPOrderedDirective *CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell); + /// OpenMP ordered construct may or may not be a stand-alone directive. + llvm::Optional getStructuredBlockImpl() const { + if (!hasAssociatedStmt() || !getAssociatedStmt()) + return llvm::None; // A stand-alone directive. + return const_cast(getInnermostCapturedStmt()->getCapturedStmt()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPOrderedDirectiveClass; } @@ -2271,6 +2352,10 @@ return cast_or_null(*std::next(child_begin(), 4)); } + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getInnermostCapturedStmt()->getCapturedStmt()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPAtomicDirectiveClass; } @@ -2328,6 +2413,10 @@ static OMPTargetDirective *CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell); + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getInnermostCapturedStmt()->getCapturedStmt()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPTargetDirectiveClass; } @@ -2386,6 +2475,10 @@ static OMPTargetDataDirective *CreateEmpty(const ASTContext &C, unsigned N, EmptyShell); + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getInnermostCapturedStmt()->getCapturedStmt()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPTargetDataDirectiveClass; } @@ -2445,6 +2538,9 @@ static OMPTargetEnterDataDirective *CreateEmpty(const ASTContext &C, unsigned N, EmptyShell); + /// OpenMP target enter data construct is a stand-alone directive. + llvm::Optional getStructuredBlockImpl() const { return llvm::None; }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPTargetEnterDataDirectiveClass; } @@ -2504,6 +2600,9 @@ static OMPTargetExitDataDirective *CreateEmpty(const ASTContext &C, unsigned N, EmptyShell); + /// OpenMP target exit data construct is a stand-alone directive. + llvm::Optional getStructuredBlockImpl() const { return llvm::None; }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPTargetExitDataDirectiveClass; } @@ -2563,6 +2662,10 @@ static OMPTargetParallelDirective * CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell); + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getInnermostCapturedStmt()->getCapturedStmt()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPTargetParallelDirectiveClass; } @@ -2644,6 +2747,10 @@ /// Return true if current directive has inner cancel directive. bool hasCancel() const { return HasCancel; } + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getBody()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPTargetParallelForDirectiveClass; } @@ -2702,6 +2809,10 @@ static OMPTeamsDirective *CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell); + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getInnermostCapturedStmt()->getCapturedStmt()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPTeamsDirectiveClass; } @@ -2760,6 +2871,9 @@ /// Get cancellation region for the current cancellation point. OpenMPDirectiveKind getCancelRegion() const { return CancelRegion; } + /// OpenMP cancellation point construct is a stand-alone directive. + llvm::Optional getStructuredBlockImpl() const { return llvm::None; }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPCancellationPointDirectiveClass; } @@ -2823,6 +2937,9 @@ /// Get cancellation region for the current cancellation point. OpenMPDirectiveKind getCancelRegion() const { return CancelRegion; } + /// OpenMP cancel construct is a stand-alone directive. + llvm::Optional getStructuredBlockImpl() const { return llvm::None; }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPCancelDirectiveClass; } @@ -2888,6 +3005,10 @@ unsigned NumClauses, unsigned CollapsedNum, EmptyShell); + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getBody()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPTaskLoopDirectiveClass; } @@ -2955,6 +3076,10 @@ unsigned CollapsedNum, EmptyShell); + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getBody()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPTaskLoopSimdDirectiveClass; } @@ -3022,6 +3147,10 @@ unsigned NumClauses, unsigned CollapsedNum, EmptyShell); + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getBody()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPDistributeDirectiveClass; } @@ -3081,6 +3210,9 @@ static OMPTargetUpdateDirective *CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell); + /// OpenMP target update construct is a stand-alone directive. + llvm::Optional getStructuredBlockImpl() const { return llvm::None; }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPTargetUpdateDirectiveClass; } @@ -3161,6 +3293,10 @@ /// Return true if current directive has inner cancel directive. bool hasCancel() const { return HasCancel; } + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getBody()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPDistributeParallelForDirectiveClass; } @@ -3231,6 +3367,10 @@ const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell); + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getBody()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPDistributeParallelForSimdDirectiveClass; } @@ -3298,6 +3438,10 @@ unsigned CollapsedNum, EmptyShell); + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getBody()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPDistributeSimdDirectiveClass; } @@ -3366,6 +3510,10 @@ unsigned CollapsedNum, EmptyShell); + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getBody()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPTargetParallelForSimdDirectiveClass; } @@ -3433,6 +3581,10 @@ unsigned CollapsedNum, EmptyShell); + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getBody()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPTargetSimdDirectiveClass; } @@ -3500,6 +3652,10 @@ unsigned CollapsedNum, EmptyShell); + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getBody()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPTeamsDistributeDirectiveClass; } @@ -3570,6 +3726,10 @@ unsigned CollapsedNum, EmptyShell); + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getBody()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPTeamsDistributeSimdDirectiveClass; } @@ -3641,6 +3801,10 @@ CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell); + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getBody()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPTeamsDistributeParallelForSimdDirectiveClass; } @@ -3720,6 +3884,10 @@ /// Return true if current directive has inner cancel directive. bool hasCancel() const { return HasCancel; } + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getBody()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPTeamsDistributeParallelForDirectiveClass; } @@ -3779,6 +3947,10 @@ static OMPTargetTeamsDirective *CreateEmpty(const ASTContext &C, unsigned NumClauses, EmptyShell); + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getInnermostCapturedStmt()->getCapturedStmt()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPTargetTeamsDirectiveClass; } @@ -3846,6 +4018,10 @@ CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell); + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getBody()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPTargetTeamsDistributeDirectiveClass; } @@ -3929,6 +4105,10 @@ /// Return true if current directive has inner cancel directive. bool hasCancel() const { return HasCancel; } + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getBody()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPTargetTeamsDistributeParallelForDirectiveClass; @@ -4002,6 +4182,10 @@ CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell); + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getBody()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPTargetTeamsDistributeParallelForSimdDirectiveClass; @@ -4072,6 +4256,10 @@ CreateEmpty(const ASTContext &C, unsigned NumClauses, unsigned CollapsedNum, EmptyShell); + llvm::Optional getStructuredBlockImpl() const { + return const_cast(getBody()); + }; + static bool classof(const Stmt *T) { return T->getStmtClass() == OMPTargetTeamsDistributeSimdDirectiveClass; } Index: include/clang/Basic/OpenMPKinds.h =================================================================== --- include/clang/Basic/OpenMPKinds.h +++ include/clang/Basic/OpenMPKinds.h @@ -20,10 +20,10 @@ /// OpenMP directives. enum OpenMPDirectiveKind { -#define OPENMP_DIRECTIVE(Name) \ - OMPD_##Name, -#define OPENMP_DIRECTIVE_EXT(Name, Str) \ - OMPD_##Name, +#define OPENMP_DIRECTIVE(Name) OMPD_##Name, +#define OPENMP_EXECUTABLE_DIRECTIVE(Name, Class) OMPD_##Name, +#define OPENMP_DIRECTIVE_EXT(Name, Str) OMPD_##Name, +#define OPENMP_EXECUTABLE_DIRECTIVE_EXT(Name, Class, Str) OMPD_##Name, #include "clang/Basic/OpenMPKinds.def" OMPD_unknown }; Index: include/clang/Basic/OpenMPKinds.def =================================================================== --- include/clang/Basic/OpenMPKinds.def +++ include/clang/Basic/OpenMPKinds.def @@ -14,9 +14,15 @@ #ifndef OPENMP_DIRECTIVE # define OPENMP_DIRECTIVE(Name) #endif +#ifndef OPENMP_EXECUTABLE_DIRECTIVE +# define OPENMP_EXECUTABLE_DIRECTIVE(Name, Class) +#endif #ifndef OPENMP_DIRECTIVE_EXT #define OPENMP_DIRECTIVE_EXT(Name, Str) #endif +#ifndef OPENMP_EXECUTABLE_DIRECTIVE_EXT +#define OPENMP_EXECUTABLE_DIRECTIVE_EXT(Name, Class, Str) +#endif #ifndef OPENMP_CLAUSE # define OPENMP_CLAUSE(Name, Class) #endif @@ -191,59 +197,60 @@ // OpenMP directives. OPENMP_DIRECTIVE(threadprivate) -OPENMP_DIRECTIVE(parallel) -OPENMP_DIRECTIVE(task) -OPENMP_DIRECTIVE(simd) -OPENMP_DIRECTIVE(for) -OPENMP_DIRECTIVE(sections) -OPENMP_DIRECTIVE(section) -OPENMP_DIRECTIVE(single) -OPENMP_DIRECTIVE(master) -OPENMP_DIRECTIVE(critical) -OPENMP_DIRECTIVE(taskyield) -OPENMP_DIRECTIVE(barrier) -OPENMP_DIRECTIVE(taskwait) -OPENMP_DIRECTIVE(taskgroup) -OPENMP_DIRECTIVE(flush) -OPENMP_DIRECTIVE(ordered) -OPENMP_DIRECTIVE(atomic) -OPENMP_DIRECTIVE(target) -OPENMP_DIRECTIVE(teams) -OPENMP_DIRECTIVE(cancel) +OPENMP_EXECUTABLE_DIRECTIVE(parallel, OMPParallelDirective) +OPENMP_EXECUTABLE_DIRECTIVE(task, OMPTaskDirective) +OPENMP_EXECUTABLE_DIRECTIVE(simd, OMPSimdDirective) +OPENMP_EXECUTABLE_DIRECTIVE(for, OMPForDirective) +OPENMP_EXECUTABLE_DIRECTIVE(sections, OMPSectionsDirective) +OPENMP_EXECUTABLE_DIRECTIVE(section, OMPSectionDirective) +OPENMP_EXECUTABLE_DIRECTIVE(single, OMPSingleDirective) +OPENMP_EXECUTABLE_DIRECTIVE(master, OMPMasterDirective) +OPENMP_EXECUTABLE_DIRECTIVE(critical, OMPCriticalDirective) +OPENMP_EXECUTABLE_DIRECTIVE(taskyield, OMPTaskyieldDirective) +OPENMP_EXECUTABLE_DIRECTIVE(barrier, OMPBarrierDirective) +OPENMP_EXECUTABLE_DIRECTIVE(taskwait, OMPTaskwaitDirective) +OPENMP_EXECUTABLE_DIRECTIVE(taskgroup, OMPTaskgroupDirective) +OPENMP_EXECUTABLE_DIRECTIVE(flush, OMPFlushDirective) +OPENMP_EXECUTABLE_DIRECTIVE(ordered, OMPOrderedDirective) +OPENMP_EXECUTABLE_DIRECTIVE(atomic, OMPAtomicDirective) +OPENMP_EXECUTABLE_DIRECTIVE(target, OMPTargetDirective) +OPENMP_EXECUTABLE_DIRECTIVE(teams, OMPTeamsDirective) +OPENMP_EXECUTABLE_DIRECTIVE(cancel, OMPCancelDirective) OPENMP_DIRECTIVE(requires) -OPENMP_DIRECTIVE_EXT(target_data, "target data") -OPENMP_DIRECTIVE_EXT(target_enter_data, "target enter data") -OPENMP_DIRECTIVE_EXT(target_exit_data, "target exit data") -OPENMP_DIRECTIVE_EXT(target_parallel, "target parallel") -OPENMP_DIRECTIVE_EXT(target_parallel_for, "target parallel for") -OPENMP_DIRECTIVE_EXT(target_update, "target update") -OPENMP_DIRECTIVE_EXT(parallel_for, "parallel for") -OPENMP_DIRECTIVE_EXT(parallel_for_simd, "parallel for simd") -OPENMP_DIRECTIVE_EXT(parallel_sections, "parallel sections") -OPENMP_DIRECTIVE_EXT(for_simd, "for simd") -OPENMP_DIRECTIVE_EXT(cancellation_point, "cancellation point") +OPENMP_EXECUTABLE_DIRECTIVE_EXT(target_data, OMPTargetDataDirective, "target data") +OPENMP_EXECUTABLE_DIRECTIVE_EXT(target_enter_data, OMPTargetEnterDataDirective, "target enter data") +OPENMP_EXECUTABLE_DIRECTIVE_EXT(target_exit_data, OMPTargetExitDataDirective, "target exit data") +OPENMP_EXECUTABLE_DIRECTIVE_EXT(target_parallel, OMPTargetParallelDirective, "target parallel") +OPENMP_EXECUTABLE_DIRECTIVE_EXT(target_parallel_for, OMPTargetParallelForDirective, "target parallel for") +OPENMP_EXECUTABLE_DIRECTIVE_EXT(target_update, OMPTargetUpdateDirective, "target update") +OPENMP_EXECUTABLE_DIRECTIVE_EXT(parallel_for, OMPParallelForDirective, "parallel for") +OPENMP_EXECUTABLE_DIRECTIVE_EXT(parallel_for_simd, OMPParallelForSimdDirective, "parallel for simd") +OPENMP_EXECUTABLE_DIRECTIVE_EXT(parallel_sections, OMPParallelSectionsDirective, "parallel sections") +// OPENMP_EXECUTABLE_DIRECTIVE_EXT(parallel_master, OMPParallelMasterDirective, "parallel master") // FIXME +OPENMP_EXECUTABLE_DIRECTIVE_EXT(for_simd, OMPForSimdDirective, "for simd") +OPENMP_EXECUTABLE_DIRECTIVE_EXT(cancellation_point, OMPCancellationPointDirective, "cancellation point") OPENMP_DIRECTIVE_EXT(declare_reduction, "declare reduction") OPENMP_DIRECTIVE_EXT(declare_mapper, "declare mapper") OPENMP_DIRECTIVE_EXT(declare_simd, "declare simd") -OPENMP_DIRECTIVE(taskloop) -OPENMP_DIRECTIVE_EXT(taskloop_simd, "taskloop simd") -OPENMP_DIRECTIVE(distribute) +OPENMP_EXECUTABLE_DIRECTIVE(taskloop, OMPTaskLoopDirective) +OPENMP_EXECUTABLE_DIRECTIVE_EXT(taskloop_simd, OMPTaskLoopSimdDirective, "taskloop simd") +OPENMP_EXECUTABLE_DIRECTIVE(distribute, OMPDistributeDirective) OPENMP_DIRECTIVE_EXT(declare_target, "declare target") OPENMP_DIRECTIVE_EXT(end_declare_target, "end declare target") -OPENMP_DIRECTIVE_EXT(distribute_parallel_for, "distribute parallel for") -OPENMP_DIRECTIVE_EXT(distribute_parallel_for_simd, "distribute parallel for simd") -OPENMP_DIRECTIVE_EXT(distribute_simd, "distribute simd") -OPENMP_DIRECTIVE_EXT(target_parallel_for_simd, "target parallel for simd") -OPENMP_DIRECTIVE_EXT(target_simd, "target simd") -OPENMP_DIRECTIVE_EXT(teams_distribute, "teams distribute") -OPENMP_DIRECTIVE_EXT(teams_distribute_simd, "teams distribute simd") -OPENMP_DIRECTIVE_EXT(teams_distribute_parallel_for_simd, "teams distribute parallel for simd") -OPENMP_DIRECTIVE_EXT(teams_distribute_parallel_for, "teams distribute parallel for") -OPENMP_DIRECTIVE_EXT(target_teams, "target teams") -OPENMP_DIRECTIVE_EXT(target_teams_distribute, "target teams distribute") -OPENMP_DIRECTIVE_EXT(target_teams_distribute_parallel_for, "target teams distribute parallel for") -OPENMP_DIRECTIVE_EXT(target_teams_distribute_parallel_for_simd, "target teams distribute parallel for simd") -OPENMP_DIRECTIVE_EXT(target_teams_distribute_simd, "target teams distribute simd") +OPENMP_EXECUTABLE_DIRECTIVE_EXT(distribute_parallel_for, OMPDistributeParallelForDirective, "distribute parallel for") +OPENMP_EXECUTABLE_DIRECTIVE_EXT(distribute_parallel_for_simd, OMPDistributeParallelForSimdDirective, "distribute parallel for simd") +OPENMP_EXECUTABLE_DIRECTIVE_EXT(distribute_simd, OMPDistributeSimdDirective, "distribute simd") +OPENMP_EXECUTABLE_DIRECTIVE_EXT(target_parallel_for_simd, OMPTargetParallelForSimdDirective, "target parallel for simd") +OPENMP_EXECUTABLE_DIRECTIVE_EXT(target_simd, OMPTargetSimdDirective, "target simd") +OPENMP_EXECUTABLE_DIRECTIVE_EXT(teams_distribute, OMPTeamsDistributeDirective, "teams distribute") +OPENMP_EXECUTABLE_DIRECTIVE_EXT(teams_distribute_simd, OMPTeamsDistributeSimdDirective, "teams distribute simd") +OPENMP_EXECUTABLE_DIRECTIVE_EXT(teams_distribute_parallel_for_simd, OMPTeamsDistributeParallelForSimdDirective, "teams distribute parallel for simd") +OPENMP_EXECUTABLE_DIRECTIVE_EXT(teams_distribute_parallel_for, OMPTeamsDistributeParallelForDirective, "teams distribute parallel for") +OPENMP_EXECUTABLE_DIRECTIVE_EXT(target_teams, OMPTargetTeamsDirective, "target teams") +OPENMP_EXECUTABLE_DIRECTIVE_EXT(target_teams_distribute, OMPTargetTeamsDistributeDirective, "target teams distribute") +OPENMP_EXECUTABLE_DIRECTIVE_EXT(target_teams_distribute_parallel_for, OMPTargetTeamsDistributeParallelForDirective, "target teams distribute parallel for") +OPENMP_EXECUTABLE_DIRECTIVE_EXT(target_teams_distribute_parallel_for_simd, OMPTargetTeamsDistributeParallelForSimdDirective, "target teams distribute parallel for simd") +OPENMP_EXECUTABLE_DIRECTIVE_EXT(target_teams_distribute_simd, OMPTargetTeamsDistributeSimdDirective, "target teams distribute simd") OPENMP_DIRECTIVE(allocate) // OpenMP clauses. @@ -921,7 +928,9 @@ #undef OPENMP_PROC_BIND_KIND #undef OPENMP_DEFAULT_KIND #undef OPENMP_DIRECTIVE +#undef OPENMP_EXECUTABLE_DIRECTIVE #undef OPENMP_DIRECTIVE_EXT +#undef OPENMP_EXECUTABLE_DIRECTIVE_EXT #undef OPENMP_CLAUSE #undef OPENMP_CRITICAL_CLAUSE #undef OPENMP_ORDERED_CLAUSE Index: lib/AST/StmtOpenMP.cpp =================================================================== --- lib/AST/StmtOpenMP.cpp +++ lib/AST/StmtOpenMP.cpp @@ -22,6 +22,21 @@ std::copy(Clauses.begin(), Clauses.end(), getClauses().begin()); } +llvm::Optional OMPExecutableDirective::getStructuredBlock() const { + switch (getDirectiveKind()) { +#define OPENMP_EXECUTABLE_DIRECTIVE(Name, Class) \ + case OMPD_##Name: \ + return cast(this)->getStructuredBlockImpl(); +#define OPENMP_EXECUTABLE_DIRECTIVE_EXT(Name, Class, Str) \ + case OMPD_##Name: \ + return cast(this)->getStructuredBlockImpl(); +#include "clang/Basic/OpenMPKinds.def" + default: + break; + } + llvm_unreachable("Not an OpenMP executable directive."); +} + void OMPLoopDirective::setCounters(ArrayRef A) { assert(A.size() == getCollapsedNumber() && "Number of loop counters is not the same as the collapsed number"); Index: lib/AST/TextNodeDumper.cpp =================================================================== --- lib/AST/TextNodeDumper.cpp +++ lib/AST/TextNodeDumper.cpp @@ -121,6 +121,9 @@ dumpPointer(Node); dumpSourceRange(Node->getSourceRange()); + if (Node->isOMPStructuredBlock()) + OS << " openmp_structured_block"; + if (const auto *E = dyn_cast(Node)) { dumpType(E->getType()); Index: lib/Basic/OpenMPKinds.cpp =================================================================== --- lib/Basic/OpenMPKinds.cpp +++ lib/Basic/OpenMPKinds.cpp @@ -22,7 +22,10 @@ OpenMPDirectiveKind clang::getOpenMPDirectiveKind(StringRef Str) { return llvm::StringSwitch(Str) #define OPENMP_DIRECTIVE(Name) .Case(#Name, OMPD_##Name) +#define OPENMP_EXECUTABLE_DIRECTIVE(Name, Class) .Case(#Name, OMPD_##Name) #define OPENMP_DIRECTIVE_EXT(Name, Str) .Case(Str, OMPD_##Name) +#define OPENMP_EXECUTABLE_DIRECTIVE_EXT(Name, Class, Str) \ + .Case(Str, OMPD_##Name) #include "clang/Basic/OpenMPKinds.def" .Default(OMPD_unknown); } @@ -35,9 +38,15 @@ #define OPENMP_DIRECTIVE(Name) \ case OMPD_##Name: \ return #Name; +#define OPENMP_EXECUTABLE_DIRECTIVE(Name, Class) \ + case OMPD_##Name: \ + return #Name; #define OPENMP_DIRECTIVE_EXT(Name, Str) \ case OMPD_##Name: \ return Str; +#define OPENMP_EXECUTABLE_DIRECTIVE_EXT(Name, Class, Str) \ + case OMPD_##Name: \ + return Str; #include "clang/Basic/OpenMPKinds.def" break; } Index: lib/Sema/SemaOpenMP.cpp =================================================================== --- lib/Sema/SemaOpenMP.cpp +++ lib/Sema/SemaOpenMP.cpp @@ -3768,6 +3768,8 @@ llvm_unreachable("Unknown OpenMP directive"); } + ErrorFound = Res.isInvalid() || ErrorFound; + for (const auto &P : VarsWithInheritedDSA) { Diag(P.second->getExprLoc(), diag::err_omp_no_dsa_for_variable) << P.first << P.second->getSourceRange(); @@ -3780,6 +3782,11 @@ if (ErrorFound) return StmtError(); + + if (llvm::Optional StructuredBlockStmt = + Res.getAs()->getStructuredBlock()) + (*StructuredBlockStmt)->setIsOMPStructuredBlock(true); + return Res; } Index: lib/Serialization/ASTReaderStmt.cpp =================================================================== --- lib/Serialization/ASTReaderStmt.cpp +++ lib/Serialization/ASTReaderStmt.cpp @@ -111,7 +111,7 @@ /// The number of record fields required for the Stmt class /// itself. - static const unsigned NumStmtFields = 0; + static const unsigned NumStmtFields = 1; /// The number of record fields required for the Expr class /// itself. @@ -148,6 +148,7 @@ void ASTStmtReader::VisitStmt(Stmt *S) { assert(Record.getIdx() == 0 && "Incorrect statement field count"); + S->setIsOMPStructuredBlock(Record.readInt()); } void ASTStmtReader::VisitNullStmt(NullStmt *S) { Index: lib/Serialization/ASTWriterDecl.cpp =================================================================== --- lib/Serialization/ASTWriterDecl.cpp +++ lib/Serialization/ASTWriterDecl.cpp @@ -2175,7 +2175,8 @@ Abv = std::make_shared(); Abv->Add(BitCodeAbbrevOp(serialization::EXPR_DECL_REF)); //Stmt - //Expr + Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 1)); // IsOMPStructuredBlock + // Expr Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 6)); // Type Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 1)); //TypeDependent Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 1)); //ValueDependent @@ -2198,7 +2199,8 @@ Abv = std::make_shared(); Abv->Add(BitCodeAbbrevOp(serialization::EXPR_INTEGER_LITERAL)); //Stmt - //Expr + Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 1)); // IsOMPStructuredBlock + // Expr Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 6)); // Type Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 1)); //TypeDependent Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 1)); //ValueDependent @@ -2216,7 +2218,8 @@ Abv = std::make_shared(); Abv->Add(BitCodeAbbrevOp(serialization::EXPR_CHARACTER_LITERAL)); //Stmt - //Expr + Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 1)); // IsOMPStructuredBlock + // Expr Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 6)); // Type Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 1)); //TypeDependent Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 1)); //ValueDependent @@ -2234,6 +2237,7 @@ Abv = std::make_shared(); Abv->Add(BitCodeAbbrevOp(serialization::EXPR_IMPLICIT_CAST)); // Stmt + Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 1)); // IsOMPStructuredBlock // Expr Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::VBR, 6)); // Type Abv->Add(BitCodeAbbrevOp(BitCodeAbbrevOp::Fixed, 1)); //TypeDependent Index: lib/Serialization/ASTWriterStmt.cpp =================================================================== --- lib/Serialization/ASTWriterStmt.cpp +++ lib/Serialization/ASTWriterStmt.cpp @@ -67,6 +67,7 @@ } void ASTStmtWriter::VisitStmt(Stmt *S) { + Record.push_back(S->StmtBits.IsOMPStructuredBlock); } void ASTStmtWriter::VisitNullStmt(NullStmt *S) { Index: test/AST/ast-dump-openmp-atomic.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-atomic.c @@ -0,0 +1,18 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test(int i) { +#pragma omp atomic + ++i; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-atomic.c:3:1, line:6:1> line:3:6 test 'void (int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:15 used i 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPAtomicDirective {{.*}} +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | |-UnaryOperator {{.*}} openmp_structured_block 'int' prefix '++' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'i' 'int' +// CHECK-NEXT: | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-atomic.c:4:9) *const restrict' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'i' 'int' Index: test/AST/ast-dump-openmp-barrier.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-barrier.c @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test() { +#pragma omp barrier +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-barrier.c:3:1, line:5:1> line:3:6 test 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPBarrierDirective {{.*}} Index: test/AST/ast-dump-openmp-cancel.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-cancel.c @@ -0,0 +1,20 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test() { +#pragma omp parallel + { +#pragma omp cancel parallel + } +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-cancel.c:3:1, line:8:1> line:3:6 test 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPParallelDirective {{.*}} +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-CompoundStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | `-OMPCancelDirective {{.*}} +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-cancel.c:4:9) *const restrict' Index: test/AST/ast-dump-openmp-cancellation-point.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-cancellation-point.c @@ -0,0 +1,20 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test() { +#pragma omp parallel + { +#pragma omp cancellation point parallel + } +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-cancellation-point.c:3:1, line:8:1> line:3:6 test 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPParallelDirective {{.*}} +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-CompoundStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | `-OMPCancellationPointDirective {{.*}} +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-cancellation-point.c:4:9) *const restrict' Index: test/AST/ast-dump-openmp-critical.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-critical.c @@ -0,0 +1,15 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test() { +#pragma omp critical + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-critical.c:3:1, line:6:1> line:3:6 test 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPCriticalDirective {{.*}} +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> +// CHECK-NEXT: |-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-critical.c:4:9) *const restrict' Index: test/AST/ast-dump-openmp-distribute-parallel-for-simd.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-distribute-parallel-for-simd.c @@ -0,0 +1,262 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp distribute parallel for simd + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp distribute parallel for simd + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp distribute parallel for simd collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp distribute parallel for simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp distribute parallel for simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-distribute-parallel-for-simd.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: test/AST/ast-dump-openmp-distribute-parallel-for.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-distribute-parallel-for.c @@ -0,0 +1,262 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp distribute parallel for + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp distribute parallel for + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp distribute parallel for collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp distribute parallel for collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp distribute parallel for collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-distribute-parallel-for.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPDistributeParallelForDirective {{.*}} +// CHECK-NEXT: |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: test/AST/ast-dump-openmp-distribute-simd.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-distribute-simd.c @@ -0,0 +1,242 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp distribute simd + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp distribute simd + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp distribute simd collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp distribute simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp distribute simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-distribute-simd.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPDistributeSimdDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPDistributeSimdDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPDistributeSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPDistributeSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPDistributeSimdDirective {{.*}} +// CHECK-NEXT: |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: test/AST/ast-dump-openmp-distribute.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-distribute.c @@ -0,0 +1,242 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp distribute + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp distribute + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp distribute collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp distribute collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp distribute collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-distribute.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPDistributeDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPDistributeDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPDistributeDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPDistributeDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPDistributeDirective {{.*}} +// CHECK-NEXT: |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-distribute.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: test/AST/ast-dump-openmp-flush.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-flush.c @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test() { +#pragma omp flush +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-flush.c:3:1, line:5:1> line:3:6 test 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPFlushDirective {{.*}} Index: test/AST/ast-dump-openmp-for-simd.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-for-simd.c @@ -0,0 +1,242 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp for simd + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp for simd + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp for simd collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp for simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp for simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-for-simd.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPForSimdDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPForSimdDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPForSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPForSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPForSimdDirective {{.*}} +// CHECK-NEXT: |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: test/AST/ast-dump-openmp-for.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-for.c @@ -0,0 +1,242 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp for + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp for + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp for collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp for collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp for collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl 0x{{.*}} <> +// CHECK: |-FunctionDecl 0x{{.*}} <{{.*}}ast-dump-openmp-for.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl 0x{{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt 0x{{.*}} +// CHECK-NEXT: | `-OMPForDirective 0x{{.*}} +// CHECK-NEXT: | `-CapturedStmt 0x{{.*}} +// CHECK-NEXT: | |-CapturedDecl 0x{{.*}} <> +// CHECK-NEXT: | | |-ForStmt 0x{{.*}} +// CHECK-NEXT: | | | |-DeclStmt 0x{{.*}} +// CHECK-NEXT: | | | | `-VarDecl 0x{{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator 0x{{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator 0x{{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt 0x{{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl 0x{{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-for.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl 0x{{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl 0x{{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl 0x{{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl 0x{{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt 0x{{.*}} +// CHECK-NEXT: | `-OMPForDirective 0x{{.*}} +// CHECK-NEXT: | `-CapturedStmt 0x{{.*}} +// CHECK-NEXT: | |-CapturedDecl 0x{{.*}} <> +// CHECK-NEXT: | | |-ForStmt 0x{{.*}} +// CHECK-NEXT: | | | |-DeclStmt 0x{{.*}} +// CHECK-NEXT: | | | | `-VarDecl 0x{{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator 0x{{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator 0x{{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt 0x{{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt 0x{{.*}} +// CHECK-NEXT: | | | | `-VarDecl 0x{{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator 0x{{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator 0x{{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt 0x{{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl 0x{{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-for.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl 0x{{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl 0x{{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl 0x{{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl 0x{{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl 0x{{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt 0x{{.*}} +// CHECK-NEXT: | `-OMPForDirective 0x{{.*}} +// CHECK-NEXT: | |-OMPCollapseClause 0x{{.*}} +// CHECK-NEXT: | | `-ConstantExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral 0x{{.*}} 'int' 1 +// CHECK-NEXT: | `-CapturedStmt 0x{{.*}} +// CHECK-NEXT: | |-CapturedDecl 0x{{.*}} <> +// CHECK-NEXT: | | |-ForStmt 0x{{.*}} +// CHECK-NEXT: | | | |-DeclStmt 0x{{.*}} +// CHECK-NEXT: | | | | `-VarDecl 0x{{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator 0x{{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator 0x{{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt 0x{{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt 0x{{.*}} +// CHECK-NEXT: | | | | `-VarDecl 0x{{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator 0x{{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator 0x{{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt 0x{{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl 0x{{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-for.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl 0x{{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl 0x{{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl 0x{{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl 0x{{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl 0x{{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt 0x{{.*}} +// CHECK-NEXT: | `-OMPForDirective 0x{{.*}} +// CHECK-NEXT: | |-OMPCollapseClause 0x{{.*}} +// CHECK-NEXT: | | `-ConstantExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral 0x{{.*}} 'int' 2 +// CHECK-NEXT: | `-CapturedStmt 0x{{.*}} +// CHECK-NEXT: | |-CapturedDecl 0x{{.*}} <> +// CHECK-NEXT: | | |-ForStmt 0x{{.*}} +// CHECK-NEXT: | | | |-DeclStmt 0x{{.*}} +// CHECK-NEXT: | | | | `-VarDecl 0x{{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator 0x{{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator 0x{{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt 0x{{.*}} +// CHECK-NEXT: | | | |-DeclStmt 0x{{.*}} +// CHECK-NEXT: | | | | `-VarDecl 0x{{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator 0x{{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator 0x{{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt 0x{{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl 0x{{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-for.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl 0x{{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl 0x{{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl 0x{{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl 0x{{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl 0x{{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl 0x{{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt 0x{{.*}} +// CHECK-NEXT: `-OMPForDirective 0x{{.*}} +// CHECK-NEXT: |-OMPCollapseClause 0x{{.*}} +// CHECK-NEXT: | `-ConstantExpr 0x{{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral 0x{{.*}} 'int' 2 +// CHECK-NEXT: `-CapturedStmt 0x{{.*}} +// CHECK-NEXT: |-CapturedDecl 0x{{.*}} <> +// CHECK-NEXT: | |-ForStmt 0x{{.*}} +// CHECK-NEXT: | | |-DeclStmt 0x{{.*}} +// CHECK-NEXT: | | | `-VarDecl 0x{{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator 0x{{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator 0x{{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt 0x{{.*}} +// CHECK-NEXT: | | |-DeclStmt 0x{{.*}} +// CHECK-NEXT: | | | `-VarDecl 0x{{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator 0x{{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator 0x{{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt 0x{{.*}} openmp_structured_block +// CHECK-NEXT: | | |-DeclStmt 0x{{.*}} +// CHECK-NEXT: | | | `-VarDecl 0x{{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator 0x{{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr 0x{{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator 0x{{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr 0x{{.*}} 'int' lvalue Var 0x{{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt 0x{{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl 0x{{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-for.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl 0x{{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl 0x{{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl 0x{{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral 0x{{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr 0x{{.*}} 'int' lvalue ParmVar 0x{{.*}} 'z' 'int' Index: test/AST/ast-dump-openmp-master.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-master.c @@ -0,0 +1,15 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test() { +#pragma omp master + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-master.c:3:1, line:6:1> line:3:6 test 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPMasterDirective {{.*}} +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> +// CHECK-NEXT: |-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-master.c:4:9) *const restrict' Index: test/AST/ast-dump-openmp-ordered.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-ordered.c @@ -0,0 +1,82 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test_one() { +#pragma omp ordered + ; +} + +void test_two(int x) { +#pragma omp for ordered + for (int i = 0; i < x; i++) + ; +} + +void test_three(int x) { +#pragma omp for ordered(1) + for (int i = 0; i < x; i++) { +#pragma omp ordered depend(source) + } +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-ordered.c:3:1, line:6:1> line:3:6 test_one 'void ()' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPOrderedDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> +// CHECK-NEXT: | |-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-ordered.c:4:9) *const restrict' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:8:6 test_two 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPForDirective {{.*}} +// CHECK-NEXT: | |-OMPOrderedClause {{.*}} +// CHECK-NEXT: | | `-<<>> +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-ordered.c:9:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:14:6 test_three 'void (int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPForDirective {{.*}} +// CHECK-NEXT: |-OMPOrderedClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-CompoundStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | `-OMPOrderedDirective {{.*}} +// CHECK-NEXT: | | |-OMPDependClause {{.*}} > +// CHECK-NEXT: | | `-<<>> +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-ordered.c:15:9) *const restrict' +// CHECK-NEXT: | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' Index: test/AST/ast-dump-openmp-parallel-for-simd.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-parallel-for-simd.c @@ -0,0 +1,252 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp parallel for simd + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp parallel for simd + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp parallel for simd collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp parallel for simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp parallel for simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-parallel-for-simd.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPParallelForSimdDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPParallelForSimdDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPParallelForSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPParallelForSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPParallelForSimdDirective {{.*}} +// CHECK-NEXT: |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: test/AST/ast-dump-openmp-parallel-for.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-parallel-for.c @@ -0,0 +1,252 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp parallel for + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp parallel for + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp parallel for collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp parallel for collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp parallel for collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-parallel-for.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPParallelForDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPParallelForDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPParallelForDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPParallelForDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPParallelForDirective {{.*}} +// CHECK-NEXT: |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: test/AST/ast-dump-openmp-parallel-master-XFAIL.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-parallel-master-XFAIL.c @@ -0,0 +1,34 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -fopenmp-version=50 -ast-dump %s 2>&1 | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test_zero() { +#pragma omp parallel master + ; +} +// CHECK: ast-dump-openmp-parallel-master-XFAIL.c:4:22: warning: extra tokens at the end of '#pragma omp parallel' are ignored + +void test_one() { +#pragma omp parallel master + { ; } +} +// CHECK: ast-dump-openmp-parallel-master-XFAIL.c:10:22: warning: extra tokens at the end of '#pragma omp parallel' are ignored + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-parallel-master-XFAIL.c:3:1, line:6:1> line:3:6 test_zero 'void ()' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPParallelDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-master-XFAIL.c:4:9) *const restrict' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:9:6 test_one 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPParallelDirective {{.*}} +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-CompoundStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | `-NullStmt {{.*}} +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-master-XFAIL.c:10:9) *const restrict' Index: test/AST/ast-dump-openmp-parallel-sections.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-parallel-sections.c @@ -0,0 +1,25 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test_zero() { +#pragma omp parallel sections + {} +} + +void test_one() { +#pragma omp parallel sections + { ; } +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-parallel-sections.c:3:1, line:6:1> line:3:6 test_zero 'void ()' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: `-FunctionDecl {{.*}} line:8:6 test_one 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPParallelSectionsDirective {{.*}} +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> +// CHECK-NEXT: |-CompoundStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | `-NullStmt {{.*}} +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel-sections.c:9:9) *const restrict' Index: test/AST/ast-dump-openmp-parallel.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-parallel.c @@ -0,0 +1,17 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test() { +#pragma omp parallel + ; +} + +// CHECK: TranslationUnitDecl 0x{{.*}} <> +// CHECK: `-FunctionDecl 0x{{.*}} <{{.*}}ast-dump-openmp-parallel.c:3:1, line:6:1> line:3:6 test 'void ()' +// CHECK-NEXT: `-CompoundStmt 0x{{.*}} +// CHECK-NEXT: `-OMPParallelDirective 0x{{.*}} +// CHECK-NEXT: `-CapturedStmt 0x{{.*}} +// CHECK-NEXT: `-CapturedDecl 0x{{.*}} <> nothrow +// CHECK-NEXT: |-NullStmt 0x{{.*}} openmp_structured_block +// CHECK-NEXT: |-ImplicitParamDecl 0x{{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl 0x{{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: `-ImplicitParamDecl 0x{{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-parallel.c:4:9) *const restrict' Index: test/AST/ast-dump-openmp-section.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-section.c @@ -0,0 +1,28 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test() { +#pragma omp sections + { +#pragma omp section + ; + } +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-section.c:3:1, line:9:1> line:3:6 test 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPSectionsDirective {{.*}} +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> +// CHECK-NEXT: |-CompoundStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | `-OMPSectionDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> +// CHECK-NEXT: | |-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-section.c:6:9) *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-section.c:4:9) *const restrict' +// CHECK-NEXT: |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | `-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: `-CapturedDecl {{.*}} <> +// CHECK-NEXT: |-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-section.c:6:9) *const restrict' Index: test/AST/ast-dump-openmp-sections.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-sections.c @@ -0,0 +1,23 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test_zero() { +#pragma omp sections + {} +} + +void test_one() { +#pragma omp sections + { ; } +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-sections.c:3:1, line:6:1> line:3:6 test_zero 'void ()' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: `-FunctionDecl {{.*}} line:8:6 test_one 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPSectionsDirective {{.*}} +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> +// CHECK-NEXT: |-CompoundStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | `-NullStmt {{.*}} +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-sections.c:9:9) *const restrict' Index: test/AST/ast-dump-openmp-simd.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-simd.c @@ -0,0 +1,242 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp simd + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp simd + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp simd collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-simd.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPSimdDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPSimdDirective {{.*}} +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPSimdDirective {{.*}} +// CHECK-NEXT: |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: test/AST/ast-dump-openmp-single.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-single.c @@ -0,0 +1,15 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test() { +#pragma omp single + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-single.c:3:1, line:6:1> line:3:6 test 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPSingleDirective {{.*}} +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> +// CHECK-NEXT: |-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-single.c:4:9) *const restrict' Index: test/AST/ast-dump-openmp-target-data.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-target-data.c @@ -0,0 +1,18 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test(int x) { +#pragma omp target data map(x) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target-data.c:3:1, line:6:1> line:3:6 test 'void (int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:15 used x 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetDataDirective {{.*}} +// CHECK-NEXT: |-OMPMapClause {{.*}} +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> +// CHECK-NEXT: |-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-data.c:4:9) *const restrict' Index: test/AST/ast-dump-openmp-target-enter-data.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-target-enter-data.c @@ -0,0 +1,24 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test(int x) { +#pragma omp target enter data map(to \ + : x) +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target-enter-data.c:3:1, line:6:1> line:3:6 test 'void (int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:15 used x 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetEnterDataDirective {{.*}} +// CHECK-NEXT: |-OMPMapClause {{.*}} +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-CompoundStmt {{.*}} +// CHECK-NEXT: |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-enter-data.c:4:9) *const restrict' Index: test/AST/ast-dump-openmp-target-exit-data.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-target-exit-data.c @@ -0,0 +1,24 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test(int x) { +#pragma omp target exit data map(from \ + : x) +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target-exit-data.c:3:1, line:6:1> line:3:6 test 'void (int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:15 used x 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetExitDataDirective {{.*}} +// CHECK-NEXT: |-OMPMapClause {{.*}} +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-CompoundStmt {{.*}} +// CHECK-NEXT: |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-exit-data.c:4:9) *const restrict' Index: test/AST/ast-dump-openmp-target-parallel-for-simd.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-target-parallel-for-simd.c @@ -0,0 +1,957 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp target parallel for simd + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp target parallel for simd + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp target parallel for simd collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp target parallel for simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp target parallel for simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target-parallel-for-simd.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetParallelForSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetParallelForSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetParallelForSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetParallelForSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetParallelForSimdDirective {{.*}} +// CHECK-NEXT: |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: test/AST/ast-dump-openmp-target-parallel-for.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-target-parallel-for.c @@ -0,0 +1,957 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp target parallel for + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp target parallel for + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp target parallel for collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp target parallel for collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp target parallel for collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target-parallel-for.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetParallelForDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetParallelForDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetParallelForDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetParallelForDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetParallelForDirective {{.*}} +// CHECK-NEXT: |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: test/AST/ast-dump-openmp-target-parallel.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-target-parallel.c @@ -0,0 +1,53 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test() { +#pragma omp target parallel + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target-parallel.c:3:1, line:6:1> line:3:6 test 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetParallelDirective {{.*}} +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-CapturedStmt {{.*}} +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel.c:4:9) *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel.c:4:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | `-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel.c:4:9) *const restrict' +// CHECK-NEXT: |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel.c:4:9) *const restrict' +// CHECK-NEXT: |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | `-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-CapturedStmt {{.*}} +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel.c:4:9) *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel.c:4:9) *const restrict' +// CHECK-NEXT: |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | `-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-parallel.c:4:9) *const restrict' Index: test/AST/ast-dump-openmp-target-simd.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-target-simd.c @@ -0,0 +1,497 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp target simd + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp target simd + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp target simd collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp target simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp target simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target-simd.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetSimdDirective {{.*}} +// CHECK-NEXT: |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: test/AST/ast-dump-openmp-target-teams-distribute-parallel-for-simd.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-target-teams-distribute-parallel-for-simd.c @@ -0,0 +1,1957 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp target teams distribute parallel for simd + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp target teams distribute parallel for simd + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp target teams distribute parallel for simd collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp target teams distribute parallel for simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp target teams distribute parallel for simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetTeamsDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | | `-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetTeamsDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetTeamsDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetTeamsDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetTeamsDistributeParallelForSimdDirective {{.*}} +// CHECK-NEXT: |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | | |-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: test/AST/ast-dump-openmp-target-teams-distribute-parallel-for.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-target-teams-distribute-parallel-for.c @@ -0,0 +1,1957 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp target teams distribute parallel for + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp target teams distribute parallel for + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp target teams distribute parallel for collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp target teams distribute parallel for collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp target teams distribute parallel for collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetTeamsDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | | `-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetTeamsDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetTeamsDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetTeamsDistributeParallelForDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | | | `-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetTeamsDistributeParallelForDirective {{.*}} +// CHECK-NEXT: |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | | |-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-parallel-for.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: test/AST/ast-dump-openmp-target-teams-distribute-simd.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-target-teams-distribute-simd.c @@ -0,0 +1,957 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp target teams distribute simd + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp target teams distribute simd + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp target teams distribute simd collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp target teams distribute simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp target teams distribute simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target-teams-distribute-simd.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetTeamsDistributeSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetTeamsDistributeSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetTeamsDistributeSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetTeamsDistributeSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetTeamsDistributeSimdDirective {{.*}} +// CHECK-NEXT: |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: test/AST/ast-dump-openmp-target-teams-distribute.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-target-teams-distribute.c @@ -0,0 +1,957 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp target teams distribute + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp target teams distribute + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp target teams distribute collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp target teams distribute collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp target teams distribute collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target-teams-distribute.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetTeamsDistributeDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:4:9) *const restrict' +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:4:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:4:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:4:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetTeamsDistributeDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:10:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:10:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:10:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:10:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetTeamsDistributeDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:17:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:17:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:17:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:17:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetTeamsDistributeDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:24:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:24:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:24:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:24:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetTeamsDistributeDirective {{.*}} +// CHECK-NEXT: |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:31:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:31:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:31:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:31:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt {{.*}} +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams-distribute.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: test/AST/ast-dump-openmp-target-teams.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-target-teams.c @@ -0,0 +1,53 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test() { +#pragma omp target teams + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target-teams.c:3:1, line:6:1> line:3:6 test 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetTeamsDirective {{.*}} +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-CapturedStmt {{.*}} +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams.c:4:9) *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams.c:4:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | `-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams.c:4:9) *const restrict' +// CHECK-NEXT: |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams.c:4:9) *const restrict' +// CHECK-NEXT: |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | `-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-CapturedStmt {{.*}} +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams.c:4:9) *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams.c:4:9) *const restrict' +// CHECK-NEXT: |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | `-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-teams.c:4:9) *const restrict' Index: test/AST/ast-dump-openmp-target-update.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-target-update.c @@ -0,0 +1,23 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test(int x) { +#pragma omp target update to(x) +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target-update.c:3:1, line:5:1> line:3:6 test 'void (int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:15 used x 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetUpdateDirective {{.*}} +// CHECK-NEXT: |-OMPToClause {{.*}} +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-CompoundStmt {{.*}} +// CHECK-NEXT: |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target-update.c:4:9) *const restrict' Index: test/AST/ast-dump-openmp-target.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-target.c @@ -0,0 +1,29 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test() { +#pragma omp target + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-target.c:3:1, line:6:1> line:3:6 test 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetDirective {{.*}} +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-CapturedStmt {{.*}} +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target.c:4:9) *const restrict' +// CHECK-NEXT: |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target.c:4:9) *const restrict' +// CHECK-NEXT: |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | `-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-target.c:4:9) *const restrict' Index: test/AST/ast-dump-openmp-task.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-task.c @@ -0,0 +1,21 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test() { +#pragma omp task + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-task.c:3:1, line:6:1> line:3:6 test 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTaskDirective {{.*}} +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-task.c:4:9) *const restrict' Index: test/AST/ast-dump-openmp-taskgroup.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-taskgroup.c @@ -0,0 +1,15 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test() { +#pragma omp taskgroup + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-taskgroup.c:3:1, line:6:1> line:3:6 test 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTaskgroupDirective {{.*}} +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> +// CHECK-NEXT: |-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-taskgroup.c:4:9) *const restrict' Index: test/AST/ast-dump-openmp-taskloop-simd.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-taskloop-simd.c @@ -0,0 +1,312 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp taskloop simd + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp taskloop simd + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp taskloop simd collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp taskloop simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp taskloop simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-taskloop-simd.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTaskLoopSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .st. 'const long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .liter. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .reductions. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-taskloop-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTaskLoopSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .st. 'const long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .liter. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .reductions. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-taskloop-simd.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTaskLoopSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .st. 'const long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .liter. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .reductions. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-taskloop-simd.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTaskLoopSimdDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .st. 'const long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .liter. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .reductions. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-taskloop-simd.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTaskLoopSimdDirective {{.*}} +// CHECK-NEXT: |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt {{.*}} +// CHECK-NEXT: | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .lb. 'const unsigned long' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .ub. 'const unsigned long' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .st. 'const long' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .liter. 'const int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .reductions. 'void *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-taskloop-simd.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: test/AST/ast-dump-openmp-taskloop.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-taskloop.c @@ -0,0 +1,312 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp taskloop + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp taskloop + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp taskloop collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp taskloop collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp taskloop collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-taskloop.c:3:1, line:7:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTaskLoopDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .st. 'const long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .liter. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .reductions. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-taskloop.c:4:9) *const restrict' +// CHECK-NEXT: | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:9:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTaskLoopDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .st. 'const long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .liter. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .reductions. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-taskloop.c:10:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:16:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTaskLoopDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .st. 'const long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .liter. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .reductions. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-taskloop.c:17:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:23:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTaskLoopDirective {{.*}} +// CHECK-NEXT: | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .st. 'const long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .liter. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .reductions. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-taskloop.c:24:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:30:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTaskLoopDirective {{.*}} +// CHECK-NEXT: |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> +// CHECK-NEXT: | |-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-<<>> +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | `-NullStmt {{.*}} +// CHECK-NEXT: | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .lb. 'const unsigned long' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .ub. 'const unsigned long' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .st. 'const long' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .liter. 'const int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .reductions. 'void *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-taskloop.c:31:9) *const restrict' +// CHECK-NEXT: | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: test/AST/ast-dump-openmp-taskwait.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-taskwait.c @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test() { +#pragma omp taskwait +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-taskwait.c:3:1, line:5:1> line:3:6 test 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTaskwaitDirective {{.*}} Index: test/AST/ast-dump-openmp-taskyield.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-taskyield.c @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test() { +#pragma omp taskyield +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-taskyield.c:3:1, line:5:1> line:3:6 test 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTaskyieldDirective {{.*}} Index: test/AST/ast-dump-openmp-teams-distribute-parallel-for-simd.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-teams-distribute-parallel-for-simd.c @@ -0,0 +1,2163 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp target +#pragma omp teams distribute parallel for simd + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp target +#pragma omp teams distribute parallel for simd + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp target +#pragma omp teams distribute parallel for simd collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp target +#pragma omp teams distribute parallel for simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp target +#pragma omp teams distribute parallel for simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:3:1, line:8:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | | `-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | `-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:5:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:5:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:5:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:5:9) *const restrict' +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:10:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:11:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:11:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:12:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:12:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:11:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:12:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:12:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:18:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:19:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:19:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:20:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:20:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:19:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:20:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:20:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:26:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:27:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:25 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'long' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} > 'long' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'long' '*' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} <> 'long' +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:27:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:28:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:28:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:27:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:28:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:28:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:25 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'long' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} > 'long' '-' +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'long' '*' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-ImplicitCastExpr {{.*}} <> 'long' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:34:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetDirective {{.*}} +// CHECK-NEXT: |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:36:9) *const restrict' +// CHECK-NEXT: | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:36:9) *const restrict' +// CHECK-NEXT: | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | | |-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | | | `-FieldDecl {{.*}} col:27 implicit 'int &' +// CHECK-NEXT: | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:36:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:35:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:27 implicit 'int &' +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:36:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:36:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:27 implicit 'int &' +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:36:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-OMPCapturedExprDecl {{.*}} col:25 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'long' +// CHECK-NEXT: | | | `-BinaryOperator {{.*}} > 'long' '-' +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'long' '*' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} <> 'long' +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:35:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-OMPTeamsDistributeParallelForSimdDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:36:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:36:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:27 implicit 'int &' +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:36:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:35:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int &' +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:36:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:36:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:27 implicit 'int &' +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for-simd.c:36:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | |-OMPCapturedExprDecl {{.*}} col:25 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'long' +// CHECK-NEXT: | `-BinaryOperator {{.*}} > 'long' '-' +// CHECK-NEXT: | |-BinaryOperator {{.*}} 'long' '*' +// CHECK-NEXT: | | |-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | `-ImplicitCastExpr {{.*}} <> 'long' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: test/AST/ast-dump-openmp-teams-distribute-parallel-for.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-teams-distribute-parallel-for.c @@ -0,0 +1,2163 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp target +#pragma omp teams distribute parallel for + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp target +#pragma omp teams distribute parallel for + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp target +#pragma omp teams distribute parallel for collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp target +#pragma omp teams distribute parallel for collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp target +#pragma omp teams distribute parallel for collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:3:1, line:8:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-OMPTeamsDistributeParallelForDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | | `-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | `-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-OMPTeamsDistributeParallelForDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:5:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:5:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:5:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:5:9) *const restrict' +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:10:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-OMPTeamsDistributeParallelForDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:11:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:11:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-OMPTeamsDistributeParallelForDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:12:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:12:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:11:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:12:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:12:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:18:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-OMPTeamsDistributeParallelForDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:19:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:19:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-OMPTeamsDistributeParallelForDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:20:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:20:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:19:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:20:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:20:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:26:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-OMPTeamsDistributeParallelForDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | | | `-FieldDecl {{.*}} col:5 implicit 'int &' +// CHECK-NEXT: | | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:27:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:5 implicit 'int &' +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | | `-FieldDecl {{.*}} col:5 implicit 'int &' +// CHECK-NEXT: | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:25 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'long' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} > 'long' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'long' '*' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} <> 'long' +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:27:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-OMPTeamsDistributeParallelForDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:28:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:5 implicit 'int &' +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:28:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:27:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:5 implicit 'int &' +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:28:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:5 implicit 'int &' +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:28:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:25 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'long' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} > 'long' '-' +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'long' '*' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-ImplicitCastExpr {{.*}} <> 'long' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:34:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetDirective {{.*}} +// CHECK-NEXT: |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-OMPTeamsDistributeParallelForDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:36:9) *const restrict' +// CHECK-NEXT: | | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:36:9) *const restrict' +// CHECK-NEXT: | | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | | |-FieldDecl {{.*}} col:5 implicit 'int &' +// CHECK-NEXT: | | | | | | `-FieldDecl {{.*}} col:27 implicit 'int &' +// CHECK-NEXT: | | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:36:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:35:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:5 implicit 'int &' +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:27 implicit 'int &' +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:36:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:36:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:5 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:27 implicit 'int &' +// CHECK-NEXT: | | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:36:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-OMPCapturedExprDecl {{.*}} col:25 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'long' +// CHECK-NEXT: | | | `-BinaryOperator {{.*}} > 'long' '-' +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'long' '*' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} <> 'long' +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:35:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-OMPTeamsDistributeParallelForDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:36:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:36:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:5 implicit 'int &' +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:27 implicit 'int &' +// CHECK-NEXT: | | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:36:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:35:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:5 implicit 'int &' +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int &' +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:36:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:36:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:5 implicit 'int &' +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:27 implicit 'int &' +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.lb. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit used .previous.ub. 'const unsigned long' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-parallel-for.c:36:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | |-OMPCapturedExprDecl {{.*}} col:25 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'long' +// CHECK-NEXT: | `-BinaryOperator {{.*}} > 'long' '-' +// CHECK-NEXT: | |-BinaryOperator {{.*}} 'long' '*' +// CHECK-NEXT: | | |-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | `-ImplicitCastExpr {{.*}} <> 'long' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: test/AST/ast-dump-openmp-teams-distribute-simd.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-teams-distribute-simd.c @@ -0,0 +1,1203 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp target +#pragma omp teams distribute simd + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp target +#pragma omp teams distribute simd + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp target +#pragma omp teams distribute simd collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp target +#pragma omp teams distribute simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp target +#pragma omp teams distribute simd collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-teams-distribute-simd.c:3:1, line:8:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-OMPTeamsDistributeSimdDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-OMPTeamsDistributeSimdDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:5:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:5:9) *const restrict' +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:10:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-OMPTeamsDistributeSimdDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:11:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:11:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-OMPTeamsDistributeSimdDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:12:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:11:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:12:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:18:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-OMPTeamsDistributeSimdDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:19:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:19:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-OMPTeamsDistributeSimdDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:20:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:19:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:20:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:26:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-OMPTeamsDistributeSimdDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:27:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:25 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'long' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} > 'long' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'long' '*' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} <> 'long' +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:27:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-OMPTeamsDistributeSimdDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:28:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:27:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:28:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:25 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'long' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} > 'long' '-' +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'long' '*' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-ImplicitCastExpr {{.*}} <> 'long' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:34:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetDirective {{.*}} +// CHECK-NEXT: |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-OMPTeamsDistributeSimdDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:36:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:35:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:27 implicit 'int &' +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:36:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-OMPCapturedExprDecl {{.*}} col:25 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'long' +// CHECK-NEXT: | | | `-BinaryOperator {{.*}} > 'long' '-' +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'long' '*' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} <> 'long' +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:35:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:23 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-OMPTeamsDistributeSimdDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:36:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:35:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:23 implicit 'int &' +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int &' +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute-simd.c:36:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | |-OMPCapturedExprDecl {{.*}} col:25 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'long' +// CHECK-NEXT: | `-BinaryOperator {{.*}} > 'long' '-' +// CHECK-NEXT: | |-BinaryOperator {{.*}} 'long' '*' +// CHECK-NEXT: | | |-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | `-ImplicitCastExpr {{.*}} <> 'long' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: test/AST/ast-dump-openmp-teams-distribute.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-teams-distribute.c @@ -0,0 +1,1203 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test_one(int x) { +#pragma omp target +#pragma omp teams distribute + for (int i = 0; i < x; i++) + ; +} + +void test_two(int x, int y) { +#pragma omp target +#pragma omp teams distribute + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_three(int x, int y) { +#pragma omp target +#pragma omp teams distribute collapse(1) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_four(int x, int y) { +#pragma omp target +#pragma omp teams distribute collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + ; +} + +void test_five(int x, int y, int z) { +#pragma omp target +#pragma omp teams distribute collapse(2) + for (int i = 0; i < x; i++) + for (int i = 0; i < y; i++) + for (int i = 0; i < z; i++) + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: |-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-teams-distribute.c:3:1, line:8:1> line:3:6 test_one 'void (int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-OMPTeamsDistributeDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:4:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:5:9) *const restrict' +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-OMPTeamsDistributeDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:5:9) *const restrict' +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:4:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:5:9) *const restrict' +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:10:6 test_two 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:19 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:26 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-OMPTeamsDistributeDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:11:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:12:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:11:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-OMPTeamsDistributeDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:12:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:11:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:12:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:18:6 test_three 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:21 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:28 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-OMPTeamsDistributeDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:19:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:20:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:19:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-OMPTeamsDistributeDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:20:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:19:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:25 implicit 'int &' +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:20:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: |-FunctionDecl {{.*}} line:26:6 test_four 'void (int, int)' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: | |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: | `-CompoundStmt {{.*}} +// CHECK-NEXT: | `-OMPTargetDirective {{.*}} +// CHECK-NEXT: | |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-OMPTeamsDistributeDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:27:9) *const restrict' +// CHECK-NEXT: | | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | | `-FieldDecl {{.*}} col:5 implicit 'int &' +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:28:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-OMPCapturedExprDecl {{.*}} col:25 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'long' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} > 'long' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'long' '*' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} <> 'long' +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:27:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-OMPTeamsDistributeDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:28:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:27:9) *const restrict' +// CHECK-NEXT: | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | `-FieldDecl {{.*}} col:5 implicit 'int &' +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:28:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-OMPCapturedExprDecl {{.*}} col:25 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'long' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} > 'long' '-' +// CHECK-NEXT: | | |-BinaryOperator {{.*}} 'long' '*' +// CHECK-NEXT: | | | |-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-ImplicitCastExpr {{.*}} <> 'long' +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-FunctionDecl {{.*}} line:34:6 test_five 'void (int, int, int)' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:20 used x 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:27 used y 'int' +// CHECK-NEXT: |-ParmVarDecl {{.*}} col:34 used z 'int' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetDirective {{.*}} +// CHECK-NEXT: |-OMPFirstprivateClause {{.*}} <> +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-OMPTeamsDistributeDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | | | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | |-<<>> +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:36:9) *const restrict' +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:35:9) *const restrict' +// CHECK-NEXT: | | | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | | | |-FieldDecl {{.*}} col:5 implicit 'int &' +// CHECK-NEXT: | | | | `-FieldDecl {{.*}} col:27 implicit 'int &' +// CHECK-NEXT: | | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | |-<<>> +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:36:9) *const restrict' +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-OMPCapturedExprDecl {{.*}} col:25 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'long' +// CHECK-NEXT: | | | `-BinaryOperator {{.*}} > 'long' '-' +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'long' '*' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-ImplicitCastExpr {{.*}} <> 'long' +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:35:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:3 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:5 implicit 'int' +// CHECK-NEXT: | | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int' +// CHECK-NEXT: | | `-OMPCaptureKindAttr {{.*}} <> Implicit 8 +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-OMPTeamsDistributeDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-OMPCollapseClause {{.*}} +// CHECK-NEXT: | | | `-ConstantExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 2 +// CHECK-NEXT: | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | |-<<>> +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:36:9) *const restrict' +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:35:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | |-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:3 implicit 'int &' +// CHECK-NEXT: | | |-FieldDecl {{.*}} col:5 implicit 'int &' +// CHECK-NEXT: | | `-FieldDecl {{.*}} col:27 implicit 'int &' +// CHECK-NEXT: | |-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-ForStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | | |-DeclStmt {{.*}} +// CHECK-NEXT: | | | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | |-<<>> +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} 'int' '<' +// CHECK-NEXT: | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' +// CHECK-NEXT: | | | |-UnaryOperator {{.*}} 'int' postfix '++' +// CHECK-NEXT: | | | | `-DeclRefExpr {{.*}} 'int' lvalue Var {{.*}} 'i' 'int' +// CHECK-NEXT: | | | `-NullStmt {{.*}} +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams-distribute.c:36:9) *const restrict' +// CHECK-NEXT: | | |-VarDecl {{.*}} col:12 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | |-VarDecl {{.*}} col:14 used i 'int' cinit +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | `-VarDecl {{.*}} col:16 used i 'int' cinit +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | |-OMPCapturedExprDecl {{.*}} col:23 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: | |-OMPCapturedExprDecl {{.*}} col:25 implicit used .capture_expr. 'int' +// CHECK-NEXT: | | `-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: | `-OMPCapturedExprDecl {{.*}} > col:3 implicit used .capture_expr. 'long' +// CHECK-NEXT: | `-BinaryOperator {{.*}} > 'long' '-' +// CHECK-NEXT: | |-BinaryOperator {{.*}} 'long' '*' +// CHECK-NEXT: | | |-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-ImplicitCastExpr {{.*}} 'long' +// CHECK-NEXT: | | `-BinaryOperator {{.*}} 'int' '/' +// CHECK-NEXT: | | |-ParenExpr {{.*}} 'int' +// CHECK-NEXT: | | | `-BinaryOperator {{.*}} 'int' '+' +// CHECK-NEXT: | | | |-BinaryOperator {{.*}} > 'int' '-' +// CHECK-NEXT: | | | | |-BinaryOperator {{.*}} 'int' '-' +// CHECK-NEXT: | | | | | |-ImplicitCastExpr {{.*}} 'int' +// CHECK-NEXT: | | | | | | `-DeclRefExpr {{.*}} 'int' lvalue OMPCapturedExpr {{.*}} '.capture_expr.' 'int' +// CHECK-NEXT: | | | | | `-IntegerLiteral {{.*}} 'int' 0 +// CHECK-NEXT: | | | | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: | | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | | `-IntegerLiteral {{.*}} 'int' 1 +// CHECK-NEXT: | `-ImplicitCastExpr {{.*}} <> 'long' +// CHECK-NEXT: | `-IntegerLiteral {{.*}} <> 'int' 1 +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'x' 'int' +// CHECK-NEXT: |-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'y' 'int' +// CHECK-NEXT: `-DeclRefExpr {{.*}} 'int' lvalue ParmVar {{.*}} 'z' 'int' Index: test/AST/ast-dump-openmp-teams.c =================================================================== --- /dev/null +++ test/AST/ast-dump-openmp-teams.c @@ -0,0 +1,56 @@ +// RUN: %clang_cc1 -triple x86_64-unknown-unknown -fopenmp -ast-dump %s | FileCheck -strict-whitespace -implicit-check-not=openmp_structured_block %s + +void test() { +#pragma omp target +#pragma omp teams + ; +} + +// CHECK: TranslationUnitDecl {{.*}} <> +// CHECK: `-FunctionDecl {{.*}} <{{.*}}ast-dump-openmp-teams.c:3:1, line:7:1> line:3:6 test 'void ()' +// CHECK-NEXT: `-CompoundStmt {{.*}} +// CHECK-NEXT: `-OMPTargetDirective {{.*}} +// CHECK-NEXT: `-CapturedStmt {{.*}} +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-CapturedStmt {{.*}} +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-OMPTeamsDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | | `-CapturedStmt {{.*}} +// CHECK-NEXT: | | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | | |-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams.c:5:9) *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams.c:4:9) *const restrict' +// CHECK-NEXT: | |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | | `-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams.c:5:9) *const restrict' +// CHECK-NEXT: |-AlwaysInlineAttr {{.*}} <> Implicit __forceinline +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .part_id. 'const int *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .privates. 'void *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .copy_fn. 'void (*const restrict)(void *const restrict, ...)' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .task_t. 'void *const' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams.c:4:9) *const restrict' +// CHECK-NEXT: |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | `-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-OMPTeamsDirective {{.*}} openmp_structured_block +// CHECK-NEXT: | `-CapturedStmt {{.*}} +// CHECK-NEXT: | `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: | |-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: | |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: | `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams.c:5:9) *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams.c:4:9) *const restrict' +// CHECK-NEXT: |-RecordDecl {{.*}} col:9 implicit struct definition +// CHECK-NEXT: | `-CapturedRecordAttr {{.*}} <> Implicit +// CHECK-NEXT: `-CapturedDecl {{.*}} <> nothrow +// CHECK-NEXT: |-NullStmt {{.*}} openmp_structured_block +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .global_tid. 'const int *const restrict' +// CHECK-NEXT: |-ImplicitParamDecl {{.*}} col:9 implicit .bound_tid. 'const int *const restrict' +// CHECK-NEXT: `-ImplicitParamDecl {{.*}} col:9 implicit __context 'struct (anonymous at {{.*}}ast-dump-openmp-teams.c:5:9) *const restrict' Index: test/AST/dump.cpp =================================================================== --- test/AST/dump.cpp +++ test/AST/dump.cpp @@ -1,5 +1,5 @@ -// RUN: %clang_cc1 -verify -fopenmp -ast-dump %s | FileCheck %s -// RUN: %clang_cc1 -verify -fopenmp-simd -ast-dump %s | FileCheck %s +// RUN: %clang_cc1 -verify -fopenmp -ast-dump %s | FileCheck %s -implicit-check-not=openmp_structured_block +// RUN: %clang_cc1 -verify -fopenmp-simd -ast-dump %s | FileCheck %s -implicit-check-not=openmp_structured_block // expected-no-diagnostics int ga, gb; @@ -63,7 +63,7 @@ // CHECK-NEXT: | `-CapturedStmt {{.+}} // CHECK-NEXT: | |-CapturedDecl {{.+}} <> nothrow // CHECK-NEXT: | | |-ForStmt {{.+}} -// CHECK: | | | `-UnaryOperator {{.+}} 'int' lvalue prefix '++' +// CHECK: | | | `-UnaryOperator {{.+}} openmp_structured_block 'int' lvalue prefix '++' // CHECK-NEXT: | | | `-DeclRefExpr {{.+}} 'int' lvalue OMPCapturedExpr {{.+}} 'a' 'int &' #pragma omp declare simd Index: test/PCH/stmt-openmp_structured_block-bit.h =================================================================== --- /dev/null +++ test/PCH/stmt-openmp_structured_block-bit.h @@ -0,0 +1,13 @@ +// Test this without pch. +// RUN: %clang_cc1 -include %S/cxx_exprs.h -std=c++11 -fsyntax-only -verify %s -ast-dump | FileCheck %s + +// Test with pch. Use '-ast-dump' to force deserialization of function bodies. +// RUN: %clang_cc1 -x c++-header -std=c++11 -emit-pch -o %t %S/cxx_exprs.h +// RUN: %clang_cc1 -std=c++11 -include-pch %t -fsyntax-only -verify %s -ast-dump-all | FileCheck %s + +// expected-no-diagnostics + +void test() { +#pragma omp parallel + ; +} Index: test/PCH/stmt-openmp_structured_block-bit.cpp =================================================================== --- /dev/null +++ test/PCH/stmt-openmp_structured_block-bit.cpp @@ -0,0 +1,19 @@ +// Test this without pch. +// RUN: %clang_cc1 -include %S/stmt-openmp_structured_block-bit.h -std=c++11 -fopenmp -fsyntax-only -verify %s -ast-dump-all | FileCheck %s -implicit-check-not=openmp_structured_block + +// Test with pch. Use '-ast-dump' to force deserialization of function bodies. +// RUN: %clang_cc1 -x c++-header -std=c++11 -fopenmp -emit-pch -o %t %S/stmt-openmp_structured_block-bit.h +// RUN: %clang_cc1 -std=c++11 -include-pch %t -fopenmp -fsyntax-only -verify %s -ast-dump-all | FileCheck %s -implicit-check-not=openmp_structured_block + +// expected-no-diagnostics + +// CHECK: TranslationUnitDecl 0x{{.*}} <> +// CHECK: `-FunctionDecl 0x{{.*}} <{{.*}}stmt-openmp_structured_block-bit.h:10:1, line:13:1> line:10:6 {{(test|imported test)}} 'void ()' +// CHECK-NEXT: `-CompoundStmt 0x{{.*}} +// CHECK-NEXT: `-OMPParallelDirective 0x{{.*}} +// CHECK-NEXT: `-CapturedStmt 0x{{.*}} +// CHECK-NEXT: `-CapturedDecl 0x{{.*}} <> {{(nothrow|imported nothrow)}} +// CHECK-NEXT: |-NullStmt 0x{{.*}} openmp_structured_block +// CHECK-NEXT: |-ImplicitParamDecl 0x{{.*}} col:9 {{(implicit|imported implicit)}} .global_tid. 'const int *const __restrict' +// CHECK-NEXT: |-ImplicitParamDecl 0x{{.*}} col:9 {{(implicit|imported implicit)}} .bound_tid. 'const int *const __restrict' +// CHECK-NEXT: `-ImplicitParamDecl 0x{{.*}} col:9 {{(implicit|imported implicit)}} __context '(anonymous struct at {{.*}}stmt-openmp_structured_block-bit.h:11:9) *const __restrict'