Displaying 11 results from an estimated 11 matches for "switch_on".
Did you mean:
switch_mm
2009 Sep 05
3
[LLVMdev] tblgen bug in handling case , switch_on
Hi,
On Sat, Sep 5, 2009 at 9:12 PM, Sanjiv Gupta<sanjiv.gupta at microchip.com> wrote:
> Is the patch below ok?
>
> Index: LLVMCConfigurationEmitter.cpp
> ===================================================================
> --- LLVMCConfigurationEmitter.cpp (revision 80668)
> +++ LLVMCConfigurationEmitter.cpp (working copy)
> @@ -1141,6 +1141,7 @@
>
2009 Sep 06
2
[LLVMdev] tblgen bug in handling case , switch_on
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 bit off]
> The following snippet gives the expected behaviour (not tested, but
> you should get the idea):
(case
(switch_on "O0"),
(append_cmd "-disable-opt"),
(or (and (switch_on "O1")
(not (switch_on "O0"))),
(not (switch_on "O0"))),
(append_cmd "-constmerge -globaldce -globalopt -ipsccp
-jump-threading -simplifycfg -gvn -scal...
2009 Sep 05
2
[LLVMdev] tblgen bug in handling case , switch_on
Hi Mikhail,
What is mentioned in the reference manual is this:
// Evaluates to "cmdline1" if the option "-A" is provided on the
// command line; to "cmdline2" if "-B" is provided;
// otherwise to "cmdline3".
(case
(switch_on "A"), "cmdline1",
(switch_on "B"), "cmdline2",
(default), "cmdline3")
What is generated is this:
if (A) {
...
}
if (B) {
....
} else {
....
}
IMO, What should be generated is...
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
...y 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 conflicts with -S")
]>;
The preprocessing code will run once in the beginning.
--
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - agains...
2009 Sep 05
0
[LLVMdev] tblgen bug in handling case , switch_on
...ned in the reference manual is this:
>
> // Evaluates to "cmdline1" if the option "-A" is provided on the
> // command line; to "cmdline2" if "-B" is provided;
> // otherwise to "cmdline3".
>
> (case
> (switch_on "A"), "cmdline1",
> (switch_on "B"), "cmdline2",
> (default), "cmdline3")
>
>
> What is generated is this:
>
> if (A) {
> ...
> }
>
> if (B) {
> ....
> }...
2009 Sep 11
1
[LLVMdev] tblgen bug in handling case , switch_on
...sanjiv.gupta at microchip.com> wrote:
>
>> Why do we need both 'conflict' and 'warning' ?
>>
>
> 'warning' just prints a warning, 'conflict' is a fatal error.
>
> A better example would be something like:
>
> (warning (and (switch_on "O1"), (switch_on "O2")) "-O1 has no effect.")
>
>
>
Looks good.
One more quick query.
How to extract libname from "-l std" from the driver and pass it as
"std.lib" to the linker tool?
I know that unpack_values will give me "std&q...
2009 Sep 06
0
[LLVMdev] tblgen bug in handling case , switch_on
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 bit off]
>
>> The following snippet gives the expected behaviour (not tested, but
>> you
2009 Sep 11
0
[LLVMdev] tblgen bug in handling case , switch_on
Hi,
On Fri, Sep 11, 2009 at 11:46 AM, Sanjiv Gupta
<sanjiv.gupta at microchip.com> wrote:
>
> Looks good.
> One more quick query.
> How to extract libname from "-l std" from the driver and pass it as
> "std.lib" to the linker tool?
> I know that unpack_values will give me "std", but an (append_cmd ".lib")
> with that will insert
2009 Sep 13
1
[LLVMdev] tblgen bug in handling case , switch_on
Mikhail Glushenkov wrote:
> Hi,
>
> On Fri, Sep 11, 2009 at 11:46 AM, Sanjiv Gupta
> <sanjiv.gupta at microchip.com> wrote:
>
>> Looks good.
>> One more quick query.
>> How to extract libname from "-l std" from the driver and pass it as
>> "std.lib" to the linker tool?
>> I know that unpack_values will give me
2009 Mar 30
2
[LLVMdev] llvmc issues on x86_32
.../Base.td hardcodes the -relocation-model=pic
option into invocations of llc:
def llc : Tool<
[(in_language "llvm-bitcode"),
(out_language "assembler"),
(output_suffix "s"),
(cmd_line "llc -relocation-model=pic -f $INFILE -o $OUTFILE"),
(actions (case (switch_on "S"), (stop_compilation)))
]>;
This is nice on 64 bit systems, but generates slow code on 32 bit x86,
and even breaks on 32 bit Windows (using the mingw port); llc spits out
a failed assertion there if invoked with -relocation-model=pic.
I don't see an easy way to disable or over...