This adds very basic support for hashing MachineBasicBlock
and MachineFunction, for use in MachineFunctionPass to
detect passes that modify the MachineFunction wrongly.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
Comment Actions
You're missing a lot of little fields that a pass could potentially change. e.g. block/function alignment, stack objects etc.
Comment Actions
Yes. The same is true of the IR level structural hashing that is used for the same purpose (D86589). I was hoping to start with something simple like this, and it can always be improved in the future.
Comment Actions
Can you add a TODO for these sorts of things? I think it's too easy to not notice them here