[llvm-commits] [PATCH] Additions to C-bindings

Kenneth Uildriks kennethuil at gmail.com
Wed Oct 7 06:06:36 PDT 2009


On Wed, Oct 7, 2009 at 6:52 AM, Kenneth Uildriks <kennethuil at gmail.com> wrote:
> On Tue, Oct 6, 2009 at 11:50 PM, Eric Christopher <echristo at apple.com> wrote:
>>
>> On Oct 6, 2009, at 7:35 PM, Kenneth Uildriks wrote:
>>
>>> This patch adds a few functions to the C bindings to expose use-def
>>> chains, function and parameter attribute retrieval, getting const
>>> opcode and const values of constants, checking for a global
>>> initializer, and ReplaceAllUsesWith.
>>> <cbindings.patch>
>>
>> The C bindings are guaranteed to be fairly stable, is there some reason you
>> need all of these exposed?
>>
>> -eric
>>
>
> I wanted to call them from generated code and from my language.
>
Not only do I want to end up with a self-hosting compiler, but the
design of my compiler requires that much of the code generation code
is actually generated and JITted when the compiler is running.  This
code generation code need to call a C interface to do its work.



More information about the llvm-commits mailing list