Skip to content

Commit 908f2f5

Browse files
joker-ephmahesh-attarde
authored andcommitted
[MLIR] Apply clang-tidy fixes for misc-use-internal-linkage in OpenMPDialect.cpp (NFC)
1 parent f3275fe commit 908f2f5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

mlir/lib/Dialect/OpenMP/IR/OpenMPDialect.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ static ParseResult parseClauseAttr(AsmParser &parser, ClauseAttr &attr) {
182182
}
183183

184184
template <typename ClauseAttr>
185-
void printClauseAttr(OpAsmPrinter &p, Operation *op, ClauseAttr attr) {
185+
static void printClauseAttr(OpAsmPrinter &p, Operation *op, ClauseAttr attr) {
186186
p << stringifyEnum(attr.getValue());
187187
}
188188

@@ -1511,8 +1511,8 @@ static LogicalResult verifySynchronizationHint(Operation *op, uint64_t hint) {
15111511
//===----------------------------------------------------------------------===//
15121512

15131513
// Helper function to get bitwise AND of `value` and 'flag'
1514-
uint64_t mapTypeToBitFlag(uint64_t value,
1515-
llvm::omp::OpenMPOffloadMappingFlags flag) {
1514+
static uint64_t mapTypeToBitFlag(uint64_t value,
1515+
llvm::omp::OpenMPOffloadMappingFlags flag) {
15161516
return value & llvm::to_underlying(flag);
15171517
}
15181518

0 commit comments

Comments
 (0)