[PATCH] D19181: Map Attribute in the C API.
Amaury SECHET via llvm-commits
llvm-commits at lists.llvm.org
Mon May 23 10:51:43 PDT 2016
deadalnix added a comment.
So I gave some more time to think to this and the conclusion I come with is that we should take @jyknight 's idea to expose LLVMAttributeReturnIndex and LLVMAttributeFunctionIndex and provide 2 sets of accessors : for function and for CallSite.
On the other hand, I think this is the right thing to do to expose LLVMAttributeRef as a common abstraction for attributes. This way, only constructors and single attribute getters needs to have a version for each attribute kind. Setters and getters for all attributes (needed for binding that have expensive C function calls) can be agnostic of the actual kind of attribute.
Thought ?
http://reviews.llvm.org/D19181
More information about the llvm-commits
mailing list