<div dir="ltr">How does LLVM generate machine code for different architectures?<div>For example, the machine code for x86 and amd will vary.</div><div><br></div><div>How does LLVM convert its IR to machine code for different architectures.Can you please explain the approach? Is it just write two different programs for two different architectures and pass a flag to the compiler based on which machine code you want to generate?</div><div><br></div><div>Thanks a lot for your explanations.</div><div><br></div><div>Thanks</div><div>Prakash</div></div>