[LLVMdev] Machine Code for different architectures

Prakash Premkumar prakash.prax at gmail.com
Mon Sep 8 23:09:13 PDT 2014


How does LLVM generate machine code for different architectures?
For example, the machine code for x86 and amd will vary.

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?

Thanks a lot for your explanations.

Thanks
Prakash
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20140909/bbb3937f/attachment.html>


More information about the llvm-dev mailing list