Skip to content

Commit 8367a5c

Browse files
committed
[Review] Fix names
1 parent dccbf1e commit 8367a5c

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ class SPIRVEmitIntrinsics
236236

237237
Instruction *buildLogicalAccessChainFromGEP(GetElementPtrInst &GEP);
238238

239-
bool promoteEmbddedBitcodeMarker(Module &M) const;
239+
bool promoteEmbeddedBitcodeMarkear(Module &M) const;
240240

241241
public:
242242
static char ID;
@@ -3009,7 +3009,7 @@ void SPIRVEmitIntrinsics::parseFunDeclarations(Module &M) {
30093009
}
30103010
}
30113011

3012-
bool SPIRVEmitIntrinsics::promoteEmbddedBitcodeMarker(Module &M) const {
3012+
bool SPIRVEmitIntrinsics::promoteEmbeddedBitcodeMarkear(Module &M) const {
30133013
const SPIRVSubtarget *STI = TM->getSubtargetImpl();
30143014
if (STI->isShader())
30153015
return false;
@@ -3018,18 +3018,18 @@ bool SPIRVEmitIntrinsics::promoteEmbddedBitcodeMarker(Module &M) const {
30183018
if (!EmbeddedBitcode)
30193019
return false;
30203020

3021-
ArrayType *AT = cast<ArrayType>(EmbeddedBitcode->getValueType());
3022-
if (AT->getNumElements() != 0)
3021+
ArrayType *ArrTy = cast<ArrayType>(EmbeddedBitcode->getValueType());
3022+
if (ArrTy->getNumElements() != 0)
30233023
return false;
30243024

30253025
// When compiling with -fembed-bitcode=marker, LLVM generates a [0 x i8]
30263026
// zeroinitialized global variable containing the bitcode. This results in an
30273027
// assert outside of shaders. As a workaround, we replace this global with a
30283028
// zeroinitialized [1 x i8].
3029-
ArrayType *AT1 = ArrayType::get(AT->getElementType(), 1);
3030-
Constant *ZeroInit = Constant::getNullValue(AT1);
3029+
ArrayType *ArrTyOneElt = ArrayType::get(ArrTy->getElementType(), 1);
3030+
Constant *ZeroInit = Constant::getNullValue(ArrTyOneElt);
30313031
GlobalVariable *NewEmbeddedBitcode = new GlobalVariable(
3032-
AT1, EmbeddedBitcode->isConstant(), EmbeddedBitcode->getLinkage(),
3032+
ArrTyOneElt, EmbeddedBitcode->isConstant(), EmbeddedBitcode->getLinkage(),
30333033
ZeroInit, "", EmbeddedBitcode->getThreadLocalMode(),
30343034
EmbeddedBitcode->getAddressSpace(),
30353035
EmbeddedBitcode->isExternallyInitialized());
@@ -3045,7 +3045,7 @@ bool SPIRVEmitIntrinsics::promoteEmbddedBitcodeMarker(Module &M) const {
30453045
bool SPIRVEmitIntrinsics::runOnModule(Module &M) {
30463046
bool Changed = false;
30473047

3048-
Changed |= promoteEmbddedBitcodeMarker(M);
3048+
Changed |= promoteEmbeddedBitcodeMarkear(M);
30493049
parseFunDeclarations(M);
30503050
insertConstantsForFPFastMathDefault(M);
30513051

0 commit comments

Comments
 (0)