Displaying 6 results from an estimated 6 matches for "optionpreprocessor".
2009 Nov 19
0
[LLVMdev] More questions on CompilerDriver.
...is on
top of TableGen...
> 2. Is there anyway to call a C++ hook from inside actions?
> for example
> (actions (case
> (not_empty "Wl,"), (append_cmd "$CALL(Myhook)" )))
Not yet, this is something I'm working on right now.
BTW, I've implemented the OptionPreprocessor feature that we discussed
some time ago. See the documentation for details.
--
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments
2009 Nov 19
3
[LLVMdev] More questions on CompilerDriver.
Hi Mikhail,
I was trying to figure out how to do the following in compiler driver.
1. mcc16 driver has a -p <device_name> option. Now from this
device_name I want to be able to construct a file name like
"device_name.o" and pass that to the linker. Unpack_values "p" gives me
the device_name, but I do not know how to add ".o" suffix to it.
something like:
2009 Dec 08
2
[LLVMdev] More questions on CompilerDriver.
...example
> > (actions (case
> > (not_empty "Wl,"), (append_cmd "$CALL(Myhook)" )))
>
> Not yet, this is something I'm working on right now.
>
Hi Mikhail,
Did you get a chance to do something about this?
>
>
> BTW, I've implemented the OptionPreprocessor feature that we discussed
> some time ago. See the documentation for details.
>
is it a good idea to include something called "set_option"? For example
if none of O0, O1, O2 or O3 are specified on the command line, We can
just make O2 as default by using the set_option.
- Sanjiv...
2009 Sep 10
0
[LLVMdev] Fwd: tblgen bug in handling case , switch_on
...; option_validator ("O0", "O1", "O2"), (choose_last)
> OR
> option_validator ("O0", "O1", "O2"), (error "Only one of -O0, -O1, or -O2
> are allowed).
Good idea. I propose adding something along these lines:
def Preprocess : OptionPreprocessor <[
(squash ["O1", "O2", "O3"], "O3"),
(squash ["O1", "O2"], "O2"),
(conflict (and (switch_on "E"), (switch_on "S"))),
(warning (and (switch_on "E"), (switch_on "S")), "-E confl...
2009 Dec 08
0
[LLVMdev] More questions on CompilerDriver.
...;> Not yet, this is something I'm working on right now.
>>
> Hi Mikhail,
> Did you get a chance to do something about this?
Sorry for the delay, will be ready Real Soon Now.
I've implemented 'forward_transformed_value', though.
>> BTW, I've implemented the OptionPreprocessor feature that we discussed
>> some time ago. See the documentation for details.
>>
> is it a good idea to include something called "set_option"? For example if
> none of O0, O1, O2 or O3 are specified on the command line, We can just make
> O2 as default by using the s...
2009 Sep 10
4
[LLVMdev] tblgen bug in handling case , switch_on
Mikhail Glushenkov wrote:
> Hi Sanjiv,
>
> On Sun, Sep 6, 2009 at 8:13 PM, Mikhail
> Glushenkov<the.dead.shall.rise at gmail.com> wrote:
>
>> Hi Sanjiv,
>>
>> On Sun, Sep 6, 2009 at 8:07 PM, Mikhail
>> Glushenkov<the.dead.shall.rise at gmail.com> wrote:
>>
>>> [...]
>>>
>> [Sorry, the formatting was a