Changeset View
Changeset View
Standalone View
Standalone View
clang/lib/AST/StmtProfile.cpp
//===---- StmtProfile.cpp - Profile implementation for Stmt ASTs ----------===// | //===---- StmtProfile.cpp - Profile implementation for Stmt ASTs ----------===// | ||||
Lint: Lint: clang-format not found in user's PATH; not linting file. | |||||
// | // | ||||
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. | ||||
// See https://llvm.org/LICENSE.txt for license information. | // See https://llvm.org/LICENSE.txt for license information. | ||||
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||||
// | // | ||||
//===----------------------------------------------------------------------===// | //===----------------------------------------------------------------------===// | ||||
// | // | ||||
▲ Show 20 Lines • Show All 447 Lines • ▼ Show 20 Lines | if (C->getSafelen()) | ||||
Profiler->VisitStmt(C->getSafelen()); | Profiler->VisitStmt(C->getSafelen()); | ||||
} | } | ||||
void OMPClauseProfiler::VisitOMPSimdlenClause(const OMPSimdlenClause *C) { | void OMPClauseProfiler::VisitOMPSimdlenClause(const OMPSimdlenClause *C) { | ||||
if (C->getSimdlen()) | if (C->getSimdlen()) | ||||
Profiler->VisitStmt(C->getSimdlen()); | Profiler->VisitStmt(C->getSimdlen()); | ||||
} | } | ||||
void OMPClauseProfiler::VisitOMPSizesClause(const OMPSizesClause *C) { | |||||
for (auto E : C->getSizesRefs()) | |||||
if (E) | |||||
Profiler->VisitExpr(E); | |||||
} | |||||
void OMPClauseProfiler::VisitOMPAllocatorClause(const OMPAllocatorClause *C) { | void OMPClauseProfiler::VisitOMPAllocatorClause(const OMPAllocatorClause *C) { | ||||
if (C->getAllocator()) | if (C->getAllocator()) | ||||
Profiler->VisitStmt(C->getAllocator()); | Profiler->VisitStmt(C->getAllocator()); | ||||
} | } | ||||
void OMPClauseProfiler::VisitOMPCollapseClause(const OMPCollapseClause *C) { | void OMPClauseProfiler::VisitOMPCollapseClause(const OMPCollapseClause *C) { | ||||
if (C->getNumForLoops()) | if (C->getNumForLoops()) | ||||
Profiler->VisitStmt(C->getNumForLoops()); | Profiler->VisitStmt(C->getNumForLoops()); | ||||
▲ Show 20 Lines • Show All 382 Lines • ▼ Show 20 Lines | |||||
void StmtProfiler::VisitOMPParallelDirective(const OMPParallelDirective *S) { | void StmtProfiler::VisitOMPParallelDirective(const OMPParallelDirective *S) { | ||||
VisitOMPExecutableDirective(S); | VisitOMPExecutableDirective(S); | ||||
} | } | ||||
void StmtProfiler::VisitOMPSimdDirective(const OMPSimdDirective *S) { | void StmtProfiler::VisitOMPSimdDirective(const OMPSimdDirective *S) { | ||||
VisitOMPLoopDirective(S); | VisitOMPLoopDirective(S); | ||||
} | } | ||||
void StmtProfiler::VisitOMPTileDirective(const OMPTileDirective *S) { | |||||
VisitOMPLoopDirective(S); | |||||
} | |||||
void StmtProfiler::VisitOMPForDirective(const OMPForDirective *S) { | void StmtProfiler::VisitOMPForDirective(const OMPForDirective *S) { | ||||
VisitOMPLoopDirective(S); | VisitOMPLoopDirective(S); | ||||
} | } | ||||
void StmtProfiler::VisitOMPForSimdDirective(const OMPForSimdDirective *S) { | void StmtProfiler::VisitOMPForSimdDirective(const OMPForSimdDirective *S) { | ||||
VisitOMPLoopDirective(S); | VisitOMPLoopDirective(S); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 1,360 Lines • Show Last 20 Lines |
clang-format not found in user's PATH; not linting file.