Skip to content

Conversation

@sebastiankreutzer
Copy link
Member

@sebastiankreutzer sebastiankreutzer commented Aug 22, 2025

This patch adds CaGe, the call graph generator plugin for LLVM developed by @TimHeldmann.

This version is slightly modified from the original project to fit in with the rest of the MetaCG project.
So far, this patch only contains functionality to register the pass and build the call graph.
It does not include any call graph embedding functionality or runtime library for now.

To make this project easily extendable for different use cases, the pass can register different CallGraphConsumers.
At the moment, the only available consumer is the FileExporter, which writes the call graph to a file.

I adopted the integration tests from CGC2, removing those that are either incompatible or irrelevant.
Tests can be run by executing ./runCaGeTests.sh in <build_dir>/tools/cage/test/.

@sebastiankreutzer sebastiankreutzer changed the title Draft: Add CaGe LLVM call graph generator Add CaGe LLVM call graph generator Jan 12, 2026
@sebastiankreutzer sebastiankreutzer marked this pull request as ready for review January 12, 2026 15:37
Copy link
Member

@pearzt pearzt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. (I did not review the tests.)

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