[LLVMdev] storing module level info

reed kotler rkotler at mips.com
Wed Jan 22 13:22:03 PST 2014


On 01/22/2014 12:22 PM, Andrew Trick wrote:
>
> On Jan 22, 2014, at 8:22 AM, Reed Kotler <rkotler at mips.com 
> <mailto:rkotler at mips.com>> wrote:
>
>> On 01/21/2014 05:05 PM, reed kotler wrote:
>>> During ISel lowering, there are some stubs I realize that I need to emit
>>> during AsmPrinter.
>>>
>>> The question is: where to store that information?
>>>
>>> As a hack it could be stored  in Subtarget.
>>>
>>> If there is a reasonable place to put it, it could be store in Module.
>>>
>>> Any ideas?
>>>
>>> It's just a list of functions that I need to generate stubs for.
>>> I know the possible elements of the list. It's  a hardcoded list.
>>>
>>> Any ideas?
>
> I don’t really know what you’re doing, but there’s already a 
> MipsMachineFunctionInfo...
>
> -Andy
I have a way to do this.

I need to initially store the information in MipsMachineFunctionInfo but 
then during runfunction in Asm printer, I need to recollect it and
then emit the stubs as part of the AsmPrinter finalization.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140122/e458e0a4/attachment.html>


More information about the llvm-dev mailing list