From: Mehdi Amini Date: Thu, 6 Oct 2022 18:58:57 +0000 (+0000) Subject: Apply clang-tidy fixes for readability-identifier-naming in GPUTransformOps.cpp ... X-Git-Tag: upstream/17.0.6~30949 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5fbec2dfbb17fa12eb4bbcc6ed1cdab4b98c658b;p=platform%2Fupstream%2Fllvm.git Apply clang-tidy fixes for readability-identifier-naming in GPUTransformOps.cpp (NFC) --- diff --git a/mlir/lib/Dialect/GPU/TransformOps/GPUTransformOps.cpp b/mlir/lib/Dialect/GPU/TransformOps/GPUTransformOps.cpp index 54f0573..92b0b5e 100644 --- a/mlir/lib/Dialect/GPU/TransformOps/GPUTransformOps.cpp +++ b/mlir/lib/Dialect/GPU/TransformOps/GPUTransformOps.cpp @@ -41,25 +41,25 @@ checkGpuLimits(TransformOpInterface transformOp, Optional gridDimX, Optional blockDimX, Optional blockDimY, Optional blockDimZ) { - static constexpr int max_total_blockdim = 1024; - static constexpr int max_blockdimx = 1024; - static constexpr int max_blockdimy = 1024; - static constexpr int max_blockdimz = 64; - static constexpr int max_total_griddim = 2147483647; - static constexpr int max_griddimx = 2147483647; - static constexpr int max_griddimy = 65535; - static constexpr int max_griddimz = 65535; + static constexpr int maxTotalBlockdim = 1024; + static constexpr int maxBlockdimx = 1024; + static constexpr int maxBlockdimy = 1024; + static constexpr int maxBlockdimz = 64; + static constexpr int maxTotalGriddim = 2147483647; + static constexpr int maxGriddimx = 2147483647; + static constexpr int maxGriddimy = 65535; + static constexpr int maxGriddimz = 65535; if ((blockDimX.value_or(1) * blockDimY.value_or(1) * blockDimZ.value_or(1)) > - max_total_blockdim || + maxTotalBlockdim || (gridDimX.value_or(1) * gridDimY.value_or(1) * gridDimZ.value_or(1)) > - max_total_griddim || - blockDimX.value_or(1) > max_blockdimx || - blockDimY.value_or(1) > max_blockdimy || - blockDimZ.value_or(1) > max_blockdimz || - gridDimY.value_or(1) > max_griddimy || - gridDimZ.value_or(1) > max_griddimz || - gridDimX.value_or(1) > max_griddimx) { + maxTotalGriddim || + blockDimX.value_or(1) > maxBlockdimx || + blockDimY.value_or(1) > maxBlockdimy || + blockDimZ.value_or(1) > maxBlockdimz || + gridDimY.value_or(1) > maxGriddimy || + gridDimZ.value_or(1) > maxGriddimz || + gridDimX.value_or(1) > maxGriddimx) { return transformOp.emitSilenceableError() << "Trying to launch a GPU kernel with gridDim = (" << gridDimX.value_or(1) << ", " << gridDimY.value_or(1) << ", "