Skip to content

Commit 7c77771

Browse files
committed
format
1 parent 9062182 commit 7c77771

File tree

3 files changed

+9
-6
lines changed

3 files changed

+9
-6
lines changed

llvm/lib/Analysis/DXILResource.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include "llvm/InitializePasses.h"
2222
#include "llvm/Support/FormatVariadic.h"
2323
#include <algorithm>
24-
#include "llvm/IR/DiagnosticInfo.h"
2524

2625
#define DEBUG_TYPE "dxil-resource"
2726

@@ -860,8 +859,9 @@ void DXILResourceCounterDirectionMap::populate(Module &M,
860859
}
861860
}
862861

863-
// An entry that is not in the map is considered unknown so its wasted overhead
864-
// and increased complexity to keep an entry explicitly marked unknown
862+
// An entry that is not in the map is considered unknown so its wasted
863+
// overhead and increased complexity to keep an entry explicitly marked
864+
// unknown
865865
const auto RemoveEnd = std::remove_if(
866866
CounterDirections.begin(), CounterDirections.end(), [](const auto &Item) {
867867
return Item.second == ResourceCounterDirection::Unknown;
@@ -885,7 +885,8 @@ void DXILResourceCounterDirectionMap::populate(Module &M,
885885
if (DuplicateEntry == CounterDirections.end())
886886
return;
887887

888-
StringRef Message = "RWStructuredBuffers may increment or decrement their counters, but not both.";
888+
StringRef Message = "RWStructuredBuffers may increment or decrement their "
889+
"counters, but not both.";
889890
M.getContext().diagnose(DiagnosticInfoGeneric(Message));
890891
}
891892

llvm/lib/Target/DirectX/DXILOpLowering.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,8 @@ class OpLowerer {
816816
PreservedAnalyses DXILOpLowering::run(Module &M, ModuleAnalysisManager &MAM) {
817817
DXILBindingMap &DBM = MAM.getResult<DXILResourceBindingAnalysis>(M);
818818
DXILResourceTypeMap &DRTM = MAM.getResult<DXILResourceTypeAnalysis>(M);
819-
DXILResourceCounterDirectionMap &DRCDM = MAM.getResult<DXILResourceCounterDirectionAnalysis>(M);
819+
DXILResourceCounterDirectionMap &DRCDM =
820+
MAM.getResult<DXILResourceCounterDirectionAnalysis>(M);
820821

821822
bool MadeChanges = OpLowerer(M, DBM, DRTM).lowerIntrinsics();
822823
if (!MadeChanges)

llvm/unittests/Target/DirectX/UniqueResourceFromUseTests.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,8 @@ declare void @b.func(target("dx.RawBuffer", float, 1, 0) %handle)
435435
continue;
436436
}
437437

438-
auto Dir = FName == "a.func" ? ResourceCounterDirection::Decrement : ResourceCounterDirection::Increment;
438+
auto Dir = FName == "a.func" ? ResourceCounterDirection::Decrement
439+
: ResourceCounterDirection::Increment;
439440

440441
for (const User *U : F.users()) {
441442
const CallInst *CI = cast<CallInst>(U);

0 commit comments

Comments
 (0)