Shopify / seafoam

A tool for working with compiler graphs dumped by the GraalVM compiler
MIT License
126 stars 22 forks source link

Match up CFG architecture with Capstone architecture #20

Closed chrisseaton closed 3 years ago

chrisseaton commented 3 years ago

CFG files contain the architecture and word-size (just grep in them), but we currently assume they're always AMD64 and then hardcode this for Capstone.

Add a mapping from known CFG architectures and word-sizes (probably just containing AMD64 for now) to Capstone architectures and give an error if the CFG uses any architecture of word-size that we don't support.