Skip to content

Commit dd48034

Browse files
committed
clang format
1 parent 898854e commit dd48034

File tree

2 files changed

+13
-8
lines changed

2 files changed

+13
-8
lines changed

llvm/lib/Target/DirectX/DXILShaderFlags.cpp

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
///
1212
//===----------------------------------------------------------------------===//
1313

14-
#include "DXILConstants.h"
1514
#include "DXILShaderFlags.h"
15+
#include "DXILConstants.h"
1616
#include "DirectX.h"
1717
#include "llvm/ADT/SCCIterator.h"
1818
#include "llvm/ADT/SmallVector.h"
@@ -34,17 +34,20 @@ using namespace llvm::dxil;
3434
static dxil::Properties getOpCodeProperties(dxil::OpCode OpCode) {
3535
dxil::Properties Props;
3636
switch (OpCode) {
37-
#define DXIL_OP_PROPERTIES(OpCode, ...) \
38-
case OpCode: Props = dxil::Properties{__VA_ARGS__}; break;
37+
#define DXIL_OP_PROPERTIES(OpCode, ...) \
38+
case OpCode: \
39+
Props = dxil::Properties{__VA_ARGS__}; \
40+
break;
3941
#include "DXILOperation.inc"
4042
}
4143
return Props;
4244
}
4345

4446
static bool checkWaveOps(Intrinsic::ID IID) {
4547
switch (IID) {
46-
#define DXIL_OP_INTRINSIC(OpCode, IntrinsicID, ...) \
47-
case IntrinsicID: return getOpCodeProperties(OpCode).IsWave;
48+
#define DXIL_OP_INTRINSIC(OpCode, IntrinsicID, ...) \
49+
case IntrinsicID: \
50+
return getOpCodeProperties(OpCode).IsWave;
4851
#include "DXILOperation.inc"
4952
}
5053
return false;

llvm/utils/TableGen/DXILEmitter.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -380,15 +380,17 @@ static bool containsRec(ArrayRef<const Record *> Recs, const Record *Rec) {
380380
return false;
381381
}
382382

383-
// Iterate through AllRecords and output 'true' if there is a Rec with the same name in
384-
// CurRecords, output all others as 'false' to create a boolean table.
383+
// Iterate through AllRecords and output 'true' if there is a Rec with the same
384+
// name in CurRecords, output all others as 'false' to create a boolean table.
385385
// Eg)
386386
// In:
387387
// CurRecords->getName() = {"Cat"}
388388
// DefinedRecords->getName() = {"Dog", "Cat", "Cow"}
389389
// Out:
390390
// false, true, false
391-
static void emitBoolTable(ArrayRef<const Record *> CurRecords, ArrayRef<const Record *> AllRecords, raw_ostream &OS) {
391+
static void emitBoolTable(ArrayRef<const Record *> CurRecords,
392+
ArrayRef<const Record *> AllRecords,
393+
raw_ostream &OS) {
392394
for (const Record *Rec : AllRecords) {
393395
std::string HasRec = ", false";
394396
if (containsRec(CurRecords, Rec))

0 commit comments

Comments
 (0)