[LLVMdev] Last chance to get anything into llvm-c and ocaml bindings

George Giorgidze giorgidze at gmail.com
Fri Mar 5 17:26:57 PST 2010


On 6 March 2010 01:18, Erick Tryzelaar <idadesub at users.sourceforge.net> wrote:
> On Fri, Mar 5, 2010 at 5:53 AM, George Giorgidze <giorgidze at gmail.com> wrote:
>>
>> Hi Erick,
>>
>> Can you make the following functions available in llvm-c.
>>
>> createStandardFunctionPasses
>> createStandardModulePasses
>> createStandardLTOPasses
>>
>> Thanks in advance, George
>
> This is a little tricky, so I need some advice from the community.
> First off, I'm not sure where it's appropriate to put these. For
> llvm-c, most files live in a header named after the library that
> includes the functions, and we don't have a corresponding place for
> these functions. Perhaps they could go in a
> llvm-c/Transforms/StandardPasses.h?
>
> Second, createStandardModulePasses accepts an inlining pass an an
> argument, but llvm-c doesn't expose a way to directly create any
> passes. So, should I just not expose that argument, or should I add:
>
> LLVMPassRef
> LLVMCreateFunctionInliningPass
> LLVMCreateAlwaysInlinerPass
> LLVMCreatePartialInliningPass
>
> But that seems silly just to expose those passes this way without all
> the other passes and related functions. Does anyone have a better
> suggestion?
>

Hi Erick,

Thanks for your timely reply.

For my use case and for a starting point I suggest to expose only
optimisation levels and boolean flags.

Cheers, George


-- 
George Giorgidze
http://www.cs.nott.ac.uk/~ggg/



More information about the llvm-dev mailing list