Skip to content

Commit baa5bee

Browse files
authored
[NFC] Make NVGPU casing consistent (#91903)
1 parent 5ca3685 commit baa5bee

File tree

7 files changed

+14
-14
lines changed

7 files changed

+14
-14
lines changed

mlir/lib/Bindings/Python/DialectNVGPU.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//===--- DialectNvgpu.cpp - Pybind module for Nvgpu dialect API support ---===//
1+
//===--- DialectNVGPU.cpp - Pybind module for NVGPU dialect API support ---===//
22
//
33
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44
// See https://llvm.org/LICENSE.txt for license information.
@@ -17,7 +17,7 @@ using namespace mlir;
1717
using namespace mlir::python;
1818
using namespace mlir::python::adaptors;
1919

20-
static void populateDialectNvgpuSubmodule(const pybind11::module &m) {
20+
static void populateDialectNVGPUSubmodule(const pybind11::module &m) {
2121
auto nvgpuTensorMapDescriptorType = mlir_type_subclass(
2222
m, "TensorMapDescriptorType", mlirTypeIsANVGPUTensorMapDescriptorType);
2323

@@ -34,8 +34,8 @@ static void populateDialectNvgpuSubmodule(const pybind11::module &m) {
3434
py::arg("ctx") = py::none());
3535
}
3636

37-
PYBIND11_MODULE(_mlirDialectsNvgpu, m) {
37+
PYBIND11_MODULE(_mlirDialectsNVGPU, m) {
3838
m.doc() = "MLIR NVGPU dialect.";
3939

40-
populateDialectNvgpuSubmodule(m);
40+
populateDialectNVGPUSubmodule(m);
4141
}

mlir/lib/Conversion/VectorToGPU/VectorToGPU.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ struct PrepareContractToGPUMMA
441441
}
442442
};
443443

444-
// Fold transpose op into the transfer read op. Nvgpu mma.sync op only supports
444+
// Fold transpose op into the transfer read op. NVGPU mma.sync op only supports
445445
// row-, column-, and row-major layout for matrixA, matrixB, and matrixC,
446446
// respectively. We can fold the transpose operation when loading the data from
447447
// Shared Memory to registers.

mlir/lib/Dialect/MemRef/Transforms/FoldMemRefAliasOps.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -362,7 +362,7 @@ class SubViewOfSubViewFolder : public OpRewritePattern<memref::SubViewOp> {
362362

363363
/// Folds nvgpu.device_async_copy subviews into the copy itself. This pattern
364364
/// is folds subview on src and dst memref of the copy.
365-
class NvgpuAsyncCopyOpSubViewOpFolder final
365+
class NVGPUAsyncCopyOpSubViewOpFolder final
366366
: public OpRewritePattern<nvgpu::DeviceAsyncCopyOp> {
367367
public:
368368
using OpRewritePattern<nvgpu::DeviceAsyncCopyOp>::OpRewritePattern;
@@ -694,7 +694,7 @@ LogicalResult StoreOpOfCollapseShapeOpFolder<OpTy>::matchAndRewrite(
694694
return success();
695695
}
696696

697-
LogicalResult NvgpuAsyncCopyOpSubViewOpFolder::matchAndRewrite(
697+
LogicalResult NVGPUAsyncCopyOpSubViewOpFolder::matchAndRewrite(
698698
nvgpu::DeviceAsyncCopyOp copyOp, PatternRewriter &rewriter) const {
699699

700700
LLVM_DEBUG(DBGS() << "copyOp : " << copyOp << "\n");
@@ -769,7 +769,7 @@ void memref::populateFoldMemRefAliasOpPatterns(RewritePatternSet &patterns) {
769769
LoadOpOfCollapseShapeOpFolder<memref::LoadOp>,
770770
StoreOpOfCollapseShapeOpFolder<affine::AffineStoreOp>,
771771
StoreOpOfCollapseShapeOpFolder<memref::StoreOp>,
772-
SubViewOfSubViewFolder, NvgpuAsyncCopyOpSubViewOpFolder>(
772+
SubViewOfSubViewFolder, NVGPUAsyncCopyOpSubViewOpFolder>(
773773
patterns.getContext());
774774
}
775775

mlir/python/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -538,7 +538,7 @@ declare_mlir_python_extension(MLIRPythonExtension.Dialects.Quant.Pybind
538538
)
539539

540540
declare_mlir_python_extension(MLIRPythonExtension.Dialects.NVGPU.Pybind
541-
MODULE_NAME _mlirDialectsNvgpu
541+
MODULE_NAME _mlirDialectsNVGPU
542542
ADD_TO_PARENT MLIRPythonSources.Dialects.nvgpu
543543
ROOT_DIR "${PYTHON_SOURCE_DIR}"
544544
SOURCES

mlir/python/mlir/dialects/nvgpu.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44

55
from ._nvgpu_ops_gen import *
66
from ._nvgpu_enum_gen import *
7-
from .._mlir_libs._mlirDialectsNvgpu import *
7+
from .._mlir_libs._mlirDialectsNVGPU import *

mlir/test/lib/Dialect/NVGPU/TestNVGPUTransforms.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,9 @@ struct TestMmaSyncF32ToTF32Patterns
6868

6969
namespace mlir {
7070
namespace test {
71-
void registerTestNvgpuLowerings() {
71+
void registerTestNVGPULowerings() {
7272
PassRegistration<TestMmaSyncF32ToTF32Patterns>();
7373
}
7474

7575
} // namespace test
76-
} // namespace mlir
76+
} // namespace mlir

mlir/tools/mlir-opt/mlir-opt.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ void registerTestTransformDialectEraseSchedulePass();
143143
void registerTestWrittenToPass();
144144
void registerTestVectorLowerings();
145145
void registerTestVectorReductionToSPIRVDotProd();
146-
void registerTestNvgpuLowerings();
146+
void registerTestNVGPULowerings();
147147
#if MLIR_ENABLE_PDL_IN_PATTERNMATCH
148148
void registerTestDialectConversionPasses();
149149
void registerTestPDLByteCodePass();
@@ -270,7 +270,7 @@ void registerTestPasses() {
270270
mlir::test::registerTestTransformDialectEraseSchedulePass();
271271
mlir::test::registerTestVectorLowerings();
272272
mlir::test::registerTestVectorReductionToSPIRVDotProd();
273-
mlir::test::registerTestNvgpuLowerings();
273+
mlir::test::registerTestNVGPULowerings();
274274
mlir::test::registerTestWrittenToPass();
275275
#if MLIR_ENABLE_PDL_IN_PATTERNMATCH
276276
mlir::test::registerTestDialectConversionPasses();

0 commit comments

Comments
 (0)