-
Notifications
You must be signed in to change notification settings - Fork 286
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ExportVerilog] Add verilog debug locations to output MLIR (#6092)
Use the PrettyPrinter CallbackToken API, to record print events and store the verilog output locations for each operation. Record the print begin and end location of each op. This has a side-effect of updating the IR, location attribute of the op is updated to include the verilog location range. `FusedLoc` is used to record the location ranges and each op can correspond to multiple verilog locations. This feature is disabled by default under an emission flag `emitVerilogLocations`.
- Loading branch information
Showing
6 changed files
with
507 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.