[llvm-commits] [PATCH] YAML I/O

Nick Kledzik kledzik at apple.com
Mon Aug 6 12:17:39 PDT 2012


Attached is a patch for review which implements the Yaml I/O library I proposed on llvm-dev July 25th.  

-------------- next part --------------
A non-text attachment was scrubbed...
Name: yamlio.patch
Type: application/octet-stream
Size: 69623 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120806/c771c628/attachment.obj>
-------------- next part --------------


The patch includes the implementation, test cases, and documentation. 

I've included a PDF of the documentation, so you don't have to install the patch and run sphinx to read it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: YAMLIO.pdf
Type: application/pdf
Size: 144445 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120806/c771c628/attachment.pdf>
-------------- next part --------------


There are probably more aspects of yaml we can support in YAML I/O, but the current patch is enough to support my needs for encoding mach-o as yaml for lld test cases.  

I was initially planning on just adding this code to lld, but I've had two requests to push it down into llvm.

Again, here are examples of the mach-o schema and an example mach-o document:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: example.yaml
Type: application/octet-stream
Size: 2987 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120806/c771c628/attachment-0001.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ObjectIO.h
Type: application/octet-stream
Size: 6124 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120806/c771c628/attachment-0002.obj>
-------------- next part --------------




-Nick





More information about the llvm-commits mailing list