search for: apply_hook

Displaying 2 results from an estimated 2 matches for "apply_hook".

2009 Nov 19
0
[LLVMdev] More questions on CompilerDriver.
...the form '(forward_processed_value "opt-name" "HookName")'. Or maybe even '(forward_transformed_value "p" "$VAL.o")'. Ideally, I'd like to make primitive actions composable, so that it'd possible to write something like '(forward (apply_hook "HookName" (get_value "p")))', but it's not especially fun to implement this 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(Myho...
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: