[llvm] 7658688 - [NFC][SPIRV] fix missing uppercase for var name (#67438)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 27 09:31:02 PDT 2023
Author: Nathan Gauër
Date: 2023-09-27T18:30:57+02:00
New Revision: 7658688c43a5c83bf5d4f6d4cec29d6c27b856e3
URL: https://github.com/llvm/llvm-project/commit/7658688c43a5c83bf5d4f6d4cec29d6c27b856e3
DIFF: https://github.com/llvm/llvm-project/commit/7658688c43a5c83bf5d4f6d4cec29d6c27b856e3.diff
LOG: [NFC][SPIRV] fix missing uppercase for var name (#67438)
Typo fix.
Signed-off-by: Nathan Gauër <brioche at google.com>
Added:
Modified:
llvm/lib/Target/SPIRV/SPIRVInstructionSelector.cpp
Removed:
################################################################################
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