Skip to content

Commit 54128bb

Browse files
committed
Fix clang-format issues.
1 parent 8a11b97 commit 54128bb

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -984,16 +984,16 @@ static bool buildBarrierInst(const SPIRV::IncomingCall *Call, unsigned Opcode,
984984
}
985985

986986
/// Helper function for building extended bit operations.
987-
static bool buildExtendedBitOpsInst(const SPIRV::IncomingCall *Call, unsigned Opcode,
988-
MachineIRBuilder &MIRBuilder,
989-
SPIRVGlobalRegistry *GR) {
987+
static bool buildExtendedBitOpsInst(const SPIRV::IncomingCall *Call,
988+
unsigned Opcode,
989+
MachineIRBuilder &MIRBuilder,
990+
SPIRVGlobalRegistry *GR) {
990991
const SPIRV::DemangledBuiltin *Builtin = Call->Builtin;
991992
const auto *ST =
992993
static_cast<const SPIRVSubtarget *>(&MIRBuilder.getMF().getSubtarget());
993994
if ((Opcode == SPIRV::OpBitFieldInsert ||
994995
Opcode == SPIRV::OpBitFieldSExtract ||
995-
Opcode == SPIRV::OpBitFieldUExtract ||
996-
Opcode == SPIRV::OpBitReverse) &&
996+
Opcode == SPIRV::OpBitFieldUExtract || Opcode == SPIRV::OpBitReverse) &&
997997
!ST->canUseExtension(SPIRV::Extension::SPV_KHR_bit_instructions)) {
998998
std::string DiagMsg = std::string(Builtin->Name) +
999999
": the builtin requires the following SPIR-V "
@@ -1007,8 +1007,8 @@ static bool buildExtendedBitOpsInst(const SPIRV::IncomingCall *Call, unsigned Op
10071007

10081008
// Generate the instruction.
10091009
auto MIB = MIRBuilder.buildInstr(Opcode)
1010-
.addDef(Call->ReturnRegister)
1011-
.addUse(GR->getSPIRVTypeID(Call->ReturnType));
1010+
.addDef(Call->ReturnRegister)
1011+
.addUse(GR->getSPIRVTypeID(Call->ReturnType));
10121012
for (unsigned i = 0; i < Call->Arguments.size(); ++i)
10131013
MIB.addUse(Call->Arguments[i]);
10141014

@@ -2074,8 +2074,8 @@ static bool generateSpecConstantInst(const SPIRV::IncomingCall *Call,
20742074
}
20752075

20762076
static bool generateExtendedBitOpsInst(const SPIRV::IncomingCall *Call,
2077-
MachineIRBuilder &MIRBuilder,
2078-
SPIRVGlobalRegistry *GR) {
2077+
MachineIRBuilder &MIRBuilder,
2078+
SPIRVGlobalRegistry *GR) {
20792079
// Lookup the instruction opcode in the TableGen records.
20802080
const SPIRV::DemangledBuiltin *Builtin = Call->Builtin;
20812081
unsigned Opcode =

0 commit comments

Comments
 (0)