forked from OSchip/llvm-project
[flang] Fix space in issue unparse.cc between directive and its first clause.
Original-commit: flang-compiler/f18@d9478c1a59 Reviewed-on: https://github.com/flang-compiler/f18/pull/96 Tree-same-pre-rewrite: false
This commit is contained in:
parent
9914f221bd
commit
e2c8c21390
|
@ -1827,6 +1827,11 @@ public:
|
||||||
Walk(x.v);
|
Walk(x.v);
|
||||||
Put(")");
|
Put(")");
|
||||||
}
|
}
|
||||||
|
void Unparse(const OmpClause::Simdlen &x) {
|
||||||
|
Word("SIMDLEN(");
|
||||||
|
Walk(x.v);
|
||||||
|
Put(")");
|
||||||
|
}
|
||||||
void Unparse(const OmpClause::ThreadLimit &x) {
|
void Unparse(const OmpClause::ThreadLimit &x) {
|
||||||
Word("THREADLIMIT(");
|
Word("THREADLIMIT(");
|
||||||
Walk(x.v);
|
Walk(x.v);
|
||||||
|
@ -1856,92 +1861,92 @@ public:
|
||||||
std::visit(
|
std::visit(
|
||||||
visitors{[&](const OmpLoopDirective::DistributeParallelDoSimd &y) {
|
visitors{[&](const OmpLoopDirective::DistributeParallelDoSimd &y) {
|
||||||
Word("DISTRIBUTE PARALLEL DO SIMD ");
|
Word("DISTRIBUTE PARALLEL DO SIMD ");
|
||||||
Walk(y.v);
|
Walk(y.v, " ");
|
||||||
},
|
},
|
||||||
[&](const OmpLoopDirective::DistributeParallelDo &y) {
|
[&](const OmpLoopDirective::DistributeParallelDo &y) {
|
||||||
Word("DISTRIBUTE PARALLEL DO ");
|
Word("DISTRIBUTE PARALLEL DO ");
|
||||||
Walk(y.v);
|
Walk(y.v, " ");
|
||||||
},
|
},
|
||||||
[&](const OmpLoopDirective::DistributeSimd &y) {
|
[&](const OmpLoopDirective::DistributeSimd &y) {
|
||||||
Word("DISTRIBUTE SIMD ");
|
Word("DISTRIBUTE SIMD ");
|
||||||
Walk(y.v);
|
Walk(y.v, " ");
|
||||||
},
|
},
|
||||||
[&](const OmpLoopDirective::Distribute &y) {
|
[&](const OmpLoopDirective::Distribute &y) {
|
||||||
Word("DISTRIBUTE ");
|
Word("DISTRIBUTE ");
|
||||||
Walk(y.v);
|
Walk(y.v, " ");
|
||||||
},
|
},
|
||||||
[&](const OmpLoopDirective::DoSimd &y) {
|
[&](const OmpLoopDirective::DoSimd &y) {
|
||||||
Word("DO SIMD ");
|
Word("DO SIMD ");
|
||||||
Walk(y.v);
|
Walk(y.v, " ");
|
||||||
},
|
},
|
||||||
[&](const OmpLoopDirective::Do &y) {
|
[&](const OmpLoopDirective::Do &y) {
|
||||||
Word("DO ");
|
Word("DO ");
|
||||||
Walk(y.v);
|
Walk(y.v, " ");
|
||||||
},
|
},
|
||||||
[&](const OmpLoopDirective::ParallelDoSimd &y) {
|
[&](const OmpLoopDirective::ParallelDoSimd &y) {
|
||||||
Word("PARALLEL DO SIMD ");
|
Word("PARALLEL DO SIMD ");
|
||||||
Walk(y.v);
|
Walk(y.v, " ");
|
||||||
},
|
},
|
||||||
[&](const OmpLoopDirective::ParallelDo &y) {
|
[&](const OmpLoopDirective::ParallelDo &y) {
|
||||||
Word("PARALLEL DO ");
|
Word("PARALLEL DO ");
|
||||||
Walk(y.v);
|
Walk(y.v, " ");
|
||||||
},
|
},
|
||||||
[&](const OmpLoopDirective::Simd &y) {
|
[&](const OmpLoopDirective::Simd &y) {
|
||||||
Word("SIMD ");
|
Word("SIMD ");
|
||||||
Walk(y.v);
|
Walk(y.v, " ");
|
||||||
},
|
},
|
||||||
[&](const OmpLoopDirective::TargetParallelDoSimd &y) {
|
[&](const OmpLoopDirective::TargetParallelDoSimd &y) {
|
||||||
Word("TARGET PARALLEL DO SIMD ");
|
Word("TARGET PARALLEL DO SIMD ");
|
||||||
Walk(y.v);
|
Walk(y.v, " ");
|
||||||
},
|
},
|
||||||
[&](const OmpLoopDirective::TargetParallelDo &y) {
|
[&](const OmpLoopDirective::TargetParallelDo &y) {
|
||||||
Word("TARGET PARALLEL DO ");
|
Word("TARGET PARALLEL DO ");
|
||||||
Walk(y.v);
|
Walk(y.v, " ");
|
||||||
},
|
},
|
||||||
[&](const OmpLoopDirective::TargetTeamsDistributeParallelDoSimd
|
[&](const OmpLoopDirective::TargetTeamsDistributeParallelDoSimd
|
||||||
&y) {
|
&y) {
|
||||||
Word("TARGET TEAMS DISTRIBUTE PARALLEL DO SIMD ");
|
Word("TARGET TEAMS DISTRIBUTE PARALLEL DO SIMD ");
|
||||||
Walk(y.v);
|
Walk(y.v, " ");
|
||||||
},
|
},
|
||||||
[&](const OmpLoopDirective::TargetTeamsDistributeParallelDo &y) {
|
[&](const OmpLoopDirective::TargetTeamsDistributeParallelDo &y) {
|
||||||
Word("TARGET TEAMS DISTRIBUTE PARALLEL DO ");
|
Word("TARGET TEAMS DISTRIBUTE PARALLEL DO ");
|
||||||
Walk(y.v);
|
Walk(y.v, " ");
|
||||||
},
|
},
|
||||||
[&](const OmpLoopDirective::TargetTeamsDistributeSimd &y) {
|
[&](const OmpLoopDirective::TargetTeamsDistributeSimd &y) {
|
||||||
Word("TARGET TEAMS DISTRIBUTE SIMD ");
|
Word("TARGET TEAMS DISTRIBUTE SIMD ");
|
||||||
Walk(y.v);
|
Walk(y.v, " ");
|
||||||
},
|
},
|
||||||
[&](const OmpLoopDirective::TargetTeamsDistribute &y) {
|
[&](const OmpLoopDirective::TargetTeamsDistribute &y) {
|
||||||
Word("TARGET TEAMS DISTRIBUTE ");
|
Word("TARGET TEAMS DISTRIBUTE ");
|
||||||
Walk(y.v);
|
Walk(y.v, " ");
|
||||||
},
|
},
|
||||||
[&](const OmpLoopDirective::TargetSimd &y) {
|
[&](const OmpLoopDirective::TargetSimd &y) {
|
||||||
Word("TARGET SIMD ");
|
Word("TARGET SIMD ");
|
||||||
Walk(y.v);
|
Walk(y.v, " ");
|
||||||
},
|
},
|
||||||
[&](const OmpLoopDirective::TaskloopSimd &y) {
|
[&](const OmpLoopDirective::TaskloopSimd &y) {
|
||||||
Word("TASKLOOP SIMD ");
|
Word("TASKLOOP SIMD ");
|
||||||
Walk(y.v);
|
Walk(y.v, " ");
|
||||||
},
|
},
|
||||||
[&](const OmpLoopDirective::Taskloop &y) {
|
[&](const OmpLoopDirective::Taskloop &y) {
|
||||||
Word("TASKLOOP ");
|
Word("TASKLOOP ");
|
||||||
Walk(y.v);
|
Walk(y.v, " ");
|
||||||
},
|
},
|
||||||
[&](const OmpLoopDirective::TeamsDistributeParallelDoSimd &y) {
|
[&](const OmpLoopDirective::TeamsDistributeParallelDoSimd &y) {
|
||||||
Word("TEAMS DISTRIBUTE PARALLEL DO SIMD ");
|
Word("TEAMS DISTRIBUTE PARALLEL DO SIMD ");
|
||||||
Walk(y.v);
|
Walk(y.v, " ");
|
||||||
},
|
},
|
||||||
[&](const OmpLoopDirective::TeamsDistributeParallelDo &y) {
|
[&](const OmpLoopDirective::TeamsDistributeParallelDo &y) {
|
||||||
Word("TEAMS DISTRIBUTE PARALLEL DO ");
|
Word("TEAMS DISTRIBUTE PARALLEL DO ");
|
||||||
Walk(y.v);
|
Walk(y.v, " ");
|
||||||
},
|
},
|
||||||
[&](const OmpLoopDirective::TeamsDistributeSimd &y) {
|
[&](const OmpLoopDirective::TeamsDistributeSimd &y) {
|
||||||
Word("TEAMS DISTRIBUTE SIMD ");
|
Word("TEAMS DISTRIBUTE SIMD ");
|
||||||
Walk(y.v);
|
Walk(y.v, " ");
|
||||||
},
|
},
|
||||||
[&](const OmpLoopDirective::TeamsDistribute &y) {
|
[&](const OmpLoopDirective::TeamsDistribute &y) {
|
||||||
Word("TEAMS DISTRIBUTE ");
|
Word("TEAMS DISTRIBUTE ");
|
||||||
Walk(y.v);
|
Walk(y.v, " ");
|
||||||
}},
|
}},
|
||||||
x.u);
|
x.u);
|
||||||
Put("\n");
|
Put("\n");
|
||||||
|
@ -1950,39 +1955,39 @@ public:
|
||||||
void Unparse(const OmpStandaloneDirective &x) {
|
void Unparse(const OmpStandaloneDirective &x) {
|
||||||
std::visit(visitors{[&](const OmpStandaloneDirective::Barrier &y) {
|
std::visit(visitors{[&](const OmpStandaloneDirective::Barrier &y) {
|
||||||
Word("BARRIER ");
|
Word("BARRIER ");
|
||||||
Walk(y.v);
|
Walk(y.v, " ");
|
||||||
},
|
},
|
||||||
[&](const OmpStandaloneDirective::CancellationPoint &y) {
|
[&](const OmpStandaloneDirective::CancellationPoint &y) {
|
||||||
Word("CANCELLATION POINT ");
|
Word("CANCELLATION POINT ");
|
||||||
Walk(y.v);
|
Walk(y.v, " ");
|
||||||
},
|
},
|
||||||
[&](const OmpStandaloneDirective::Cancel &y) {
|
[&](const OmpStandaloneDirective::Cancel &y) {
|
||||||
Word("CANCEL ");
|
Word("CANCEL ");
|
||||||
Walk(y.v);
|
Walk(y.v, " ");
|
||||||
},
|
},
|
||||||
[&](const OmpStandaloneDirective::Flush &y) {
|
[&](const OmpStandaloneDirective::Flush &y) {
|
||||||
Word("FLUSH ");
|
Word("FLUSH ");
|
||||||
Walk(y.v);
|
Walk(y.v, " ");
|
||||||
},
|
},
|
||||||
[&](const OmpStandaloneDirective::TargetEnterData &y) {
|
[&](const OmpStandaloneDirective::TargetEnterData &y) {
|
||||||
Word("TARGET ENTER DATA ");
|
Word("TARGET ENTER DATA ");
|
||||||
Walk(y.v);
|
Walk(y.v, " ");
|
||||||
},
|
},
|
||||||
[&](const OmpStandaloneDirective::TargetExitData &y) {
|
[&](const OmpStandaloneDirective::TargetExitData &y) {
|
||||||
Word("TARGET EXIT DATA ");
|
Word("TARGET EXIT DATA ");
|
||||||
Walk(y.v);
|
Walk(y.v, " ");
|
||||||
},
|
},
|
||||||
[&](const OmpStandaloneDirective::TargetUpdate &y) {
|
[&](const OmpStandaloneDirective::TargetUpdate &y) {
|
||||||
Word("TARGET UPDATE ");
|
Word("TARGET UPDATE ");
|
||||||
Walk(y.v);
|
Walk(y.v, " ");
|
||||||
},
|
},
|
||||||
[&](const OmpStandaloneDirective::Taskwait &y) {
|
[&](const OmpStandaloneDirective::Taskwait &y) {
|
||||||
Word("TASKWAIT ");
|
Word("TASKWAIT ");
|
||||||
Walk(y.v);
|
Walk(y.v, " ");
|
||||||
},
|
},
|
||||||
[&](const OmpStandaloneDirective::Taskyield &y) {
|
[&](const OmpStandaloneDirective::Taskyield &y) {
|
||||||
Word("TASKYIELD ");
|
Word("TASKYIELD ");
|
||||||
Walk(y.v);
|
Walk(y.v, " ");
|
||||||
}},
|
}},
|
||||||
x.u);
|
x.u);
|
||||||
Put("\n");
|
Put("\n");
|
||||||
|
|
Loading…
Reference in New Issue