3 Commits

Author SHA1 Message Date
Anatoly Trosinenko
da315a3528
[BOLT] Refactor MCInstReference and move it to Core (NFC) (#155846)
Refactor MCInstReference class and move it from PAuth gadget scanner to
Core.

MCInstReference is a class representing a reference to a constant
instruction inside a parent entity - either inside a basic block (which
has a reference to its parent function) or directly inside a function
(when CFG information is not available).

This patch reapplies #138655 with a fix for iterator usage and multiple
minor issues fixed during the second round of review.
2025-09-30 12:46:04 +03:00
Anatoly Trosinenko
0ae0b1657d
Revert "[BOLT] Refactor MCInstReference and move it to Core (NFC)" (#155639)
Reverts llvm/llvm-project#138655.
2025-08-27 18:45:32 +03:00
Anatoly Trosinenko
fa5557f125
[BOLT] Refactor MCInstReference and move it to Core (NFC) (#138655)
Refactor MCInstReference class and move it from PAuth gadget scanner to
Core.

MCInstReference is a class representing a constant reference to an
instruction inside a parent entity - either inside a basic block (which
has a reference to its parent function) or directly inside a function
(when CFG information is not available).
2025-08-27 14:19:30 +03:00