[llvm-commits] [PATCH] Allow "opt" to run without target data

Kenneth Uildriks kennethuil at gmail.com
Wed Oct 21 14:33:01 PDT 2009


On Wed, Oct 21, 2009 at 4:31 PM, Kenneth Uildriks <kennethuil at gmail.com> wrote:
> Currently, there is no way to prevent "opt" from putting in default
> target data layout if the Module has none, or to supply an alternate
> target data layout.  The default target data layout is bogus on most
> platforms.
>
> This patch adds the following command-line options:
>
> -default-data-layout=<layout-string> - data layout string to use if
> not specified by module
> -no-default-data-layout - no data layout assumptions unless module
> specifies data layout.
>
> The -no-default-data-layout prevents a TargetData pass from being
> added to opt's PassManager and (theoretically) prevents platform data
> layout dependent optimization from being applied.  I think this should
> eventually be the default, but setting it to the default might break
> existing users and test scripts.  For now, if neither option is
> supplied, opt's behavior will remain unchanged from the current
> (trunk) version.
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: opt.patch
Type: text/x-patch
Size: 1633 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20091021/858d1c25/attachment.bin>


More information about the llvm-commits mailing list