Skip to content

Commit

Permalink
clang format
Browse files Browse the repository at this point in the history
  • Loading branch information
inbelic committed Nov 20, 2024
1 parent 084cdd0 commit 473f6df
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions llvm/utils/TableGen/DXILEmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -390,15 +390,16 @@ static void emitDXILAttributes(const RecordKeeper &Records, raw_ostream &OS) {
static void emitDXILProperties(const RecordKeeper &Records, raw_ostream &OS) {
// Generate their definitions
OS << "#ifdef DXIL_PROPERTY\n";
for (const Record *Prop: Records.getAllDerivedDefinitions("DXILProperty"))
for (const Record *Prop : Records.getAllDerivedDefinitions("DXILProperty"))
OS << "DXIL_PROPERTY(" << Prop->getName() << ")\n";
OS << "#undef DXIL_PROPERTY\n";
OS << "#endif\n\n";
}

static void emitDXILPropertyHelpers(const RecordKeeper &Records, raw_ostream &OS) {
static void emitDXILPropertyHelpers(const RecordKeeper &Records,
raw_ostream &OS) {
// Generate their helper functions
for (const Record *Prop: Records.getAllDerivedDefinitions("DXILProperty")) {
for (const Record *Prop : Records.getAllDerivedDefinitions("DXILProperty")) {
OS << "[[maybe_unused]]\n";
OS << "static bool has" << Prop->getName() << "(dxil::OpCode Op) {\n";
OS << " auto *OpCodeProp = getOpCodeProperty(Op);\n";
Expand Down

0 comments on commit 473f6df

Please sign in to comment.