Skip to content

Commit

Permalink
[FIRRTL][NFC] Emitter clang formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianschuiki committed Nov 14, 2024
1 parent d903dfd commit 3fb2997
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/Dialect/FIRRTL/Export/FIREmitter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ struct Emitter {
SymbolTable symbolTable;
hw::InnerSymbolTableCollection istc;
hw::InnerRefNamespace irn{symbolTable, istc};
SymInfos(Operation *op) : symbolTable(op), istc(op){};
SymInfos(Operation *op) : symbolTable(op), istc(op) {};
};
std::optional<std::reference_wrapper<SymInfos>> symInfos;

Expand Down Expand Up @@ -855,8 +855,7 @@ void Emitter::emitStatement(ConnectOp op) {
} else {
auto emitLHS = [&]() { emitExpression(op.getDest()); };
if (op.getSrc().getDefiningOp<InvalidValueOp>()) {
emitAssignLike(
emitLHS, [&]() { ps << "invalid"; }, PPExtString("is"));
emitAssignLike(emitLHS, [&]() { ps << "invalid"; }, PPExtString("is"));
} else {
emitAssignLike(
emitLHS, [&]() { emitExpression(op.getSrc()); }, PPExtString("<="));
Expand All @@ -882,8 +881,7 @@ void Emitter::emitStatement(MatchingConnectOp op) {
} else {
auto emitLHS = [&]() { emitExpression(op.getDest()); };
if (op.getSrc().getDefiningOp<InvalidValueOp>()) {
emitAssignLike(
emitLHS, [&]() { ps << "invalid"; }, PPExtString("is"));
emitAssignLike(emitLHS, [&]() { ps << "invalid"; }, PPExtString("is"));
} else {
emitAssignLike(
emitLHS, [&]() { emitExpression(op.getSrc()); }, PPExtString("<="));
Expand Down

0 comments on commit 3fb2997

Please sign in to comment.