[LLVMdev] Drop the machine code while executing

Sri emdcdeveloper at gmail.com
Fri Apr 25 17:26:04 PDT 2014


Hi Tom
             Thanks for the reference , is there any llvm function that 
I could directly call to drop the generated machine code ? Currently I 
am having compiled llvm IR function and I could able to get generated 
native function pointer by using getpointertofunction, /

Thanks

With regards
Sri.
On 04/26/2014 12:05 AM, Tom Stellard wrote:
> On Fri, Apr 25, 2014 at 11:44:24PM +0100, Sri wrote:
>> Hi
>>           Currently , I have doing some experimental work by using llvm,
>> Is it possible to drop the machine code once it has been generated for
>> particular function while program executing. For example some *void
>> test(int)* function has been executed on native machine , I want to drop
>> the code before I start  execute some other function in my long running
>> program.
>>
> You can disassemble the code once it has been compiled.  Mesa's llvmpipe
> driver does this:
> http://cgit.freedesktop.org/mesa/mesa/tree/src/gallium/auxiliary/gallivm/lp_bld_debug.cpp#n192
>
> -Tom
>
>> Thanks.
>>
>> With regards
>> Sri.
>> _______________________________________________
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev




More information about the llvm-dev mailing list