Better mechanism to deal with LLVM targets