Skip to content

Commit 334037d

Browse files
apply clang-format
1 parent 5193281 commit 334037d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

llvm/lib/Target/SPIRV/SPIRVBuiltins.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1387,7 +1387,8 @@ static bool generateSampleImageInst(const StringRef DemangledCall,
13871387
}
13881388
SPIRVType *Type = GR->getOrCreateSPIRVTypeByName(ReturnType, MIRBuilder);
13891389
if (!Type) {
1390-
std::string DiagMsg = "Unable to recognize SPIRV type name: " + ReturnType;
1390+
std::string DiagMsg =
1391+
"Unable to recognize SPIRV type name: " + ReturnType;
13911392
report_fatal_error(DiagMsg.c_str());
13921393
}
13931394
MRI->setRegClass(Call->Arguments[0], &SPIRV::IDRegClass);

llvm/lib/Target/SPIRV/SPIRVCallLowering.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -160,16 +160,15 @@ static SPIRVType *getArgSPIRVType(const Function &F, unsigned ArgIdx,
160160
SPIRVType *ResArgType = nullptr;
161161
if (MDString *MDKernelArgType = getOCLKernelArgType(F, ArgIdx)) {
162162
StringRef MDTypeStr = MDKernelArgType->getString();
163-
if (MDTypeStr.ends_with("*")) {
163+
if (MDTypeStr.ends_with("*"))
164164
ResArgType = GR->getOrCreateSPIRVTypeByName(
165165
MDTypeStr, MIRBuilder,
166166
addressSpaceToStorageClass(
167167
OriginalArgType->getPointerAddressSpace()));
168-
} else if (MDTypeStr.ends_with("_t")) {
168+
else if (MDTypeStr.ends_with("_t"))
169169
ResArgType = GR->getOrCreateSPIRVTypeByName(
170170
"opencl." + MDTypeStr.str(), MIRBuilder,
171171
SPIRV::StorageClass::Function, ArgAccessQual);
172-
}
173172
}
174173
return ResArgType ? ResArgType
175174
: GR->getOrCreateSPIRVType(OriginalArgType, MIRBuilder,

0 commit comments

Comments
 (0)