Skip to content

Commit

Permalink
[FIRRTL] Debug header/footer in BBoxReader, NFC
Browse files Browse the repository at this point in the history
Add the standard debug header/footer to the `BlackBoxReader` pass.  This
is entirely cosmetic.

Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>
  • Loading branch information
seldridge committed Aug 22, 2024
1 parent 8278236 commit eef76ca
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/Dialect/FIRRTL/Transforms/BlackBoxReader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
#include "circt/Dialect/HW/HWAttributes.h"
#include "circt/Dialect/HW/HWDialect.h"
#include "circt/Dialect/SV/SVOps.h"
#include "circt/Support/Debug.h"
#include "circt/Support/Path.h"
#include "mlir/IR/Attributes.h"
#include "mlir/Pass/Pass.h"
Expand Down Expand Up @@ -156,6 +157,7 @@ struct BlackBoxReaderPass

/// Emit the annotated source code for black boxes in a circuit.
void BlackBoxReaderPass::runOnOperation() {
LLVM_DEBUG(debugPassHeader(this) << "\n");
CircuitOp circuitOp = getOperation();
CircuitNamespace ns(circuitOp);

Expand Down Expand Up @@ -326,6 +328,7 @@ void BlackBoxReaderPass::runOnOperation() {
// Clean up.
emittedFileMap.clear();
fileListFiles.clear();
LLVM_DEBUG(debugFooter() << "\n");
}

/// Run on an operation-annotation pair. The annotation need not be a black box
Expand Down

0 comments on commit eef76ca

Please sign in to comment.