Save the following source code in a.c in the build directory:
int f(int a, int b)
{
int c;
int d;
c = a + b;
d = a + b;
return c * d;
}
and produce a file with textual LLVM IR:
bin/clang -emit-llvm -S a.c
Study the produced a.ll to see that you have a rough idea of its contents.