[LLVMdev] Emit only one function of the module to native code
Christophe Duvernois
christophe.duvernois at gmail.com
Tue Nov 20 01:31:49 PST 2012
Thanks i will look into it.
Le 20 nov. 2012 08:47, "Duncan Sands" <baldrick at free.fr> a écrit :
> On 19/11/12 22:31, Christophe Duvernois wrote:
>
>> Ok thanks,
>> I thought there was a more direct way to do it...
>>
>
> I think this is supposed to be possible. llvm-gcc had logic for emitting
> code
> for each function immediately after generating it, but it was ifdef'd out
> with
> the remark that it was buggy. You might want to take a look at how
> llvm-gcc
> was trying to do it. Since no-one is actually doing this kind of thing
> AFAIK,
> it is likely that you will hit some bugs in the code generators even if
> your
> approach is valid.
>
> Ciao, Duncan.
>
>
>> 2012/11/19 Eric Christopher <echristo at gmail.com <mailto:
>> echristo at gmail.com>>
>>
>> llvm-extract and then llc?
>>
>> -eric
>>
>>
>> On Mon, Nov 19, 2012 at 10:25 AM, Christophe Duvernois
>> <christophe.duvernois at gmail.**com <christophe.duvernois at gmail.com><mailto:
>> christophe.duvernois@**gmail.com <christophe.duvernois at gmail.com>>>
>> wrote:
>>
>> Hi
>>
>> I use llvm-3.1. I have a large module and i want to emit native
>> code (or
>> assembly) for one function.
>>
>> I tried to replace the PassManager in llc by a
>> FunctionPassManager but I
>> have a crash so this is probably not the good way to do it. (cf
>> attached
>> my simple test)
>>
>> Is it possible to write one function from the module? What is the
>> good
>> way to do it?
>>
>> Thanks in advance.
>>
>> Christophe
>>
>> ______________________________**_________________
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu <mailto:LLVMdev at cs.uiuc.edu>
>> http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/**mailman/listinfo/llvmdev<http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev>
>>
>>
>>
>>
>>
>> ______________________________**_________________
>> LLVM Developers mailing list
>> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
>> http://lists.cs.uiuc.edu/**mailman/listinfo/llvmdev<http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev>
>>
>>
> ______________________________**_________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/**mailman/listinfo/llvmdev<http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121120/1b942f82/attachment.html>
More information about the llvm-dev
mailing list