LLVM build

Can I build LLVM twice in a single x86 machine? That is for 2 different targets.

Thank You

Yes, set DLLVM_TARGETS_TO_BUILD to the targets you wish to build. you will find a full list of targets within the llvm-project/llvm/lib/Target directory. And to use that target for example in clang use clang++ --target=sparc -S add.cpp -o add.s
See doc.