This provides an easy way to map from instruction in dumpfile to a place where it's created or modified in the compiler (by using conditional breakpoints in debugger).
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Discussion in Discourse: https://discourse.llvm.org/t/adding-instruction-ids-in-debug-dumps/68188
Comment Actions
These data structures have been designed quite carefully with size in mind, so I am against making these debug-only additions. The change as-is is also not thread-safe.
Have you tried just attaching metadata to instructions instead?
Comment Actions
Right. I wonder if separate Cmake switch could alleviate this.
The change as-is is also not thread-safe.
That's true. What's worse, I'm afraid it will be inherently racy in parallel compilations.
Have you tried just attaching metadata to instructions instead?
I haven't, thanks for the suggestion.