Displaying 2 results from an estimated 2 matches for "llvmmoduleaddtypenam".
Did you mean:
llvmmoduleaddtypename
2007 Sep 12
0
[LLVMdev] C interface
...e naming convention seems ok (using
lowercase + underscores makes the name longer). I do find things
like this slightly strange:
/* Same as Module::addTypeName. */
int AddTypeNameToModule(LLVMModuleRef M, const char *Name,
LLVMTypeRef Ty);
I'd expect it to be named something like "LLVMModuleAddTypeName" or
something, using NamespaceClassMethod uniformly.
> Pointers are opaque, obviously. I find myself copying enums, which
> is mildly scary.
Copying the enums does seems scary. Is there any way around this?
Is LLVMTypeKind that useful?
> I'm using C strings instead of...
2007 Sep 12
7
[LLVMdev] C interface
Hi all,
I'm authoring a C interface to the LLVM IR type system. Since this is
Really Quite Tedious, I would like to solicit opinions before I get
too far down any paths that seem offensive. I've attached the header,
where I've mapped a portion of Module and most of Type and its
subclasses. This is working, and I've built ocaml bindings on top of
it.[1] My intent is to