Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1482)

Issue 199072: [PATCH] Move --march, --mcpu, and --mattr to lli.cpp (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
14 years, 3 months ago by Jeffrey Yasskin
Modified:
14 years, 2 months ago
Reviewers:
llvm-commits
Base URL:
https://llvm.org/svn/llvm-project/llvm/trunk/
Visibility:
Public.

Description

Both llc.cpp and JIT/TargetSelect.cpp defined these flags, meaning that when I link all of LLVM's libraries into a single shared library, llc crashes on startup with duplicate flag definitions. This patch moves the flag definitions into lli.cpp and passes them through the EngineBuilder into JIT::selectTarget().

Patch Set 1 #

Patch Set 2 : Moved the flags down to lli instead. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+93 lines, -37 lines) Patch
M include/llvm/ExecutionEngine/ExecutionEngine.h View 4 chunks +34 lines, -6 lines 0 comments Download
M lib/ExecutionEngine/ExecutionEngine.cpp View 2 chunks +12 lines, -7 lines 0 comments Download
M lib/ExecutionEngine/JIT/JIT.h View 2 chunks +10 lines, -3 lines 0 comments Download
M lib/ExecutionEngine/JIT/JIT.cpp View 2 chunks +13 lines, -4 lines 0 comments Download
M lib/ExecutionEngine/JIT/TargetSelect.cpp View 1 1 chunk +5 lines, -17 lines 0 comments Download
M tools/lli/lli.cpp View 2 chunks +19 lines, -0 lines 0 comments Download

Messages

Total messages: 9
Jeffrey Yasskin
Please take a look. The current patch is at http://codereview.appspot.com/download/issue199072_1.diff
14 years, 3 months ago (2010-02-03 03:03:28 UTC) #1
baldrick_free.fr
Hi, > Please review this at http://codereview.appspot.com/199072/show what is the advantage of using this codereview ...
14 years, 3 months ago (2010-02-03 07:33:25 UTC) #2
Jeffrey Yasskin (google)
On Tue, Feb 2, 2010 at 11:33 PM, Duncan Sands <baldrick@free.fr> wrote: > Hi, > ...
14 years, 3 months ago (2010-02-03 16:18:17 UTC) #3
clattner_apple.com
On Feb 2, 2010, at 7:03 PM, jyasskin@gmail.com wrote: > Reviewers: llvm-commits_cs.uiuc.edu, > > Message: ...
14 years, 3 months ago (2010-02-04 07:25:56 UTC) #4
Jeffrey Yasskin (google)
On Wed, Feb 3, 2010 at 11:25 PM, Chris Lattner <clattner@apple.com> wrote: > > On ...
14 years, 3 months ago (2010-02-04 23:31:30 UTC) #5
daniel_zuster.org
On Thu, Feb 4, 2010 at 3:31 PM, Jeffrey Yasskin <jyasskin@google.com> wrote: > On Wed, ...
14 years, 2 months ago (2010-02-05 03:32:41 UTC) #6
Jeffrey Yasskin (google)
On Thu, Feb 4, 2010 at 7:32 PM, Daniel Dunbar <daniel@zuster.org> wrote: > On Thu, ...
14 years, 2 months ago (2010-02-05 04:29:28 UTC) #7
daniel_zuster.org
On Thu, Feb 4, 2010 at 8:29 PM, Jeffrey Yasskin <jyasskin@google.com> wrote: > On Thu, ...
14 years, 2 months ago (2010-02-05 07:05:11 UTC) #8
Jeffrey Yasskin (google)
14 years, 2 months ago (2010-02-05 16:23:04 UTC) #9
On Thu, Feb 4, 2010 at 11:05 PM, Daniel Dunbar <daniel@zuster.org> wrote:
> On Thu, Feb 4, 2010 at 8:29 PM, Jeffrey Yasskin <jyasskin@google.com> wrote:
>> On Thu, Feb 4, 2010 at 7:32 PM, Daniel Dunbar <daniel@zuster.org> wrote:
>>> On Thu, Feb 4, 2010 at 3:31 PM, Jeffrey Yasskin <jyasskin@google.com> wrote:
>>>> Sure. Done at http://codereview.appspot.com/download/issue199072_2002.diff
>>>> or http://codereview.appspot.com/199072.
>>>
>>> Much better, we definitely do not want to increase the visibility of
>>> the backend's command line options.
>>>
>>> Would it make sense to have optional arguments for these -- most
>>> simple clients aren't going to care to pass them, and it keeps source
>>> compatibility.
>>
>> That's what the EngineBuilder is for. Instead of making people
>> remember the order of 10 different parameters, and pass the defaults
>> for earlier ones if they want to set a later one, they create an
>> EngineBuilder, set exactly the parameters they want, and then call
>> create().
>
> Ok.

Thanks! Committed as r95390.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b