[llvm-commits] Patch series to expose APInt and APFloat to llvm-c and ocaml

Erick Tryzelaar idadesub at users.sourceforge.net
Mon Aug 10 16:21:33 PDT 2009


Hi Dan,

That could make sense. For my language, all I really need to do is be
able to construct an ConstantInt and an ConstantFP from strings. We
could just expose that functionality for now. I'll whip up another
patch that supports that as well.

-e

On Mon, Aug 10, 2009 at 1:57 PM, Dan Gohman<gohman at apple.com> wrote:
> Hi Erick,
>
> Is APInt/APFloat really the right level of abstraction to expose to the
> C API? Would it make more sense to just provide more flexible ways to
> call
> ConstantInt::get and ConstantFP::get from the C API?  The C++ API could
> also be extended, if it would help here.  This would seem to be a more
> convenient API to work with, and have the side benefit of being more
> efficient.
>
> Dan
>
> On Aug 10, 2009, at 1:25 PM, Erick Tryzelaar wrote:
>
>
>> Hello all,
>>
>> It's been a while since I did any work on the ocaml bindings, so I
>> want to
>> check with everyone first before I commit this. This series adds
>> initial
>> support for APInt and APFloat, as well as adding support for
>> creating constant
>> ints and constant reals using APInt and APFloat.
>>
>> The only real question I have is on the ocaml side of things. Right
>> now this is
>> embedding the creation of APInt and APFloat into the Llvm module,
>> but I think
>> it could be nice to have a separate Llvm_support module that doesn't
>> link in
>> the rest of llvm. What do you all think?
>>
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>




More information about the llvm-commits mailing list