[llvm-commits] [PATCH] a switch to allow using Bugpoint with an external execution command

Pekka Jääskeläinen pekka.jaaskelainen at tut.fi
Tue Apr 22 08:39:15 PDT 2008


Hello,

Here is a simple addition to the Bugpoint tool which enables
to use it in a cross compiler environment. It adds two switches
which can be used to define a custom "execution command" for the
produced bitcode.

In our case we use LLVM as a static compiler in a customizable processor
design platform (http://tce.cs.tut.fi), thus the LLVM generated bitcodes
cannot be run natively, but with a retargetable instruction set
simulator after having scheduled for the target's resources.

This modification allowed us to track a bug in our code generator which
happened only with a certain LLVM optimization.

It would be nice to have this feature merged in trunk so we don't
have to have our separate branch of Bugpoint here just for this
feature. I suspect this feature is useful for others using LLVM as
a cross compiling environment.

The patch attached.

Best regards,
-- 
Pekka
-------------- next part --------------
A non-text attachment was scrubbed...
Name: llvm-bugpoint-custom-execution-command.patch
Type: text/x-patch
Size: 6953 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20080422/180422b5/attachment.bin>


More information about the llvm-commits mailing list