[llvm] [NFC][SPIRV] fix missing uppercase for var name (PR #67438)

Nathan Gauër via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 26 07:59:04 PDT 2023


https://github.com/Keenuts created https://github.com/llvm/llvm-project/pull/67438

Typo fix.

>From 7a413f23c3a65b269a44fc015cc32496d424b92d Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Nathan=20Gau=C3=ABr?= <brioche at google.com>
Date: Tue, 26 Sep 2023 16:57:40 +0200
Subject: [PATCH] [NFC][SPIRV] fix missing uppercase for var name
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Signed-off-by: Nathan Gauër <brioche at google.com>
---
 llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp b/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
index 028258d73a3e9cc..035989f2fe571b2 100644
--- a/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
+++ b/llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
@@ -1299,15 +1299,15 @@ bool SPIRVInstructionSelector::selectExtractElt(Register ResVReg,
 bool SPIRVInstructionSelector::selectGEP(Register ResVReg,
                                          const SPIRVType *ResType,
                                          MachineInstr &I) const {
-  const bool isGEPInBounds = I.getOperand(2).getImm();
+  const bool IsGEPInBounds = I.getOperand(2).getImm();
 
   // OpAccessChain could be used for OpenCL, but the SPIRV-LLVM Translator only
   // relies on PtrAccessChain, so we'll try not to deviate. For Vulkan however,
   // we have to use Op[InBounds]AccessChain.
   const unsigned Opcode = STI.isVulkanEnv()
-                              ? (isGEPInBounds ? SPIRV::OpInBoundsAccessChain
+                              ? (IsGEPInBounds ? SPIRV::OpInBoundsAccessChain
                                                : SPIRV::OpAccessChain)
-                              : (isGEPInBounds ? SPIRV::OpInBoundsPtrAccessChain
+                              : (IsGEPInBounds ? SPIRV::OpInBoundsPtrAccessChain
                                                : SPIRV::OpPtrAccessChain);
 
   auto Res = BuildMI(*I.getParent(), I, I.getDebugLoc(), TII.get(Opcode))



More information about the llvm-commits mailing list