Hi. The attached patch adds wrappers for the instructions vicmp, vfcmp, ret (multiple) and getresult, and for the vicmp and vfcmp operations on constants, to llvm-c. Also: 1) There appears to be no way to create intrinsics via llvm-c. Is there? 2) The "extractvalue"[1] and "insertvalue"[2] instructions don't seem to be addable via IRBuilder. Why? Cheers, -Mahadevan. [1] http://www.llvm.org/docs/LangRef.html#i_extractvalue [2] http://www.llvm.org/docs/LangRef.html#i_insertvalue -------------- next part -------------- A non-text attachment was scrubbed... Name: wrap_more_insts.patch Type: text/x-diff Size: 5551 bytes Desc: not available URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20080609/75e2faf3/attachment.patch>
On Jun 9, 2008, at 10:33 AM, Mahadevan R wrote:> Hi. > > The attached patch adds wrappers for the instructions vicmp, vfcmp, > ret (multiple) and getresult, and for the vicmp and vfcmp operations > on constants, to llvm-c. > > Also: > > 1) There appears to be no way to create intrinsics via llvm-c. Is > there?I'm not familiar with the llvm-c API; hopefully someone else can comment.> > 2) The "extractvalue"[1] and "insertvalue"[2] instructions don't seem > to be addable via IRBuilder. Why?They're part of a new feature that's currently under development, and we haven't gotten to that point yet. Patches for this would be welcome :-). Dan