LLVM IR is in .ll files; if an .ll file has a corresponding .c file, then the .ll file can be generated by calling clang:
clang -cc1 -emit-llvm <file.c>
For an optimized version, the following can be used:
clang -O3 -c -emit-llvm z.c -o - | llvm-dis