[LLVMdev] C constructs to generate some of LLVM IR instructions?

Eli Bendersky eliben at google.com
Tue Oct 8 10:33:16 PDT 2013


On Tue, Oct 8, 2013 at 9:53 AM, Rekha R <rekharamapai at nitc.ac.in> wrote:

> Hi,
>
>  I was studying the LLVM IR instruction set by analyzing how constructs in
> C language is getting converted to IR form.
>
> I found difficulty in finding C constructs which could generate Invoke,
> Resume, Unreachable, ExtractValue, InsertValue instructions. Can someone
> help me find some simple C code that generates these instructions in LLVM
> IR?
>

A great way to find such information is search in the tests directory of
clang. So if you have clang checked out into the LLVM tree, run a recursive
grep over all C files in 'tools/clang/tests'

Eli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131008/7d188b16/attachment.html>


More information about the llvm-dev mailing list