Skip to content

Commit 90c5fb1

Browse files
committed
clang-format
1 parent 9f5564c commit 90c5fb1

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

llvm/lib/Analysis/DXILResource.cpp

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -211,13 +211,9 @@ ResourceInfo::ResourceInfo(uint32_t RecordID, uint32_t Space,
211211

212212
bool ResourceInfo::isUAV() const { return RC == ResourceClass::UAV; }
213213

214-
bool ResourceInfo::isCBuffer() const {
215-
return RC == ResourceClass::CBuffer;
216-
}
214+
bool ResourceInfo::isCBuffer() const { return RC == ResourceClass::CBuffer; }
217215

218-
bool ResourceInfo::isSampler() const {
219-
return RC == ResourceClass::Sampler;
220-
}
216+
bool ResourceInfo::isSampler() const { return RC == ResourceClass::Sampler; }
221217

222218
bool ResourceInfo::isStruct() const {
223219
return Kind == ResourceKind::StructuredBuffer;
@@ -309,8 +305,7 @@ dxil::SamplerType ResourceInfo::getSamplerType() const {
309305
return cast<SamplerExtType>(HandleTy)->getSamplerType();
310306
}
311307

312-
ResourceInfo::StructInfo
313-
ResourceInfo::getStruct(const DataLayout &DL) const {
308+
ResourceInfo::StructInfo ResourceInfo::getStruct(const DataLayout &DL) const {
314309
assert(isStruct() && "Not a Struct");
315310

316311
Type *ElTy = cast<RawBufferExtType>(HandleTy)->getResourceType();
@@ -428,8 +423,7 @@ MDTuple *ResourceInfo::getAsMetadata(Module &M) const {
428423
// All SRVs include sample count in the metadata, but it's only meaningful
429424
// for multi-sampled textured. Also, UAVs can be multisampled in SM6.7+,
430425
// but this just isn't reflected in the metadata at all.
431-
uint32_t SampleCount =
432-
isMultiSample() ? getMultiSampleCount() : 0;
426+
uint32_t SampleCount = isMultiSample() ? getMultiSampleCount() : 0;
433427
MDVals.push_back(getIntMD(SampleCount));
434428
}
435429

@@ -459,8 +453,7 @@ std::pair<uint32_t, uint32_t> ResourceInfo::getAnnotateProps(Module &M) const {
459453
uint32_t ResourceKind = llvm::to_underlying(getResourceKind());
460454
uint32_t AlignLog2 = isStruct() ? getStruct(DL).AlignLog2 : 0;
461455
bool IsUAV = isUAV();
462-
ResourceInfo::UAVInfo UAVFlags =
463-
IsUAV ? getUAV() : ResourceInfo::UAVInfo{};
456+
ResourceInfo::UAVInfo UAVFlags = IsUAV ? getUAV() : ResourceInfo::UAVInfo{};
464457
bool IsROV = IsUAV && UAVFlags.IsROV;
465458
bool IsGloballyCoherent = IsUAV && UAVFlags.GloballyCoherent;
466459
uint8_t SamplerCmpOrHasCounter = 0;

0 commit comments

Comments
 (0)