[patch] Missing instructions in llvm-c.

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

wrap_more_insts.patch (5.42 KB)

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