Skip to content

Conversation

shkoo
Copy link
Contributor

@shkoo shkoo commented Apr 15, 2025

  • Overhaul EDSL location handling; we now generate mlir Locations directly instead of keeping our own SourceLoc structure, and it's relatively easy to add additional context to component construction using ScopedSourceLoc.

  • Expand --op-stats flag to work on gen_predicates; this outputs ...-opstats.txt files in the output directory for each predicate processed.

  • Add --op-stats-flat-cost flag to count each instruction the same. (This is still not the same as the number of cycles in the ZKR, since the statistics are collected before encoding)

  • Added a bunch more source annotations to get better granularity for recursion predicates.

@github-actions github-actions bot changed the title Add circuit location statistics for recursion predicates ZIR-363: Add circuit location statistics for recursion predicates Apr 15, 2025
@shkoo shkoo force-pushed the nils/predicate-op-stats branch from 15c5a81 to 9548a2b Compare April 15, 2025 23:17
@shkoo shkoo marked this pull request as ready for review April 15, 2025 23:22
@shkoo shkoo requested a review from jacobdweightman April 15, 2025 23:22
@shkoo shkoo force-pushed the nils/predicate-op-stats branch 3 times, most recently from 2cf6a48 to 9b67fb5 Compare April 16, 2025 00:56
* Overhaul EDSL location handling; we now generate mlir Locations directly instead of keeping our own SourceLoc structure, and it's relatively easy to add additional context to component construction using ScopedSourceLoc.

* Expand --op-stats flag to work on `gen_predicates`; this outputs `...-opstats.txt` files in the output directory for each predicate processed.

* --op-stats on `gen_predicates` also outputs encoded cycle counts in `...-encoded-cycles.txt`

* Added a bunch more source annotations to get better granularity for recursion predicates.
@shkoo shkoo force-pushed the nils/predicate-op-stats branch from 9b67fb5 to b8170f0 Compare April 16, 2025 02:56
@shkoo shkoo force-pushed the nils/predicate-op-stats branch from a764021 to 9b7da70 Compare April 16, 2025 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants