Displaying 6 results from an estimated 6 matches for "unpack_valu".
Did you mean:
unpack_values
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:
(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...
2009 Nov 19
0
[LLVMdev] More questions on CompilerDriver.
...gt; 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:
> (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...
2009 Sep 11
1
[LLVMdev] tblgen bug in handling case , switch_on
...ke:
>
> (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", but an (append_cmd ".lib")
with that will insert a space.
Anything like append_cmd_nospace ? or any other way?
- Sanjiv
- Sanjiv
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 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...
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 13
1
[LLVMdev] tblgen bug in handling case , switch_on
...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 a space.
>>
>
> This won't work since actions are not composable (alas).
>
>
>> Anything like append_cmd_nospace ? or any other way?
>>
>
> I'...