Installing tbgen with llvm by default.

Hi,

Would it be possible to set tbgen to be installed with llvm? For our project http://llvm.org/ProjectsWithLLVM/#tta-tce it would be very helpful, because our tools generate compiler backend plugins in the fly for each customized processor and plugin generation needs tbgen for handling td files.

Because of tbgen not beeing distributed, our users cannot use llvm from their favorite distribution packages, but they have to have llvm sources as well to be able to use our tools. Basically we have workaround where we copy tbgen sources of each supported version of llvm to our project tree and write compile rules and install it with our project, which is a bit painful.

Mikael Lepistö

Hi,

Would it be possible to set tbgen to be installed with llvm? For our project http://llvm.org/ProjectsWithLLVM/#tta-tce it would be very helpful, because our tools generate compiler backend plugins in the fly for each customized processor and plugin generation needs tbgen for handling td files.

Sure, would you care to prepare a patch?

-Chris

Chris Lattner wrote:

Hi,

Would it be possible to set tbgen to be installed with llvm? For our project The LLVM Compiler Infrastructure Project it would be very helpful, because our tools generate compiler backend plugins in the fly for each customized processor and plugin generation needs tbgen for handling td files.

Sure, would you care to prepare a patch?

-Chris

Great!

Hope that this patch will do. I removed util dir from install filter-out list, added NO_INSTALL = 1 to googletest Makefile and removed NO_INSTALL define from tblgen.

Mikael Lepistö

tblgen_install.patch (1.16 KB)

Thanks, applied here:
http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20090504/077258.html

-Chris