1) Is it possible, using IRBuilder, to generate system calls independent of operation system? I have read this: http://llvm.lyngvig.org/Articles/Mapping-High-Level-Constructs-to-LLVM-IR#59 It seems like that when I generate LLVM IR and want to generate system call for e.g output to terminal, then I must tailor the LLVM IR to Linux/Windows/Mac. Or does LLVM have some interface for system calls?
2) Has this tool http://llvm.org/docs/CommandGuide/llc.html ability to do the stuff I want in 1) ?