Displaying 2 results from an estimated 2 matches for "choose_last".
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
2009 Sep 10
0
[LLVMdev] Fwd: tblgen bug in handling case , switch_on
...er specifies all -O0, -O1, -O2 on the command line, one
> would be able to choose only the first or last, or give an error.
>
> option_validator ("O0", "O1", "O2"), (choose_first)
> OR
> 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"...