[PATCH] D133646: Add a utility for converting between different types of remarks

Francis Visoiu Mistrih via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 10 17:15:41 PDT 2022


thegameg added a comment.

In D133646#3782500 <https://reviews.llvm.org/D133646#3782500>, @paquette wrote:

> In D133646#3782446 <https://reviews.llvm.org/D133646#3782446>, @thegameg wrote:
>
>> One suggestion would be to have a `convert` subcommand that takes `bitstream2yaml` or `yaml2bitstream`, assuming this tool will be extended to do more (for example, one thing I want to add is `extract` from a mach-o object file). I don't have strong opinions though so if everyone is fine with this I'm also fine.
>
> What would this use-case look like in the (proposed) UI?



  $ llvm-remarkutil -convert bitstream2yaml a.opt.bitstream -o a.opt.yaml
  $ llvm-remarkutil -convert yaml2bitstream a.opt.bitstream -o a.opt.yaml
  $ llvm-remarkutil -extract a.o -o a.opt.bitstream`

is what I had in mind. Maybe having `-input-format=bitstream -output-format=yaml` is better for other use cases?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D133646/new/

https://reviews.llvm.org/D133646



More information about the llvm-commits mailing list