Closed crabtw closed 11 years ago
What are option names in clang to specify these features? I think we should be as compatible with clang command-line interface as possible.
-target-cpu and -soft-float can be renamed as clang's options.
For -target-features, some names are different from llvm accepted names.
We have to translate them before passing to Target::createTargetMachine
.
Yeah, Clang does some nontrivial translation of GCC-compatible -m switches to LLVM attributes. A good compromise might be to adopt llc
's -mattr=...
syntax for target attributes so we're at least consistent with other LLVM tools, if not Clang and GCC.
I renamed these options.
Looks good.
I revert -msoft-float to -soft-float so these options are compatible with llc now.
Merged in 3a006374b044c6df1c9dfd497ed65915964525bb. Thanks @crabtw.
This patch adds command line options to allow us to specify more detailed features for target platform.