search for: append_cmd

Displaying 12 results from an estimated 12 matches for "append_cmd".

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 Nov 19
3
[LLVMdev] More questions on CompilerDriver.
...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: (not_empty "p"), [ (unpack_values "p"), (append_cmd ".o")] 2. Is there anyway to call a C++ hook from inside actions? for example (actions (case (not_empty "Wl,"), (append_cmd "$CALL(Myhook)" ))) Thanks in advance. - Sanjiv
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 11
1
[LLVMdev] tblgen bug in handling case , switch_on
...;), (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", but an (append_cmd ".lib") with that will insert a space. Anything like append_cmd_nospace ? or any other way? - Sanjiv - Sanjiv
2009 Nov 19
0
[LLVMdev] More questions on CompilerDriver.
...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: > (not_empty "p"), [ (unpack_values "p"), (append_cmd ".o")] If the set of device_names is not large, you can work around this for now by creating a separate linker tool for each device_name (should be easy with inheritance) and then using OptionalEdges to choose the right "linker". A better solution is to add a 'forward_pro...
2009 Sep 11
0
[LLVMdev] tblgen bug in handling case , switch_on
...v 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 a space. This won't work since actions are not composable (alas). > Anything like append_cmd_nospace ? or any other way? I'm afraid there is no way to do this right now. One way to support this is to extend the hook mechanism to work with a...
2009 Dec 08
2
[LLVMdev] More questions on CompilerDriver.
Mikhail Glushenkov wrote: > > > 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. > 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...
2009 Sep 06
2
[LLVMdev] tblgen bug in handling case , switch_on
...n 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 -scalarrepl"), (or (and (switch_...
2009 Sep 05
2
[LLVMdev] tblgen bug in handling case , switch_on
...t is generated is this: if (A) { ... } if (B) { .... } else { .... } IMO, What should be generated is below: if (A) { ... } else if (B) { .... } else { .... } BTW, to give you more details, I am using append_cmd on each switch_on. - Sanjiv
2009 Sep 13
1
[LLVMdev] tblgen bug in handling case , switch_on
...a 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 a space. >> > > This won't work since actions are not composable (alas). > > >> Anything like append_cmd_nospace ? or any other way? >> > > I'm afraid there is no way to do this right now. One...
2009 Dec 08
0
[LLVMdev] More questions on CompilerDriver.
...c 8, 2009 at 4:41 AM, Sanjiv Gupta <sanjiv.gupta at microchip.com> wrote: > Mikhail Glushenkov wrote: >> >> > 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. >> > 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', thoug...
2009 Sep 05
0
[LLVMdev] tblgen bug in handling case , switch_on
....... > } else { > .... > } > > > IMO, What should be generated is below: > > if (A) { > ... > } else if (B) { > .... > } else { > .... > } > > BTW, to give you more details, I am using append_cmd on each switch_on. > > > - Sanjiv > > _______________________________________________ > Is the patch below ok? Index: LLVMCConfigurationEmitter.cpp =================================================================== --- LLVMCConfigurationEmitter.cpp (revision 80668) +++ LLV...