@@ -984,16 +984,16 @@ static bool buildBarrierInst(const SPIRV::IncomingCall *Call, unsigned Opcode,
984
984
}
985
985
986
986
// / 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) {
990
991
const SPIRV::DemangledBuiltin *Builtin = Call->Builtin ;
991
992
const auto *ST =
992
993
static_cast <const SPIRVSubtarget *>(&MIRBuilder.getMF ().getSubtarget ());
993
994
if ((Opcode == SPIRV::OpBitFieldInsert ||
994
995
Opcode == SPIRV::OpBitFieldSExtract ||
995
- Opcode == SPIRV::OpBitFieldUExtract ||
996
- Opcode == SPIRV::OpBitReverse) &&
996
+ Opcode == SPIRV::OpBitFieldUExtract || Opcode == SPIRV::OpBitReverse) &&
997
997
!ST->canUseExtension (SPIRV::Extension::SPV_KHR_bit_instructions)) {
998
998
std::string DiagMsg = std::string (Builtin->Name ) +
999
999
" : the builtin requires the following SPIR-V "
@@ -1007,8 +1007,8 @@ static bool buildExtendedBitOpsInst(const SPIRV::IncomingCall *Call, unsigned Op
1007
1007
1008
1008
// Generate the instruction.
1009
1009
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 ));
1012
1012
for (unsigned i = 0 ; i < Call->Arguments .size (); ++i)
1013
1013
MIB.addUse (Call->Arguments [i]);
1014
1014
@@ -2074,8 +2074,8 @@ static bool generateSpecConstantInst(const SPIRV::IncomingCall *Call,
2074
2074
}
2075
2075
2076
2076
static bool generateExtendedBitOpsInst (const SPIRV::IncomingCall *Call,
2077
- MachineIRBuilder &MIRBuilder,
2078
- SPIRVGlobalRegistry *GR) {
2077
+ MachineIRBuilder &MIRBuilder,
2078
+ SPIRVGlobalRegistry *GR) {
2079
2079
// Lookup the instruction opcode in the TableGen records.
2080
2080
const SPIRV::DemangledBuiltin *Builtin = Call->Builtin ;
2081
2081
unsigned Opcode =
0 commit comments