Skip to content

Add CaGe LLVM call graph generator#82

Merged
sebastiankreutzer merged 37 commits intotudasc:develfrom
sebastiankreutzer:feat/cage
Jan 28, 2026
Merged

Add CaGe LLVM call graph generator#82
sebastiankreutzer merged 37 commits intotudasc:develfrom
sebastiankreutzer:feat/cage

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 force-pushed the feat/cage branch 7 times, most recently from ca75a03 to dae1168 Compare August 25, 2025 12:20
@sebastiankreutzer sebastiankreutzer force-pushed the feat/cage branch 5 times, most recently from 63b3ce4 to 567fbc2 Compare December 18, 2025 09:07
@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.)

@sebastiankreutzer sebastiankreutzer merged commit 5f410b0 into tudasc:devel Jan 28, 2026
3 checks passed
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.

3 participants