GaloisInc / llvm-pretty

An llvm pretty printer inspired by the haskell llvm binding
Other
28 stars 15 forks source link

Parse/print target triples #21

Closed robdockins closed 2 years ago

robdockins commented 6 years ago

Does llvm-pretty have the ability to represent target triples? A glance through the AST doesn't show any obvious place where that information is captured. It would be nice to be able to parse and print the target triple information. In particular, I'd like to be able to know the architecture the code was compiled for when reading bit code via llvm-pretty-bc-parser.

elliottt commented 6 years ago

It doesn't currently, but that would be an easy addition. You could implement it much the same way as data layout is now.

langston-barrett commented 5 years ago

I've started work on this, branch available here: https://github.com/siddharthist/llvm-pretty/tree/target-triple

langston-barrett commented 2 years ago

I've started working on this... again... https://github.com/langston-barrett/llvm-pretty/tree/lb/triple