/// \param EndLoc Ending location of the clause.
OMPAllocatorClause(Expr *A, SourceLocation StartLoc, SourceLocation LParenLoc,
SourceLocation EndLoc)
- : OMPClause(OMPC_allocator, StartLoc, EndLoc), LParenLoc(LParenLoc),
- Allocator(A) {}
+ : OMPClause(llvm::omp::OMPC_allocator, StartLoc, EndLoc),
+ LParenLoc(LParenLoc), Allocator(A) {}
/// Build an empty clause.
OMPAllocatorClause()
- : OMPClause(OMPC_allocator, SourceLocation(), SourceLocation()) {}
+ : OMPClause(llvm::omp::OMPC_allocator, SourceLocation(),
+ SourceLocation()) {}
/// Sets the location of '('.
void setLParenLoc(SourceLocation Loc) { LParenLoc = Loc; }
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_allocator;
+ return T->getClauseKind() == llvm::omp::OMPC_allocator;
}
};
OMPAllocateClause(SourceLocation StartLoc, SourceLocation LParenLoc,
Expr *Allocator, SourceLocation ColonLoc,
SourceLocation EndLoc, unsigned N)
- : OMPVarListClause<OMPAllocateClause>(OMPC_allocate, StartLoc, LParenLoc,
- EndLoc, N),
+ : OMPVarListClause<OMPAllocateClause>(llvm::omp::OMPC_allocate, StartLoc,
+ LParenLoc, EndLoc, N),
Allocator(Allocator), ColonLoc(ColonLoc) {}
/// Build an empty clause.
///
/// \param N Number of variables.
explicit OMPAllocateClause(unsigned N)
- : OMPVarListClause<OMPAllocateClause>(OMPC_allocate, SourceLocation(),
+ : OMPVarListClause<OMPAllocateClause>(llvm::omp::OMPC_allocate,
SourceLocation(), SourceLocation(),
- N) {}
+ SourceLocation(), N) {}
/// Sets location of ':' symbol in clause.
void setColonLoc(SourceLocation CL) { ColonLoc = CL; }
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_allocate;
+ return T->getClauseKind() == llvm::omp::OMPC_allocate;
}
};
OpenMPDirectiveKind CaptureRegion, SourceLocation StartLoc,
SourceLocation LParenLoc, SourceLocation NameModifierLoc,
SourceLocation ColonLoc, SourceLocation EndLoc)
- : OMPClause(OMPC_if, StartLoc, EndLoc), OMPClauseWithPreInit(this),
- LParenLoc(LParenLoc), Condition(Cond), ColonLoc(ColonLoc),
- NameModifier(NameModifier), NameModifierLoc(NameModifierLoc) {
+ : OMPClause(llvm::omp::OMPC_if, StartLoc, EndLoc),
+ OMPClauseWithPreInit(this), LParenLoc(LParenLoc), Condition(Cond),
+ ColonLoc(ColonLoc), NameModifier(NameModifier),
+ NameModifierLoc(NameModifierLoc) {
setPreInitStmt(HelperCond, CaptureRegion);
}
/// Build an empty clause.
OMPIfClause()
- : OMPClause(OMPC_if, SourceLocation(), SourceLocation()),
+ : OMPClause(llvm::omp::OMPC_if, SourceLocation(), SourceLocation()),
OMPClauseWithPreInit(this) {}
/// Sets the location of '('.
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_if;
+ return T->getClauseKind() == llvm::omp::OMPC_if;
}
};
OMPFinalClause(Expr *Cond, Stmt *HelperCond,
OpenMPDirectiveKind CaptureRegion, SourceLocation StartLoc,
SourceLocation LParenLoc, SourceLocation EndLoc)
- : OMPClause(OMPC_final, StartLoc, EndLoc), OMPClauseWithPreInit(this),
- LParenLoc(LParenLoc), Condition(Cond) {
+ : OMPClause(llvm::omp::OMPC_final, StartLoc, EndLoc),
+ OMPClauseWithPreInit(this), LParenLoc(LParenLoc), Condition(Cond) {
setPreInitStmt(HelperCond, CaptureRegion);
}
/// Build an empty clause.
OMPFinalClause()
- : OMPClause(OMPC_final, SourceLocation(), SourceLocation()),
+ : OMPClause(llvm::omp::OMPC_final, SourceLocation(), SourceLocation()),
OMPClauseWithPreInit(this) {}
/// Sets the location of '('.
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_final;
+ return T->getClauseKind() == llvm::omp::OMPC_final;
}
};
OpenMPDirectiveKind CaptureRegion,
SourceLocation StartLoc, SourceLocation LParenLoc,
SourceLocation EndLoc)
- : OMPClause(OMPC_num_threads, StartLoc, EndLoc),
+ : OMPClause(llvm::omp::OMPC_num_threads, StartLoc, EndLoc),
OMPClauseWithPreInit(this), LParenLoc(LParenLoc),
NumThreads(NumThreads) {
setPreInitStmt(HelperNumThreads, CaptureRegion);
/// Build an empty clause.
OMPNumThreadsClause()
- : OMPClause(OMPC_num_threads, SourceLocation(), SourceLocation()),
+ : OMPClause(llvm::omp::OMPC_num_threads, SourceLocation(),
+ SourceLocation()),
OMPClauseWithPreInit(this) {}
/// Sets the location of '('.
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_num_threads;
+ return T->getClauseKind() == llvm::omp::OMPC_num_threads;
}
};
/// \param EndLoc Ending location of the clause.
OMPSafelenClause(Expr *Len, SourceLocation StartLoc, SourceLocation LParenLoc,
SourceLocation EndLoc)
- : OMPClause(OMPC_safelen, StartLoc, EndLoc), LParenLoc(LParenLoc),
- Safelen(Len) {}
+ : OMPClause(llvm::omp::OMPC_safelen, StartLoc, EndLoc),
+ LParenLoc(LParenLoc), Safelen(Len) {}
/// Build an empty clause.
explicit OMPSafelenClause()
- : OMPClause(OMPC_safelen, SourceLocation(), SourceLocation()) {}
+ : OMPClause(llvm::omp::OMPC_safelen, SourceLocation(), SourceLocation()) {
+ }
/// Sets the location of '('.
void setLParenLoc(SourceLocation Loc) { LParenLoc = Loc; }
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_safelen;
+ return T->getClauseKind() == llvm::omp::OMPC_safelen;
}
};
/// \param EndLoc Ending location of the clause.
OMPSimdlenClause(Expr *Len, SourceLocation StartLoc, SourceLocation LParenLoc,
SourceLocation EndLoc)
- : OMPClause(OMPC_simdlen, StartLoc, EndLoc), LParenLoc(LParenLoc),
- Simdlen(Len) {}
+ : OMPClause(llvm::omp::OMPC_simdlen, StartLoc, EndLoc),
+ LParenLoc(LParenLoc), Simdlen(Len) {}
/// Build an empty clause.
explicit OMPSimdlenClause()
- : OMPClause(OMPC_simdlen, SourceLocation(), SourceLocation()) {}
+ : OMPClause(llvm::omp::OMPC_simdlen, SourceLocation(), SourceLocation()) {
+ }
/// Sets the location of '('.
void setLParenLoc(SourceLocation Loc) { LParenLoc = Loc; }
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_simdlen;
+ return T->getClauseKind() == llvm::omp::OMPC_simdlen;
}
};
/// \param EndLoc Ending location of the clause.
OMPCollapseClause(Expr *Num, SourceLocation StartLoc,
SourceLocation LParenLoc, SourceLocation EndLoc)
- : OMPClause(OMPC_collapse, StartLoc, EndLoc), LParenLoc(LParenLoc),
- NumForLoops(Num) {}
+ : OMPClause(llvm::omp::OMPC_collapse, StartLoc, EndLoc),
+ LParenLoc(LParenLoc), NumForLoops(Num) {}
/// Build an empty clause.
explicit OMPCollapseClause()
- : OMPClause(OMPC_collapse, SourceLocation(), SourceLocation()) {}
+ : OMPClause(llvm::omp::OMPC_collapse, SourceLocation(),
+ SourceLocation()) {}
/// Sets the location of '('.
void setLParenLoc(SourceLocation Loc) { LParenLoc = Loc; }
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_collapse;
+ return T->getClauseKind() == llvm::omp::OMPC_collapse;
}
};
OMPDefaultClause(llvm::omp::DefaultKind A, SourceLocation ALoc,
SourceLocation StartLoc, SourceLocation LParenLoc,
SourceLocation EndLoc)
- : OMPClause(OMPC_default, StartLoc, EndLoc), LParenLoc(LParenLoc),
- Kind(A), KindKwLoc(ALoc) {}
+ : OMPClause(llvm::omp::OMPC_default, StartLoc, EndLoc),
+ LParenLoc(LParenLoc), Kind(A), KindKwLoc(ALoc) {}
/// Build an empty clause.
OMPDefaultClause()
- : OMPClause(OMPC_default, SourceLocation(), SourceLocation()) {}
+ : OMPClause(llvm::omp::OMPC_default, SourceLocation(), SourceLocation()) {
+ }
/// Sets the location of '('.
void setLParenLoc(SourceLocation Loc) { LParenLoc = Loc; }
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_default;
+ return T->getClauseKind() == llvm::omp::OMPC_default;
}
};
OMPProcBindClause(llvm::omp::ProcBindKind A, SourceLocation ALoc,
SourceLocation StartLoc, SourceLocation LParenLoc,
SourceLocation EndLoc)
- : OMPClause(OMPC_proc_bind, StartLoc, EndLoc), LParenLoc(LParenLoc),
- Kind(A), KindKwLoc(ALoc) {}
+ : OMPClause(llvm::omp::OMPC_proc_bind, StartLoc, EndLoc),
+ LParenLoc(LParenLoc), Kind(A), KindKwLoc(ALoc) {}
/// Build an empty clause.
OMPProcBindClause()
- : OMPClause(OMPC_proc_bind, SourceLocation(), SourceLocation()) {}
+ : OMPClause(llvm::omp::OMPC_proc_bind, SourceLocation(),
+ SourceLocation()) {}
/// Sets the location of '('.
void setLParenLoc(SourceLocation Loc) { LParenLoc = Loc; }
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_proc_bind;
+ return T->getClauseKind() == llvm::omp::OMPC_proc_bind;
}
};
/// \param StartLoc Starting location of the clause.
/// \param EndLoc Ending location of the clause.
OMPUnifiedAddressClause(SourceLocation StartLoc, SourceLocation EndLoc)
- : OMPClause(OMPC_unified_address, StartLoc, EndLoc) {}
+ : OMPClause(llvm::omp::OMPC_unified_address, StartLoc, EndLoc) {}
/// Build an empty clause.
OMPUnifiedAddressClause()
- : OMPClause(OMPC_unified_address, SourceLocation(), SourceLocation()) {}
+ : OMPClause(llvm::omp::OMPC_unified_address, SourceLocation(),
+ SourceLocation()) {}
child_range children() {
return child_range(child_iterator(), child_iterator());
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_unified_address;
+ return T->getClauseKind() == llvm::omp::OMPC_unified_address;
}
};
/// \param StartLoc Starting location of the clause.
/// \param EndLoc Ending location of the clause.
OMPUnifiedSharedMemoryClause(SourceLocation StartLoc, SourceLocation EndLoc)
- : OMPClause(OMPC_unified_shared_memory, StartLoc, EndLoc) {}
+ : OMPClause(llvm::omp::OMPC_unified_shared_memory, StartLoc, EndLoc) {}
/// Build an empty clause.
OMPUnifiedSharedMemoryClause()
- : OMPClause(OMPC_unified_shared_memory, SourceLocation(), SourceLocation()) {}
+ : OMPClause(llvm::omp::OMPC_unified_shared_memory, SourceLocation(),
+ SourceLocation()) {}
child_range children() {
return child_range(child_iterator(), child_iterator());
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_unified_shared_memory;
+ return T->getClauseKind() == llvm::omp::OMPC_unified_shared_memory;
}
};
/// \param StartLoc Starting location of the clause.
/// \param EndLoc Ending location of the clause.
OMPReverseOffloadClause(SourceLocation StartLoc, SourceLocation EndLoc)
- : OMPClause(OMPC_reverse_offload, StartLoc, EndLoc) {}
+ : OMPClause(llvm::omp::OMPC_reverse_offload, StartLoc, EndLoc) {}
/// Build an empty clause.
OMPReverseOffloadClause()
- : OMPClause(OMPC_reverse_offload, SourceLocation(), SourceLocation()) {}
+ : OMPClause(llvm::omp::OMPC_reverse_offload, SourceLocation(),
+ SourceLocation()) {}
child_range children() {
return child_range(child_iterator(), child_iterator());
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_reverse_offload;
+ return T->getClauseKind() == llvm::omp::OMPC_reverse_offload;
}
};
/// \param StartLoc Starting location of the clause.
/// \param EndLoc Ending location of the clause.
OMPDynamicAllocatorsClause(SourceLocation StartLoc, SourceLocation EndLoc)
- : OMPClause(OMPC_dynamic_allocators, StartLoc, EndLoc) {}
+ : OMPClause(llvm::omp::OMPC_dynamic_allocators, StartLoc, EndLoc) {}
/// Build an empty clause.
OMPDynamicAllocatorsClause()
- : OMPClause(OMPC_dynamic_allocators, SourceLocation(), SourceLocation()) {
- }
+ : OMPClause(llvm::omp::OMPC_dynamic_allocators, SourceLocation(),
+ SourceLocation()) {}
child_range children() {
return child_range(child_iterator(), child_iterator());
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_dynamic_allocators;
+ return T->getClauseKind() == llvm::omp::OMPC_dynamic_allocators;
}
};
SourceLocation ALoc, SourceLocation StartLoc,
SourceLocation LParenLoc,
SourceLocation EndLoc)
- : OMPClause(OMPC_atomic_default_mem_order, StartLoc, EndLoc),
+ : OMPClause(llvm::omp::OMPC_atomic_default_mem_order, StartLoc, EndLoc),
LParenLoc(LParenLoc), Kind(A), KindKwLoc(ALoc) {}
/// Build an empty clause.
OMPAtomicDefaultMemOrderClause()
- : OMPClause(OMPC_atomic_default_mem_order, SourceLocation(),
+ : OMPClause(llvm::omp::OMPC_atomic_default_mem_order, SourceLocation(),
SourceLocation()) {}
/// Sets the location of '('.
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_atomic_default_mem_order;
+ return T->getClauseKind() == llvm::omp::OMPC_atomic_default_mem_order;
}
};
Expr *ChunkSize, Stmt *HelperChunkSize,
OpenMPScheduleClauseModifier M1, SourceLocation M1Loc,
OpenMPScheduleClauseModifier M2, SourceLocation M2Loc)
- : OMPClause(OMPC_schedule, StartLoc, EndLoc), OMPClauseWithPreInit(this),
- LParenLoc(LParenLoc), Kind(Kind), KindLoc(KLoc), CommaLoc(CommaLoc),
- ChunkSize(ChunkSize) {
+ : OMPClause(llvm::omp::OMPC_schedule, StartLoc, EndLoc),
+ OMPClauseWithPreInit(this), LParenLoc(LParenLoc), Kind(Kind),
+ KindLoc(KLoc), CommaLoc(CommaLoc), ChunkSize(ChunkSize) {
setPreInitStmt(HelperChunkSize);
Modifiers[FIRST] = M1;
Modifiers[SECOND] = M2;
/// Build an empty clause.
explicit OMPScheduleClause()
- : OMPClause(OMPC_schedule, SourceLocation(), SourceLocation()),
+ : OMPClause(llvm::omp::OMPC_schedule, SourceLocation(), SourceLocation()),
OMPClauseWithPreInit(this) {
Modifiers[FIRST] = OMPC_SCHEDULE_MODIFIER_unknown;
Modifiers[SECOND] = OMPC_SCHEDULE_MODIFIER_unknown;
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_schedule;
+ return T->getClauseKind() == llvm::omp::OMPC_schedule;
}
};
/// \param EndLoc Ending location of the clause.
OMPOrderedClause(Expr *Num, unsigned NumLoops, SourceLocation StartLoc,
SourceLocation LParenLoc, SourceLocation EndLoc)
- : OMPClause(OMPC_ordered, StartLoc, EndLoc), LParenLoc(LParenLoc),
- NumForLoops(Num), NumberOfLoops(NumLoops) {}
+ : OMPClause(llvm::omp::OMPC_ordered, StartLoc, EndLoc),
+ LParenLoc(LParenLoc), NumForLoops(Num), NumberOfLoops(NumLoops) {}
/// Build an empty clause.
explicit OMPOrderedClause(unsigned NumLoops)
- : OMPClause(OMPC_ordered, SourceLocation(), SourceLocation()),
+ : OMPClause(llvm::omp::OMPC_ordered, SourceLocation(), SourceLocation()),
NumberOfLoops(NumLoops) {}
/// Set the number of associated for-loops.
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_ordered;
+ return T->getClauseKind() == llvm::omp::OMPC_ordered;
}
};
/// \param StartLoc Starting location of the clause.
/// \param EndLoc Ending location of the clause.
OMPNowaitClause(SourceLocation StartLoc, SourceLocation EndLoc)
- : OMPClause(OMPC_nowait, StartLoc, EndLoc) {}
+ : OMPClause(llvm::omp::OMPC_nowait, StartLoc, EndLoc) {}
/// Build an empty clause.
OMPNowaitClause()
- : OMPClause(OMPC_nowait, SourceLocation(), SourceLocation()) {}
+ : OMPClause(llvm::omp::OMPC_nowait, SourceLocation(), SourceLocation()) {}
child_range children() {
return child_range(child_iterator(), child_iterator());
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_nowait;
+ return T->getClauseKind() == llvm::omp::OMPC_nowait;
}
};
/// \param StartLoc Starting location of the clause.
/// \param EndLoc Ending location of the clause.
OMPUntiedClause(SourceLocation StartLoc, SourceLocation EndLoc)
- : OMPClause(OMPC_untied, StartLoc, EndLoc) {}
+ : OMPClause(llvm::omp::OMPC_untied, StartLoc, EndLoc) {}
/// Build an empty clause.
OMPUntiedClause()
- : OMPClause(OMPC_untied, SourceLocation(), SourceLocation()) {}
+ : OMPClause(llvm::omp::OMPC_untied, SourceLocation(), SourceLocation()) {}
child_range children() {
return child_range(child_iterator(), child_iterator());
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_untied;
+ return T->getClauseKind() == llvm::omp::OMPC_untied;
}
};
/// \param StartLoc Starting location of the clause.
/// \param EndLoc Ending location of the clause.
OMPMergeableClause(SourceLocation StartLoc, SourceLocation EndLoc)
- : OMPClause(OMPC_mergeable, StartLoc, EndLoc) {}
+ : OMPClause(llvm::omp::OMPC_mergeable, StartLoc, EndLoc) {}
/// Build an empty clause.
OMPMergeableClause()
- : OMPClause(OMPC_mergeable, SourceLocation(), SourceLocation()) {}
+ : OMPClause(llvm::omp::OMPC_mergeable, SourceLocation(),
+ SourceLocation()) {}
child_range children() {
return child_range(child_iterator(), child_iterator());
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_mergeable;
+ return T->getClauseKind() == llvm::omp::OMPC_mergeable;
}
};
/// \param StartLoc Starting location of the clause.
/// \param EndLoc Ending location of the clause.
OMPReadClause(SourceLocation StartLoc, SourceLocation EndLoc)
- : OMPClause(OMPC_read, StartLoc, EndLoc) {}
+ : OMPClause(llvm::omp::OMPC_read, StartLoc, EndLoc) {}
/// Build an empty clause.
- OMPReadClause() : OMPClause(OMPC_read, SourceLocation(), SourceLocation()) {}
+ OMPReadClause()
+ : OMPClause(llvm::omp::OMPC_read, SourceLocation(), SourceLocation()) {}
child_range children() {
return child_range(child_iterator(), child_iterator());
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_read;
+ return T->getClauseKind() == llvm::omp::OMPC_read;
}
};
/// \param StartLoc Starting location of the clause.
/// \param EndLoc Ending location of the clause.
OMPWriteClause(SourceLocation StartLoc, SourceLocation EndLoc)
- : OMPClause(OMPC_write, StartLoc, EndLoc) {}
+ : OMPClause(llvm::omp::OMPC_write, StartLoc, EndLoc) {}
/// Build an empty clause.
OMPWriteClause()
- : OMPClause(OMPC_write, SourceLocation(), SourceLocation()) {}
+ : OMPClause(llvm::omp::OMPC_write, SourceLocation(), SourceLocation()) {}
child_range children() {
return child_range(child_iterator(), child_iterator());
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_write;
+ return T->getClauseKind() == llvm::omp::OMPC_write;
}
};
/// \param EndLoc Ending location of the clause.
OMPUpdateClause(SourceLocation StartLoc, SourceLocation EndLoc,
bool IsExtended)
- : OMPClause(OMPC_update, StartLoc, EndLoc), IsExtended(IsExtended) {}
+ : OMPClause(llvm::omp::OMPC_update, StartLoc, EndLoc),
+ IsExtended(IsExtended) {}
/// Build an empty clause.
OMPUpdateClause(bool IsExtended)
- : OMPClause(OMPC_update, SourceLocation(), SourceLocation()),
+ : OMPClause(llvm::omp::OMPC_update, SourceLocation(), SourceLocation()),
IsExtended(IsExtended) {}
public:
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_update;
+ return T->getClauseKind() == llvm::omp::OMPC_update;
}
};
/// \param StartLoc Starting location of the clause.
/// \param EndLoc Ending location of the clause.
OMPCaptureClause(SourceLocation StartLoc, SourceLocation EndLoc)
- : OMPClause(OMPC_capture, StartLoc, EndLoc) {}
+ : OMPClause(llvm::omp::OMPC_capture, StartLoc, EndLoc) {}
/// Build an empty clause.
OMPCaptureClause()
- : OMPClause(OMPC_capture, SourceLocation(), SourceLocation()) {}
+ : OMPClause(llvm::omp::OMPC_capture, SourceLocation(), SourceLocation()) {
+ }
child_range children() {
return child_range(child_iterator(), child_iterator());
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_capture;
+ return T->getClauseKind() == llvm::omp::OMPC_capture;
}
};
/// \param StartLoc Starting location of the clause.
/// \param EndLoc Ending location of the clause.
OMPSeqCstClause(SourceLocation StartLoc, SourceLocation EndLoc)
- : OMPClause(OMPC_seq_cst, StartLoc, EndLoc) {}
+ : OMPClause(llvm::omp::OMPC_seq_cst, StartLoc, EndLoc) {}
/// Build an empty clause.
OMPSeqCstClause()
- : OMPClause(OMPC_seq_cst, SourceLocation(), SourceLocation()) {}
+ : OMPClause(llvm::omp::OMPC_seq_cst, SourceLocation(), SourceLocation()) {
+ }
child_range children() {
return child_range(child_iterator(), child_iterator());
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_seq_cst;
+ return T->getClauseKind() == llvm::omp::OMPC_seq_cst;
}
};
/// \param StartLoc Starting location of the clause.
/// \param EndLoc Ending location of the clause.
OMPAcqRelClause(SourceLocation StartLoc, SourceLocation EndLoc)
- : OMPClause(OMPC_acq_rel, StartLoc, EndLoc) {}
+ : OMPClause(llvm::omp::OMPC_acq_rel, StartLoc, EndLoc) {}
/// Build an empty clause.
OMPAcqRelClause()
- : OMPClause(OMPC_acq_rel, SourceLocation(), SourceLocation()) {}
+ : OMPClause(llvm::omp::OMPC_acq_rel, SourceLocation(), SourceLocation()) {
+ }
child_range children() {
return child_range(child_iterator(), child_iterator());
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_acq_rel;
+ return T->getClauseKind() == llvm::omp::OMPC_acq_rel;
}
};
/// \param StartLoc Starting location of the clause.
/// \param EndLoc Ending location of the clause.
OMPAcquireClause(SourceLocation StartLoc, SourceLocation EndLoc)
- : OMPClause(OMPC_acquire, StartLoc, EndLoc) {}
+ : OMPClause(llvm::omp::OMPC_acquire, StartLoc, EndLoc) {}
/// Build an empty clause.
OMPAcquireClause()
- : OMPClause(OMPC_acquire, SourceLocation(), SourceLocation()) {}
+ : OMPClause(llvm::omp::OMPC_acquire, SourceLocation(), SourceLocation()) {
+ }
child_range children() {
return child_range(child_iterator(), child_iterator());
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_acquire;
+ return T->getClauseKind() == llvm::omp::OMPC_acquire;
}
};
/// \param StartLoc Starting location of the clause.
/// \param EndLoc Ending location of the clause.
OMPReleaseClause(SourceLocation StartLoc, SourceLocation EndLoc)
- : OMPClause(OMPC_release, StartLoc, EndLoc) {}
+ : OMPClause(llvm::omp::OMPC_release, StartLoc, EndLoc) {}
/// Build an empty clause.
OMPReleaseClause()
- : OMPClause(OMPC_release, SourceLocation(), SourceLocation()) {}
+ : OMPClause(llvm::omp::OMPC_release, SourceLocation(), SourceLocation()) {
+ }
child_range children() {
return child_range(child_iterator(), child_iterator());
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_release;
+ return T->getClauseKind() == llvm::omp::OMPC_release;
}
};
/// \param StartLoc Starting location of the clause.
/// \param EndLoc Ending location of the clause.
OMPRelaxedClause(SourceLocation StartLoc, SourceLocation EndLoc)
- : OMPClause(OMPC_relaxed, StartLoc, EndLoc) {}
+ : OMPClause(llvm::omp::OMPC_relaxed, StartLoc, EndLoc) {}
/// Build an empty clause.
OMPRelaxedClause()
- : OMPClause(OMPC_relaxed, SourceLocation(), SourceLocation()) {}
+ : OMPClause(llvm::omp::OMPC_relaxed, SourceLocation(), SourceLocation()) {
+ }
child_range children() {
return child_range(child_iterator(), child_iterator());
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_relaxed;
+ return T->getClauseKind() == llvm::omp::OMPC_relaxed;
}
};
/// \param N Number of the variables in the clause.
OMPPrivateClause(SourceLocation StartLoc, SourceLocation LParenLoc,
SourceLocation EndLoc, unsigned N)
- : OMPVarListClause<OMPPrivateClause>(OMPC_private, StartLoc, LParenLoc,
- EndLoc, N) {}
+ : OMPVarListClause<OMPPrivateClause>(llvm::omp::OMPC_private, StartLoc,
+ LParenLoc, EndLoc, N) {}
/// Build an empty clause.
///
/// \param N Number of variables.
explicit OMPPrivateClause(unsigned N)
- : OMPVarListClause<OMPPrivateClause>(OMPC_private, SourceLocation(),
+ : OMPVarListClause<OMPPrivateClause>(llvm::omp::OMPC_private,
SourceLocation(), SourceLocation(),
- N) {}
+ SourceLocation(), N) {}
/// Sets the list of references to private copies with initializers for
/// new private variables.
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_private;
+ return T->getClauseKind() == llvm::omp::OMPC_private;
}
};
/// \param N Number of the variables in the clause.
OMPFirstprivateClause(SourceLocation StartLoc, SourceLocation LParenLoc,
SourceLocation EndLoc, unsigned N)
- : OMPVarListClause<OMPFirstprivateClause>(OMPC_firstprivate, StartLoc,
- LParenLoc, EndLoc, N),
+ : OMPVarListClause<OMPFirstprivateClause>(llvm::omp::OMPC_firstprivate,
+ StartLoc, LParenLoc, EndLoc, N),
OMPClauseWithPreInit(this) {}
/// Build an empty clause.
/// \param N Number of variables.
explicit OMPFirstprivateClause(unsigned N)
: OMPVarListClause<OMPFirstprivateClause>(
- OMPC_firstprivate, SourceLocation(), SourceLocation(),
+ llvm::omp::OMPC_firstprivate, SourceLocation(), SourceLocation(),
SourceLocation(), N),
OMPClauseWithPreInit(this) {}
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_firstprivate;
+ return T->getClauseKind() == llvm::omp::OMPC_firstprivate;
}
};
SourceLocation EndLoc, OpenMPLastprivateModifier LPKind,
SourceLocation LPKindLoc, SourceLocation ColonLoc,
unsigned N)
- : OMPVarListClause<OMPLastprivateClause>(OMPC_lastprivate, StartLoc,
- LParenLoc, EndLoc, N),
+ : OMPVarListClause<OMPLastprivateClause>(llvm::omp::OMPC_lastprivate,
+ StartLoc, LParenLoc, EndLoc, N),
OMPClauseWithPostUpdate(this), LPKind(LPKind), LPKindLoc(LPKindLoc),
ColonLoc(ColonLoc) {}
/// \param N Number of variables.
explicit OMPLastprivateClause(unsigned N)
: OMPVarListClause<OMPLastprivateClause>(
- OMPC_lastprivate, SourceLocation(), SourceLocation(),
+ llvm::omp::OMPC_lastprivate, SourceLocation(), SourceLocation(),
SourceLocation(), N),
OMPClauseWithPostUpdate(this) {}
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_lastprivate;
+ return T->getClauseKind() == llvm::omp::OMPC_lastprivate;
}
};
/// \param N Number of the variables in the clause.
OMPSharedClause(SourceLocation StartLoc, SourceLocation LParenLoc,
SourceLocation EndLoc, unsigned N)
- : OMPVarListClause<OMPSharedClause>(OMPC_shared, StartLoc, LParenLoc,
- EndLoc, N) {}
+ : OMPVarListClause<OMPSharedClause>(llvm::omp::OMPC_shared, StartLoc,
+ LParenLoc, EndLoc, N) {}
/// Build an empty clause.
///
/// \param N Number of variables.
explicit OMPSharedClause(unsigned N)
- : OMPVarListClause<OMPSharedClause>(OMPC_shared, SourceLocation(),
+ : OMPVarListClause<OMPSharedClause>(llvm::omp::OMPC_shared,
SourceLocation(), SourceLocation(),
- N) {}
+ SourceLocation(), N) {}
public:
/// Creates clause with a list of variables \a VL.
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_shared;
+ return T->getClauseKind() == llvm::omp::OMPC_shared;
}
};
OpenMPReductionClauseModifier Modifier, unsigned N,
NestedNameSpecifierLoc QualifierLoc,
const DeclarationNameInfo &NameInfo)
- : OMPVarListClause<OMPReductionClause>(OMPC_reduction, StartLoc,
- LParenLoc, EndLoc, N),
+ : OMPVarListClause<OMPReductionClause>(llvm::omp::OMPC_reduction,
+ StartLoc, LParenLoc, EndLoc, N),
OMPClauseWithPostUpdate(this), Modifier(Modifier),
ModifierLoc(ModifierLoc), ColonLoc(ColonLoc),
QualifierLoc(QualifierLoc), NameInfo(NameInfo) {}
///
/// \param N Number of variables.
explicit OMPReductionClause(unsigned N)
- : OMPVarListClause<OMPReductionClause>(OMPC_reduction, SourceLocation(),
+ : OMPVarListClause<OMPReductionClause>(llvm::omp::OMPC_reduction,
SourceLocation(), SourceLocation(),
- N),
+ SourceLocation(), N),
OMPClauseWithPostUpdate(this) {}
/// Sets reduction modifier.
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_reduction;
+ return T->getClauseKind() == llvm::omp::OMPC_reduction;
}
};
SourceLocation ColonLoc, SourceLocation EndLoc,
unsigned N, NestedNameSpecifierLoc QualifierLoc,
const DeclarationNameInfo &NameInfo)
- : OMPVarListClause<OMPTaskReductionClause>(OMPC_task_reduction, StartLoc,
- LParenLoc, EndLoc, N),
+ : OMPVarListClause<OMPTaskReductionClause>(
+ llvm::omp::OMPC_task_reduction, StartLoc, LParenLoc, EndLoc, N),
OMPClauseWithPostUpdate(this), ColonLoc(ColonLoc),
QualifierLoc(QualifierLoc), NameInfo(NameInfo) {}
/// \param N Number of variables.
explicit OMPTaskReductionClause(unsigned N)
: OMPVarListClause<OMPTaskReductionClause>(
- OMPC_task_reduction, SourceLocation(), SourceLocation(),
+ llvm::omp::OMPC_task_reduction, SourceLocation(), SourceLocation(),
SourceLocation(), N),
OMPClauseWithPostUpdate(this) {}
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_task_reduction;
+ return T->getClauseKind() == llvm::omp::OMPC_task_reduction;
}
};
SourceLocation ColonLoc, SourceLocation EndLoc,
unsigned N, NestedNameSpecifierLoc QualifierLoc,
const DeclarationNameInfo &NameInfo)
- : OMPVarListClause<OMPInReductionClause>(OMPC_in_reduction, StartLoc,
- LParenLoc, EndLoc, N),
+ : OMPVarListClause<OMPInReductionClause>(llvm::omp::OMPC_in_reduction,
+ StartLoc, LParenLoc, EndLoc, N),
OMPClauseWithPostUpdate(this), ColonLoc(ColonLoc),
QualifierLoc(QualifierLoc), NameInfo(NameInfo) {}
/// \param N Number of variables.
explicit OMPInReductionClause(unsigned N)
: OMPVarListClause<OMPInReductionClause>(
- OMPC_in_reduction, SourceLocation(), SourceLocation(),
+ llvm::omp::OMPC_in_reduction, SourceLocation(), SourceLocation(),
SourceLocation(), N),
OMPClauseWithPostUpdate(this) {}
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_in_reduction;
+ return T->getClauseKind() == llvm::omp::OMPC_in_reduction;
}
};
OpenMPLinearClauseKind Modifier, SourceLocation ModifierLoc,
SourceLocation ColonLoc, SourceLocation EndLoc,
unsigned NumVars)
- : OMPVarListClause<OMPLinearClause>(OMPC_linear, StartLoc, LParenLoc,
- EndLoc, NumVars),
+ : OMPVarListClause<OMPLinearClause>(llvm::omp::OMPC_linear, StartLoc,
+ LParenLoc, EndLoc, NumVars),
OMPClauseWithPostUpdate(this), Modifier(Modifier),
ModifierLoc(ModifierLoc), ColonLoc(ColonLoc) {}
///
/// \param NumVars Number of variables.
explicit OMPLinearClause(unsigned NumVars)
- : OMPVarListClause<OMPLinearClause>(OMPC_linear, SourceLocation(),
+ : OMPVarListClause<OMPLinearClause>(llvm::omp::OMPC_linear,
SourceLocation(), SourceLocation(),
- NumVars),
+ SourceLocation(), NumVars),
OMPClauseWithPostUpdate(this) {}
/// Gets the list of initial values for linear variables.
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_linear;
+ return T->getClauseKind() == llvm::omp::OMPC_linear;
}
};
OMPAlignedClause(SourceLocation StartLoc, SourceLocation LParenLoc,
SourceLocation ColonLoc, SourceLocation EndLoc,
unsigned NumVars)
- : OMPVarListClause<OMPAlignedClause>(OMPC_aligned, StartLoc, LParenLoc,
- EndLoc, NumVars),
+ : OMPVarListClause<OMPAlignedClause>(llvm::omp::OMPC_aligned, StartLoc,
+ LParenLoc, EndLoc, NumVars),
ColonLoc(ColonLoc) {}
/// Build an empty clause.
///
/// \param NumVars Number of variables.
explicit OMPAlignedClause(unsigned NumVars)
- : OMPVarListClause<OMPAlignedClause>(OMPC_aligned, SourceLocation(),
+ : OMPVarListClause<OMPAlignedClause>(llvm::omp::OMPC_aligned,
SourceLocation(), SourceLocation(),
- NumVars) {}
+ SourceLocation(), NumVars) {}
public:
/// Creates clause with a list of variables \a VL and alignment \a A.
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_aligned;
+ return T->getClauseKind() == llvm::omp::OMPC_aligned;
}
};
/// \param N Number of the variables in the clause.
OMPCopyinClause(SourceLocation StartLoc, SourceLocation LParenLoc,
SourceLocation EndLoc, unsigned N)
- : OMPVarListClause<OMPCopyinClause>(OMPC_copyin, StartLoc, LParenLoc,
- EndLoc, N) {}
+ : OMPVarListClause<OMPCopyinClause>(llvm::omp::OMPC_copyin, StartLoc,
+ LParenLoc, EndLoc, N) {}
/// Build an empty clause.
///
/// \param N Number of variables.
explicit OMPCopyinClause(unsigned N)
- : OMPVarListClause<OMPCopyinClause>(OMPC_copyin, SourceLocation(),
+ : OMPVarListClause<OMPCopyinClause>(llvm::omp::OMPC_copyin,
SourceLocation(), SourceLocation(),
- N) {}
+ SourceLocation(), N) {}
/// Set list of helper expressions, required for proper codegen of the
/// clause. These expressions represent source expression in the final
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_copyin;
+ return T->getClauseKind() == llvm::omp::OMPC_copyin;
}
};
/// \param N Number of the variables in the clause.
OMPCopyprivateClause(SourceLocation StartLoc, SourceLocation LParenLoc,
SourceLocation EndLoc, unsigned N)
- : OMPVarListClause<OMPCopyprivateClause>(OMPC_copyprivate, StartLoc,
- LParenLoc, EndLoc, N) {}
+ : OMPVarListClause<OMPCopyprivateClause>(llvm::omp::OMPC_copyprivate,
+ StartLoc, LParenLoc, EndLoc, N) {
+ }
/// Build an empty clause.
///
/// \param N Number of variables.
explicit OMPCopyprivateClause(unsigned N)
: OMPVarListClause<OMPCopyprivateClause>(
- OMPC_copyprivate, SourceLocation(), SourceLocation(),
+ llvm::omp::OMPC_copyprivate, SourceLocation(), SourceLocation(),
SourceLocation(), N) {}
/// Set list of helper expressions, required for proper codegen of the
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_copyprivate;
+ return T->getClauseKind() == llvm::omp::OMPC_copyprivate;
}
};
/// \param N Number of the variables in the clause.
OMPFlushClause(SourceLocation StartLoc, SourceLocation LParenLoc,
SourceLocation EndLoc, unsigned N)
- : OMPVarListClause<OMPFlushClause>(OMPC_flush, StartLoc, LParenLoc,
- EndLoc, N) {}
+ : OMPVarListClause<OMPFlushClause>(llvm::omp::OMPC_flush, StartLoc,
+ LParenLoc, EndLoc, N) {}
/// Build an empty clause.
///
/// \param N Number of variables.
explicit OMPFlushClause(unsigned N)
- : OMPVarListClause<OMPFlushClause>(OMPC_flush, SourceLocation(),
+ : OMPVarListClause<OMPFlushClause>(llvm::omp::OMPC_flush,
SourceLocation(), SourceLocation(),
- N) {}
+ SourceLocation(), N) {}
public:
/// Creates clause with a list of variables \a VL.
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_flush;
+ return T->getClauseKind() == llvm::omp::OMPC_flush;
}
};
/// \param EndLoc Ending location of the clause.
OMPDepobjClause(SourceLocation StartLoc, SourceLocation LParenLoc,
SourceLocation EndLoc)
- : OMPClause(OMPC_depobj, StartLoc, EndLoc), LParenLoc(LParenLoc) {}
+ : OMPClause(llvm::omp::OMPC_depobj, StartLoc, EndLoc),
+ LParenLoc(LParenLoc) {}
/// Build an empty clause.
///
explicit OMPDepobjClause()
- : OMPClause(OMPC_depobj, SourceLocation(), SourceLocation()) {}
+ : OMPClause(llvm::omp::OMPC_depobj, SourceLocation(), SourceLocation()) {}
void setDepobj(Expr *E) { Depobj = E; }
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_depobj;
+ return T->getClauseKind() == llvm::omp::OMPC_depobj;
}
};
/// clause.
OMPDependClause(SourceLocation StartLoc, SourceLocation LParenLoc,
SourceLocation EndLoc, unsigned N, unsigned NumLoops)
- : OMPVarListClause<OMPDependClause>(OMPC_depend, StartLoc, LParenLoc,
- EndLoc, N), NumLoops(NumLoops) {}
+ : OMPVarListClause<OMPDependClause>(llvm::omp::OMPC_depend, StartLoc,
+ LParenLoc, EndLoc, N),
+ NumLoops(NumLoops) {}
/// Build an empty clause.
///
/// \param NumLoops Number of loops that is associated with this depend
/// clause.
explicit OMPDependClause(unsigned N, unsigned NumLoops)
- : OMPVarListClause<OMPDependClause>(OMPC_depend, SourceLocation(),
+ : OMPVarListClause<OMPDependClause>(llvm::omp::OMPC_depend,
SourceLocation(), SourceLocation(),
- N),
+ SourceLocation(), N),
NumLoops(NumLoops) {}
/// Set dependency kind.
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_depend;
+ return T->getClauseKind() == llvm::omp::OMPC_depend;
}
};
OpenMPDirectiveKind CaptureRegion, SourceLocation StartLoc,
SourceLocation LParenLoc, SourceLocation ModifierLoc,
SourceLocation EndLoc)
- : OMPClause(OMPC_device, StartLoc, EndLoc), OMPClauseWithPreInit(this),
- LParenLoc(LParenLoc), Modifier(Modifier), ModifierLoc(ModifierLoc),
- Device(E) {
+ : OMPClause(llvm::omp::OMPC_device, StartLoc, EndLoc),
+ OMPClauseWithPreInit(this), LParenLoc(LParenLoc), Modifier(Modifier),
+ ModifierLoc(ModifierLoc), Device(E) {
setPreInitStmt(HelperE, CaptureRegion);
}
/// Build an empty clause.
OMPDeviceClause()
- : OMPClause(OMPC_device, SourceLocation(), SourceLocation()),
+ : OMPClause(llvm::omp::OMPC_device, SourceLocation(), SourceLocation()),
OMPClauseWithPreInit(this) {}
/// Sets the location of '('.
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_device;
+ return T->getClauseKind() == llvm::omp::OMPC_device;
}
};
/// \param StartLoc Starting location of the clause.
/// \param EndLoc Ending location of the clause.
OMPThreadsClause(SourceLocation StartLoc, SourceLocation EndLoc)
- : OMPClause(OMPC_threads, StartLoc, EndLoc) {}
+ : OMPClause(llvm::omp::OMPC_threads, StartLoc, EndLoc) {}
/// Build an empty clause.
OMPThreadsClause()
- : OMPClause(OMPC_threads, SourceLocation(), SourceLocation()) {}
+ : OMPClause(llvm::omp::OMPC_threads, SourceLocation(), SourceLocation()) {
+ }
child_range children() {
return child_range(child_iterator(), child_iterator());
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_threads;
+ return T->getClauseKind() == llvm::omp::OMPC_threads;
}
};
/// \param StartLoc Starting location of the clause.
/// \param EndLoc Ending location of the clause.
OMPSIMDClause(SourceLocation StartLoc, SourceLocation EndLoc)
- : OMPClause(OMPC_simd, StartLoc, EndLoc) {}
+ : OMPClause(llvm::omp::OMPC_simd, StartLoc, EndLoc) {}
/// Build an empty clause.
- OMPSIMDClause() : OMPClause(OMPC_simd, SourceLocation(), SourceLocation()) {}
+ OMPSIMDClause()
+ : OMPClause(llvm::omp::OMPC_simd, SourceLocation(), SourceLocation()) {}
child_range children() {
return child_range(child_iterator(), child_iterator());
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_simd;
+ return T->getClauseKind() == llvm::omp::OMPC_simd;
}
};
OpenMPMapClauseKind MapType, bool MapTypeIsImplicit,
SourceLocation MapLoc, const OMPVarListLocTy &Locs,
const OMPMappableExprListSizeTy &Sizes)
- : OMPMappableExprListClause(OMPC_map, Locs, Sizes, &MapperQualifierLoc,
- &MapperIdInfo),
+ : OMPMappableExprListClause(llvm::omp::OMPC_map, Locs, Sizes,
+ &MapperQualifierLoc, &MapperIdInfo),
MapType(MapType), MapTypeIsImplicit(MapTypeIsImplicit), MapLoc(MapLoc) {
assert(llvm::array_lengthof(MapTypeModifiers) == MapModifiers.size() &&
"Unexpected number of map type modifiers.");
/// 3) NumComponentLists: number of component lists in this clause; and 4)
/// NumComponents: total number of expression components in the clause.
explicit OMPMapClause(const OMPMappableExprListSizeTy &Sizes)
- : OMPMappableExprListClause(OMPC_map, OMPVarListLocTy(), Sizes) {}
+ : OMPMappableExprListClause(llvm::omp::OMPC_map, OMPVarListLocTy(),
+ Sizes) {}
/// Set map-type-modifier for the clause.
///
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_map;
+ return T->getClauseKind() == llvm::omp::OMPC_map;
}
};
OMPNumTeamsClause(Expr *E, Stmt *HelperE, OpenMPDirectiveKind CaptureRegion,
SourceLocation StartLoc, SourceLocation LParenLoc,
SourceLocation EndLoc)
- : OMPClause(OMPC_num_teams, StartLoc, EndLoc), OMPClauseWithPreInit(this),
- LParenLoc(LParenLoc), NumTeams(E) {
+ : OMPClause(llvm::omp::OMPC_num_teams, StartLoc, EndLoc),
+ OMPClauseWithPreInit(this), LParenLoc(LParenLoc), NumTeams(E) {
setPreInitStmt(HelperE, CaptureRegion);
}
/// Build an empty clause.
OMPNumTeamsClause()
- : OMPClause(OMPC_num_teams, SourceLocation(), SourceLocation()),
+ : OMPClause(llvm::omp::OMPC_num_teams, SourceLocation(),
+ SourceLocation()),
OMPClauseWithPreInit(this) {}
/// Sets the location of '('.
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_num_teams;
+ return T->getClauseKind() == llvm::omp::OMPC_num_teams;
}
};
OpenMPDirectiveKind CaptureRegion,
SourceLocation StartLoc, SourceLocation LParenLoc,
SourceLocation EndLoc)
- : OMPClause(OMPC_thread_limit, StartLoc, EndLoc),
+ : OMPClause(llvm::omp::OMPC_thread_limit, StartLoc, EndLoc),
OMPClauseWithPreInit(this), LParenLoc(LParenLoc), ThreadLimit(E) {
setPreInitStmt(HelperE, CaptureRegion);
}
/// Build an empty clause.
OMPThreadLimitClause()
- : OMPClause(OMPC_thread_limit, SourceLocation(), SourceLocation()),
+ : OMPClause(llvm::omp::OMPC_thread_limit, SourceLocation(),
+ SourceLocation()),
OMPClauseWithPreInit(this) {}
/// Sets the location of '('.
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_thread_limit;
+ return T->getClauseKind() == llvm::omp::OMPC_thread_limit;
}
};
OMPPriorityClause(Expr *Priority, Stmt *HelperPriority,
OpenMPDirectiveKind CaptureRegion, SourceLocation StartLoc,
SourceLocation LParenLoc, SourceLocation EndLoc)
- : OMPClause(OMPC_priority, StartLoc, EndLoc), OMPClauseWithPreInit(this),
- LParenLoc(LParenLoc), Priority(Priority) {
+ : OMPClause(llvm::omp::OMPC_priority, StartLoc, EndLoc),
+ OMPClauseWithPreInit(this), LParenLoc(LParenLoc), Priority(Priority) {
setPreInitStmt(HelperPriority, CaptureRegion);
}
/// Build an empty clause.
OMPPriorityClause()
- : OMPClause(OMPC_priority, SourceLocation(), SourceLocation()),
+ : OMPClause(llvm::omp::OMPC_priority, SourceLocation(), SourceLocation()),
OMPClauseWithPreInit(this) {}
/// Sets the location of '('.
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_priority;
+ return T->getClauseKind() == llvm::omp::OMPC_priority;
}
};
OMPGrainsizeClause(Expr *Size, Stmt *HelperSize,
OpenMPDirectiveKind CaptureRegion, SourceLocation StartLoc,
SourceLocation LParenLoc, SourceLocation EndLoc)
- : OMPClause(OMPC_grainsize, StartLoc, EndLoc), OMPClauseWithPreInit(this),
- LParenLoc(LParenLoc), Grainsize(Size) {
+ : OMPClause(llvm::omp::OMPC_grainsize, StartLoc, EndLoc),
+ OMPClauseWithPreInit(this), LParenLoc(LParenLoc), Grainsize(Size) {
setPreInitStmt(HelperSize, CaptureRegion);
}
/// Build an empty clause.
explicit OMPGrainsizeClause()
- : OMPClause(OMPC_grainsize, SourceLocation(), SourceLocation()),
+ : OMPClause(llvm::omp::OMPC_grainsize, SourceLocation(),
+ SourceLocation()),
OMPClauseWithPreInit(this) {}
/// Sets the location of '('.
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_grainsize;
+ return T->getClauseKind() == llvm::omp::OMPC_grainsize;
}
};
/// \param StartLoc Starting location of the clause.
/// \param EndLoc Ending location of the clause.
OMPNogroupClause(SourceLocation StartLoc, SourceLocation EndLoc)
- : OMPClause(OMPC_nogroup, StartLoc, EndLoc) {}
+ : OMPClause(llvm::omp::OMPC_nogroup, StartLoc, EndLoc) {}
/// Build an empty clause.
OMPNogroupClause()
- : OMPClause(OMPC_nogroup, SourceLocation(), SourceLocation()) {}
+ : OMPClause(llvm::omp::OMPC_nogroup, SourceLocation(), SourceLocation()) {
+ }
child_range children() {
return child_range(child_iterator(), child_iterator());
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_nogroup;
+ return T->getClauseKind() == llvm::omp::OMPC_nogroup;
}
};
OMPNumTasksClause(Expr *Size, Stmt *HelperSize,
OpenMPDirectiveKind CaptureRegion, SourceLocation StartLoc,
SourceLocation LParenLoc, SourceLocation EndLoc)
- : OMPClause(OMPC_num_tasks, StartLoc, EndLoc), OMPClauseWithPreInit(this),
- LParenLoc(LParenLoc), NumTasks(Size) {
+ : OMPClause(llvm::omp::OMPC_num_tasks, StartLoc, EndLoc),
+ OMPClauseWithPreInit(this), LParenLoc(LParenLoc), NumTasks(Size) {
setPreInitStmt(HelperSize, CaptureRegion);
}
/// Build an empty clause.
explicit OMPNumTasksClause()
- : OMPClause(OMPC_num_tasks, SourceLocation(), SourceLocation()),
+ : OMPClause(llvm::omp::OMPC_num_tasks, SourceLocation(),
+ SourceLocation()),
OMPClauseWithPreInit(this) {}
/// Sets the location of '('.
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_num_tasks;
+ return T->getClauseKind() == llvm::omp::OMPC_num_tasks;
}
};
/// \param EndLoc Ending location of the clause.
OMPHintClause(Expr *Hint, SourceLocation StartLoc, SourceLocation LParenLoc,
SourceLocation EndLoc)
- : OMPClause(OMPC_hint, StartLoc, EndLoc), LParenLoc(LParenLoc),
+ : OMPClause(llvm::omp::OMPC_hint, StartLoc, EndLoc), LParenLoc(LParenLoc),
Hint(Hint) {}
/// Build an empty clause.
- OMPHintClause() : OMPClause(OMPC_hint, SourceLocation(), SourceLocation()) {}
+ OMPHintClause()
+ : OMPClause(llvm::omp::OMPC_hint, SourceLocation(), SourceLocation()) {}
/// Sets the location of '('.
void setLParenLoc(SourceLocation Loc) { LParenLoc = Loc; }
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_hint;
+ return T->getClauseKind() == llvm::omp::OMPC_hint;
}
};
SourceLocation EndLoc,
OpenMPDistScheduleClauseKind Kind, Expr *ChunkSize,
Stmt *HelperChunkSize)
- : OMPClause(OMPC_dist_schedule, StartLoc, EndLoc),
+ : OMPClause(llvm::omp::OMPC_dist_schedule, StartLoc, EndLoc),
OMPClauseWithPreInit(this), LParenLoc(LParenLoc), Kind(Kind),
KindLoc(KLoc), CommaLoc(CommaLoc), ChunkSize(ChunkSize) {
setPreInitStmt(HelperChunkSize);
/// Build an empty clause.
explicit OMPDistScheduleClause()
- : OMPClause(OMPC_dist_schedule, SourceLocation(), SourceLocation()),
+ : OMPClause(llvm::omp::OMPC_dist_schedule, SourceLocation(),
+ SourceLocation()),
OMPClauseWithPreInit(this) {}
/// Get kind of the clause.
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_dist_schedule;
+ return T->getClauseKind() == llvm::omp::OMPC_dist_schedule;
}
};
SourceLocation MLoc, SourceLocation KLoc,
SourceLocation EndLoc, OpenMPDefaultmapClauseKind Kind,
OpenMPDefaultmapClauseModifier M)
- : OMPClause(OMPC_defaultmap, StartLoc, EndLoc), LParenLoc(LParenLoc),
- Modifier(M), ModifierLoc(MLoc), Kind(Kind), KindLoc(KLoc) {}
+ : OMPClause(llvm::omp::OMPC_defaultmap, StartLoc, EndLoc),
+ LParenLoc(LParenLoc), Modifier(M), ModifierLoc(MLoc), Kind(Kind),
+ KindLoc(KLoc) {}
/// Build an empty clause.
explicit OMPDefaultmapClause()
- : OMPClause(OMPC_defaultmap, SourceLocation(), SourceLocation()) {}
+ : OMPClause(llvm::omp::OMPC_defaultmap, SourceLocation(),
+ SourceLocation()) {}
/// Get kind of the clause.
OpenMPDefaultmapClauseKind getDefaultmapKind() const { return Kind; }
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_defaultmap;
+ return T->getClauseKind() == llvm::omp::OMPC_defaultmap;
}
};
DeclarationNameInfo MapperIdInfo,
const OMPVarListLocTy &Locs,
const OMPMappableExprListSizeTy &Sizes)
- : OMPMappableExprListClause(OMPC_to, Locs, Sizes, &MapperQualifierLoc,
- &MapperIdInfo) {}
+ : OMPMappableExprListClause(llvm::omp::OMPC_to, Locs, Sizes,
+ &MapperQualifierLoc, &MapperIdInfo) {}
/// Build an empty clause.
///
/// 3) NumComponentLists: number of component lists in this clause; and 4)
/// NumComponents: total number of expression components in the clause.
explicit OMPToClause(const OMPMappableExprListSizeTy &Sizes)
- : OMPMappableExprListClause(OMPC_to, OMPVarListLocTy(), Sizes) {}
+ : OMPMappableExprListClause(llvm::omp::OMPC_to, OMPVarListLocTy(),
+ Sizes) {}
/// Define the sizes of each trailing object array except the last one. This
/// is required for TrailingObjects to work properly.
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_to;
+ return T->getClauseKind() == llvm::omp::OMPC_to;
}
};
DeclarationNameInfo MapperIdInfo,
const OMPVarListLocTy &Locs,
const OMPMappableExprListSizeTy &Sizes)
- : OMPMappableExprListClause(OMPC_from, Locs, Sizes, &MapperQualifierLoc,
- &MapperIdInfo) {}
+ : OMPMappableExprListClause(llvm::omp::OMPC_from, Locs, Sizes,
+ &MapperQualifierLoc, &MapperIdInfo) {}
/// Build an empty clause.
///
/// 3) NumComponentLists: number of component lists in this clause; and 4)
/// NumComponents: total number of expression components in the clause.
explicit OMPFromClause(const OMPMappableExprListSizeTy &Sizes)
- : OMPMappableExprListClause(OMPC_from, OMPVarListLocTy(), Sizes) {}
+ : OMPMappableExprListClause(llvm::omp::OMPC_from, OMPVarListLocTy(),
+ Sizes) {}
/// Define the sizes of each trailing object array except the last one. This
/// is required for TrailingObjects to work properly.
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_from;
+ return T->getClauseKind() == llvm::omp::OMPC_from;
}
};
/// NumComponents: total number of expression components in the clause.
explicit OMPUseDevicePtrClause(const OMPVarListLocTy &Locs,
const OMPMappableExprListSizeTy &Sizes)
- : OMPMappableExprListClause(OMPC_use_device_ptr, Locs, Sizes) {}
+ : OMPMappableExprListClause(llvm::omp::OMPC_use_device_ptr, Locs, Sizes) {
+ }
/// Build an empty clause.
///
/// 3) NumComponentLists: number of component lists in this clause; and 4)
/// NumComponents: total number of expression components in the clause.
explicit OMPUseDevicePtrClause(const OMPMappableExprListSizeTy &Sizes)
- : OMPMappableExprListClause(OMPC_use_device_ptr, OMPVarListLocTy(),
- Sizes) {}
+ : OMPMappableExprListClause(llvm::omp::OMPC_use_device_ptr,
+ OMPVarListLocTy(), Sizes) {}
/// Define the sizes of each trailing object array except the last one. This
/// is required for TrailingObjects to work properly.
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_use_device_ptr;
+ return T->getClauseKind() == llvm::omp::OMPC_use_device_ptr;
}
};
/// NumComponents: total number of expression components in the clause.
explicit OMPIsDevicePtrClause(const OMPVarListLocTy &Locs,
const OMPMappableExprListSizeTy &Sizes)
- : OMPMappableExprListClause(OMPC_is_device_ptr, Locs, Sizes) {}
+ : OMPMappableExprListClause(llvm::omp::OMPC_is_device_ptr, Locs, Sizes) {}
/// Build an empty clause.
///
/// 3) NumComponentLists: number of component lists in this clause; and 4)
/// NumComponents: total number of expression components in the clause.
explicit OMPIsDevicePtrClause(const OMPMappableExprListSizeTy &Sizes)
- : OMPMappableExprListClause(OMPC_is_device_ptr, OMPVarListLocTy(),
- Sizes) {}
+ : OMPMappableExprListClause(llvm::omp::OMPC_is_device_ptr,
+ OMPVarListLocTy(), Sizes) {}
/// Define the sizes of each trailing object array except the last one. This
/// is required for TrailingObjects to work properly.
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_is_device_ptr;
+ return T->getClauseKind() == llvm::omp::OMPC_is_device_ptr;
}
};
/// \param N Number of the variables in the clause.
OMPNontemporalClause(SourceLocation StartLoc, SourceLocation LParenLoc,
SourceLocation EndLoc, unsigned N)
- : OMPVarListClause<OMPNontemporalClause>(OMPC_nontemporal, StartLoc,
- LParenLoc, EndLoc, N) {}
+ : OMPVarListClause<OMPNontemporalClause>(llvm::omp::OMPC_nontemporal,
+ StartLoc, LParenLoc, EndLoc, N) {
+ }
/// Build an empty clause.
///
/// \param N Number of variables.
explicit OMPNontemporalClause(unsigned N)
: OMPVarListClause<OMPNontemporalClause>(
- OMPC_nontemporal, SourceLocation(), SourceLocation(),
+ llvm::omp::OMPC_nontemporal, SourceLocation(), SourceLocation(),
SourceLocation(), N) {}
/// Get the list of privatied copies if the member expression was captured by
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_nontemporal;
+ return T->getClauseKind() == llvm::omp::OMPC_nontemporal;
}
};
OMPOrderClause(OpenMPOrderClauseKind A, SourceLocation ALoc,
SourceLocation StartLoc, SourceLocation LParenLoc,
SourceLocation EndLoc)
- : OMPClause(OMPC_order, StartLoc, EndLoc), LParenLoc(LParenLoc), Kind(A),
- KindKwLoc(ALoc) {}
+ : OMPClause(llvm::omp::OMPC_order, StartLoc, EndLoc),
+ LParenLoc(LParenLoc), Kind(A), KindKwLoc(ALoc) {}
/// Build an empty clause.
OMPOrderClause()
- : OMPClause(OMPC_order, SourceLocation(), SourceLocation()) {}
+ : OMPClause(llvm::omp::OMPC_order, SourceLocation(), SourceLocation()) {}
/// Sets the location of '('.
void setLParenLoc(SourceLocation Loc) { LParenLoc = Loc; }
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_order;
+ return T->getClauseKind() == llvm::omp::OMPC_order;
}
};
/// \param StartLoc Starting location of the clause.
/// \param EndLoc Ending location of the clause.
OMPDestroyClause(SourceLocation StartLoc, SourceLocation EndLoc)
- : OMPClause(OMPC_destroy, StartLoc, EndLoc) {}
+ : OMPClause(llvm::omp::OMPC_destroy, StartLoc, EndLoc) {}
/// Build an empty clause.
OMPDestroyClause()
- : OMPClause(OMPC_destroy, SourceLocation(), SourceLocation()) {}
+ : OMPClause(llvm::omp::OMPC_destroy, SourceLocation(), SourceLocation()) {
+ }
child_range children() {
return child_range(child_iterator(), child_iterator());
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_destroy;
+ return T->getClauseKind() == llvm::omp::OMPC_destroy;
}
};
/// \param EndLoc Ending location of the clause.
OMPDetachClause(Expr *Evt, SourceLocation StartLoc, SourceLocation LParenLoc,
SourceLocation EndLoc)
- : OMPClause(OMPC_detach, StartLoc, EndLoc), LParenLoc(LParenLoc),
- Evt(Evt) {}
+ : OMPClause(llvm::omp::OMPC_detach, StartLoc, EndLoc),
+ LParenLoc(LParenLoc), Evt(Evt) {}
/// Build an empty clause.
OMPDetachClause()
- : OMPClause(OMPC_detach, SourceLocation(), SourceLocation()) {}
+ : OMPClause(llvm::omp::OMPC_detach, SourceLocation(), SourceLocation()) {}
/// Returns the location of '('.
SourceLocation getLParenLoc() const { return LParenLoc; }
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_detach;
+ return T->getClauseKind() == llvm::omp::OMPC_detach;
}
};
/// \param N Number of the variables in the clause.
OMPInclusiveClause(SourceLocation StartLoc, SourceLocation LParenLoc,
SourceLocation EndLoc, unsigned N)
- : OMPVarListClause<OMPInclusiveClause>(OMPC_inclusive, StartLoc,
- LParenLoc, EndLoc, N) {}
+ : OMPVarListClause<OMPInclusiveClause>(llvm::omp::OMPC_inclusive,
+ StartLoc, LParenLoc, EndLoc, N) {}
/// Build an empty clause.
///
/// \param N Number of variables.
explicit OMPInclusiveClause(unsigned N)
- : OMPVarListClause<OMPInclusiveClause>(OMPC_inclusive, SourceLocation(),
+ : OMPVarListClause<OMPInclusiveClause>(llvm::omp::OMPC_inclusive,
SourceLocation(), SourceLocation(),
- N) {}
+ SourceLocation(), N) {}
public:
/// Creates clause with a list of variables \a VL.
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_inclusive;
+ return T->getClauseKind() == llvm::omp::OMPC_inclusive;
}
};
/// \param N Number of the variables in the clause.
OMPExclusiveClause(SourceLocation StartLoc, SourceLocation LParenLoc,
SourceLocation EndLoc, unsigned N)
- : OMPVarListClause<OMPExclusiveClause>(OMPC_exclusive, StartLoc,
- LParenLoc, EndLoc, N) {}
+ : OMPVarListClause<OMPExclusiveClause>(llvm::omp::OMPC_exclusive,
+ StartLoc, LParenLoc, EndLoc, N) {}
/// Build an empty clause.
///
/// \param N Number of variables.
explicit OMPExclusiveClause(unsigned N)
- : OMPVarListClause<OMPExclusiveClause>(OMPC_exclusive, SourceLocation(),
+ : OMPVarListClause<OMPExclusiveClause>(llvm::omp::OMPC_exclusive,
SourceLocation(), SourceLocation(),
- N) {}
+ SourceLocation(), N) {}
public:
/// Creates clause with a list of variables \a VL.
}
static bool classof(const OMPClause *T) {
- return T->getClauseKind() == OMPC_exclusive;
+ return T->getClauseKind() == llvm::omp::OMPC_exclusive;
}
};
#define DISPATCH(CLASS) \
return static_cast<ImplClass*>(this)->Visit##CLASS(static_cast<PTR(CLASS)>(S))
-#define OPENMP_CLAUSE(Name, Class) \
+#define OMP_CLAUSE_CLASS(Enum, Str, Class) \
RetTy Visit ## Class (PTR(Class) S) { DISPATCH(Class); }
-#include "clang/Basic/OpenMPKinds.def"
+#include "llvm/Frontend/OpenMP/OMPKinds.def"
RetTy Visit(PTR(OMPClause) S) {
// Top switch clause: visit each OMPClause.
switch (S->getClauseKind()) {
- default: llvm_unreachable("Unknown clause kind!");
-#define OPENMP_CLAUSE(Name, Class) \
- case OMPC_ ## Name : return Visit ## Class(static_cast<PTR(Class)>(S));
-#include "clang/Basic/OpenMPKinds.def"
+#define OMP_CLAUSE_CLASS(Enum, Str, Class) \
+ case llvm::omp::Clause::Enum: \
+ return Visit##Class(static_cast<PTR(Class)>(S));
+#define OMP_CLAUSE_NO_CLASS(Enum, Str) \
+ case llvm::omp::Clause::Enum: \
+ break;
+#include "llvm/Frontend/OpenMP/OMPKinds.def"
}
}
// Base case, ignore it. :)
OMPClausePrinter(raw_ostream &OS, const PrintingPolicy &Policy)
: OS(OS), Policy(Policy) {}
-#define OPENMP_CLAUSE(Name, Class) void Visit##Class(Class *S);
-#include "clang/Basic/OpenMPKinds.def"
+#define OMP_CLAUSE_CLASS(Enum, Str, Class) \
+ void Visit##Class(Class *S);
+#include "llvm/Frontend/OpenMP/OMPKinds.def"
};
/// Helper data structure representing the traits in a match clause of an