summaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/KCFI.cpp
AgeCommit message (Collapse)Author
2024-11-12[CodeGen] Remove unused includes (NFC) (#115996)Kazu Hirata
Identified with misc-include-cleaner.
2024-07-20CodeGen: Use IR function to query Module instead of MachineModuleInfo (#99755)Matt Arsenault
2024-06-28[IR] Don't include Module.h in Analysis.h (NFC) (#97023)Nikita Popov
Replace it with a forward declaration instead. Analysis.h is pulled in by all passes, but not all passes need to access the module.
2023-05-09[KCFI] Expand the KCFI term in comments (NFC)Sami Tolvanen
2023-05-09[CodeGen][KCFI] Move cfi-type lowering to TargetLoweringSami Tolvanen
KCFI machine function passes transform indirect calls with a cfi-type attribute into architecture-specific type checks bundled together with the calls. Instead of having a separate pass for each architecture, add a generic machine function pass for KCFI and move the architecture-specific code that emits the actual check to TargetLowering. This avoids unnecessary duplication and makes it easier to add KCFI support to other architectures. Reviewed By: nickdesaulniers Differential Revision: https://reviews.llvm.org/D149915