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

Peter S. Housel housel at acm.org
Thu Jul 29 00:02:31 PDT 2010

At Thu, 22 Jul 2010 07:39:36 -0700, Peter S. Housel wrote:
> At Thu, 15 Jul 2010 08:17:37 -0700, Peter Housel wrote:
> > 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.
> Ping?

The enclosed patch adds a FileCheck test for the feature.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: tg.diff
Type: application/octet-stream
Size: 12397 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100729/05407e4b/attachment.obj>

More information about the llvm-dev mailing list