[LLVMdev] making emitInlineAsm protected

reed kotler rkotler at mips.com
Wed Jan 29 15:43:31 PST 2014


On 01/29/2014 03:39 PM, Rafael EspĂ­ndola wrote:
>> So explain to me how this mechanism would work.
>>
>> As I'm processing a single mips16 function, I realize that I need to create
>> one or more mips32 helper functions.
>>
>> I'm in a function pass. So I'm not supposed to be creating new functions, as
>> far as I understand.
>>
>>
>> Also, I can't know which mips32 stub functions to create until I have
>> processed all functions because otherwise I might create duplicates.
>>
>>
>> So how would you do this within the existing LLVM pass structure?
> A module pass that iterates oven the functions should do it.
>
> Cheers,
> Rafael
How would this pass get added to the chain?

It has to create more functions and then those in turn need to be compiled.

Reed




More information about the llvm-dev mailing list