Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion flang/include/flang/Lower/OpenMP/Clauses.h
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ using Initializer = tomp::clause::InitializerT<TypeTy, IdTy, ExprTy>;
using InReduction = tomp::clause::InReductionT<TypeTy, IdTy, ExprTy>;
using IsDevicePtr = tomp::clause::IsDevicePtrT<TypeTy, IdTy, ExprTy>;
using Lastprivate = tomp::clause::LastprivateT<TypeTy, IdTy, ExprTy>;
using LoopRange = tomp::clause::LoopRangeT<TypeTy, IdTy, ExprTy>;
using Looprange = tomp::clause::LooprangeT<TypeTy, IdTy, ExprTy>;
using Linear = tomp::clause::LinearT<TypeTy, IdTy, ExprTy>;
using Link = tomp::clause::LinkT<TypeTy, IdTy, ExprTy>;
using Map = tomp::clause::MapT<TypeTy, IdTy, ExprTy>;
Expand Down
2 changes: 1 addition & 1 deletion flang/include/flang/Parser/dump-parse-tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ class ParseTreeDumper {
NODE_ENUM(OmpLinearModifier, Value)
NODE(parser, OmpLocator)
NODE(parser, OmpLocatorList)
NODE(parser, OmpLoopRangeClause)
NODE(parser, OmpLooprangeClause)
NODE(parser, OmpMapClause)
NODE(OmpMapClause, Modifier)
NODE(parser, OmpMapper)
Expand Down
6 changes: 3 additions & 3 deletions flang/include/flang/Parser/parse-tree.h
Original file line number Diff line number Diff line change
Expand Up @@ -4666,10 +4666,10 @@ struct OmpLinearClause {

// Ref: [6.0:207-208]
//
// loop-range-clause ->
// looprange-clause ->
// LOOPRANGE(first, count) // since 6.0
struct OmpLoopRangeClause {
TUPLE_CLASS_BOILERPLATE(OmpLoopRangeClause);
struct OmpLooprangeClause {
TUPLE_CLASS_BOILERPLATE(OmpLooprangeClause);
std::tuple<ScalarIntConstantExpr, ScalarIntConstantExpr> t;
};

Expand Down
2 changes: 1 addition & 1 deletion flang/lib/Lower/OpenMP/Clauses.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1076,7 +1076,7 @@ Link make(const parser::OmpClause::Link &inp,
return Link{/*List=*/makeObjects(inp.v, semaCtx)};
}

LoopRange make(const parser::OmpClause::Looprange &inp,
Looprange make(const parser::OmpClause::Looprange &inp,
semantics::SemanticsContext &semaCtx) {
llvm_unreachable("Unimplemented: looprange");
}
Expand Down
4 changes: 2 additions & 2 deletions flang/lib/Parser/openmp-parsers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1278,7 +1278,7 @@ TYPE_PARSER(
maybe(":"_tok >> nonemptyList(Parser<OmpLinearClause::Modifier>{})),
/*PostModified=*/pure(true)))

TYPE_PARSER(construct<OmpLoopRangeClause>(
TYPE_PARSER(construct<OmpLooprangeClause>(
scalarIntConstantExpr, "," >> scalarIntConstantExpr))

// OpenMPv5.2 12.5.2 detach-clause -> DETACH (event-handle)
Expand Down Expand Up @@ -1471,7 +1471,7 @@ TYPE_PARSER( //
"LINK" >> construct<OmpClause>(construct<OmpClause::Link>(
parenthesized(Parser<OmpObjectList>{}))) ||
"LOOPRANGE" >> construct<OmpClause>(construct<OmpClause::Looprange>(
parenthesized(Parser<OmpLoopRangeClause>{}))) ||
parenthesized(Parser<OmpLooprangeClause>{}))) ||
"MAP" >> construct<OmpClause>(construct<OmpClause::Map>(
parenthesized(Parser<OmpMapClause>{}))) ||
"MATCH" >> construct<OmpClause>(construct<OmpClause::Match>(
Expand Down
2 changes: 1 addition & 1 deletion flang/lib/Parser/unparse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2370,7 +2370,7 @@ class UnparseVisitor {
}
}
}
void Unparse(const OmpLoopRangeClause &x) {
void Unparse(const OmpLooprangeClause &x) {
Word("LOOPRANGE(");
Walk(std::get<0>(x.t));
Put(", ");
Expand Down
2 changes: 1 addition & 1 deletion flang/test/Parser/OpenMP/fuse-looprange.f90
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ subroutine openmp_fuse(x)
!PARSE-TREE: OpenMPConstruct -> OpenMPLoopConstruct
!PARSE-TREE: OmpBeginLoopDirective
!PARSE-TREE: OmpDirectiveName -> llvm::omp::Directive = fuse
!PARSE-TREE: OmpClauseList -> OmpClause -> Looprange -> OmpLoopRangeClause
!PARSE-TREE: OmpClauseList -> OmpClause -> Looprange -> OmpLooprangeClause
!PARSE-TREE: Scalar -> Integer -> Constant -> Expr = '1_4'
!PARSE-TREE: LiteralConstant -> IntLiteralConstant = '1'
!PARSE-TREE: Scalar -> Integer -> Constant -> Expr = '2_4'
Expand Down
4 changes: 2 additions & 2 deletions llvm/include/llvm/Frontend/OpenMP/ClauseT.h
Original file line number Diff line number Diff line change
Expand Up @@ -1307,7 +1307,7 @@ struct WriteT {
};

// V6: [6.4.7] Looprange clause
template <typename T, typename I, typename E> struct LoopRangeT {
template <typename T, typename I, typename E> struct LooprangeT {
using Begin = E;
using End = E;

Expand Down Expand Up @@ -1346,7 +1346,7 @@ using TupleClausesT =
DoacrossT<T, I, E>, DynGroupprivateT<T, I, E>, FromT<T, I, E>,
GrainsizeT<T, I, E>, IfT<T, I, E>, InitT<T, I, E>,
InReductionT<T, I, E>, LastprivateT<T, I, E>, LinearT<T, I, E>,
LoopRangeT<T, I, E>, MapT<T, I, E>, NumTasksT<T, I, E>,
LooprangeT<T, I, E>, MapT<T, I, E>, NumTasksT<T, I, E>,
OrderT<T, I, E>, ReductionT<T, I, E>, ScheduleT<T, I, E>,
TaskReductionT<T, I, E>, ToT<T, I, E>>;

Expand Down
2 changes: 1 addition & 1 deletion llvm/include/llvm/Frontend/OpenMP/OMP.td
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ def OMPC_Link : Clause<[Spelling<"link">]> {
}
def OMPC_LoopRange : Clause<[Spelling<"looprange">]> {
let clangClass = "OMPLoopRangeClause";
let flangClass = "OmpLoopRangeClause";
let flangClass = "OmpLooprangeClause";
}
def OMPC_Map : Clause<[Spelling<"map">]> {
let clangClass = "OMPMapClause";
Expand Down