Programmatically selecting Intel syntax for assembler output

What is the correct way to select Intel syntax for assembler output? Is it only possible via llvm::cl::ParseCommandLineOptions?