[LLVMdev] [PATCH] Addition to TableGen for dumping intrinsics as XML

Peter Housel housel at acm.org
Thu Jul 15 08:17:37 PDT 2010


The LLVM libraries provide the llvm::Intrinsic::getDeclaration() function, which can provide a standard external declaration for any of the (currently) 762 defined LLVM intrinsics, both for ordinary intrinsics and for overrideable intrinsics with supplied parameter types. Clients that do not link with the LLVM libraries (such as the Open Dylan compiler, which has its own IR and its own bitcode output) do not have access to this facility, however.

In order to make intrinsics information available, the enclosed patch adds a command-line flag which causes TableGen to dump all of the information obtained from parsing Intrinsics.td into an XML output file. This output can then be read by clients or transformed into code or tables using (say) an XSLT script.

The current output of the tool is also enclosed as a sample.

-Peter-
-------------- next part --------------
A non-text attachment was scrubbed...
Name: xmlintrinsic.diff
Type: application/octet-stream
Size: 9887 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100715/5c1b5c9d/attachment.obj>
-------------- next part --------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Intrinsics.xml
Type: application/xml
Size: 327295 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100715/5c1b5c9d/attachment.xml>


More information about the llvm-dev mailing list