Skip to content

Commit 3903af1

Browse files
committed
Addressed review comments
1 parent 6eb5850 commit 3903af1

File tree

6 files changed

+6
-7
lines changed

6 files changed

+6
-7
lines changed

clang/include/clang/Basic/OpenMPKinds.def

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ OPENMP_DOACROSS_MODIFIER(source_omp_cur_iteration)
278278
OPENMP_THREADSET_KIND(omp_pool)
279279
OPENMP_THREADSET_KIND(omp_team)
280280

281-
OPENMP_TRANSPARENT_KIND(omp_notimpex)
281+
OPENMP_TRANSPARENT_KIND(omp_not_impex)
282282
OPENMP_TRANSPARENT_KIND(omp_import)
283283
OPENMP_TRANSPARENT_KIND(omp_export)
284284
OPENMP_TRANSPARENT_KIND(omp_impex)

clang/lib/AST/OpenMPClause.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2049,7 +2049,7 @@ void OMPClausePrinter::VisitOMPThreadsetClause(OMPThreadsetClause *Node) {
20492049
void OMPClausePrinter::VisitOMPTransparentClause(OMPTransparentClause *Node) {
20502050
OS << "transparent("
20512051
<< getOpenMPSimpleClauseTypeName(OMPC_transparent,
2052-
unsigned(Node->getTransparentKind()))
2052+
Node->getTransparentKind())
20532053
<< ")";
20542054
}
20552055

clang/lib/Serialization/ASTReader.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11682,8 +11682,7 @@ void OMPClauseReader::VisitOMPTransparentClause(OMPTransparentClause *C) {
1168211682
C->setLParenLoc(Record.readSourceLocation());
1168311683
SourceLocation TransparentKindLoc = Record.readSourceLocation();
1168411684
C->setTransparentKindLoc(TransparentKindLoc);
11685-
OpenMPTransparentKind TKind =
11686-
static_cast<OpenMPTransparentKind>(Record.readInt());
11685+
OpenMPTransparentKind TKind = Record.readEnum<OpenMPTransparentKind>();
1168711686
C->setTransparentKind(TKind);
1168811687
}
1168911688

flang/include/flang/Parser/parse-tree.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4862,7 +4862,7 @@ struct OmpToClause {
48624862
// transparent-clause ->
48634863
// TRANSPARENT[(impex-type)] // since 6.0
48644864
struct OmpTransparentClause {
4865-
ENUM_CLASS(TransparentPolicy, Omp_NotImpex, Omp_Import, Omp_Export, Omp_Impex)
4865+
ENUM_CLASS(TransparentPolicy, Omp_Not_Impex, Omp_Import, Omp_Export, Omp_Impex)
48664866
WRAPPER_CLASS_BOILERPLATE(OmpTransparentClause, TransparentPolicy);
48674867
};
48684868

flang/lib/Lower/OpenMP/Clauses.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1506,7 +1506,7 @@ Transparent make(const parser::OmpClause::Transparent &inp,
15061506
CLAUSET_ENUM_CONVERT( //
15071507
convert, wrapped::TransparentPolicy, Transparent::TransparentPolicy,
15081508
// clang-format off
1509-
MS(Omp_NotImpex, Omp_NotImpex)
1509+
MS(Omp_Not_Impex, Omp_Not_Impex)
15101510
MS(Omp_Import, Omp_Import)
15111511
MS(Omp_Export, Omp_Export)
15121512
MS(Omp_Impex, Omp_Impex)

llvm/include/llvm/Frontend/OpenMP/ClauseT.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1201,7 +1201,7 @@ struct ToT {
12011201
// V6.0: [17.9.6] `transparent` clause
12021202
template <typename T, typename I, typename E> //
12031203
struct TransparentT {
1204-
ENUM(TransparentPolicy, Omp_NotImpex, Omp_Import, Omp_Export, Omp_Impex);
1204+
ENUM(TransparentPolicy, Omp_Not_Impex, Omp_Import, Omp_Export, Omp_Impex);
12051205
using WrapperTrait = std::true_type;
12061206
TransparentPolicy v;
12071207
};

0 commit comments

Comments
 (0)