[LLVMdev] How to specify the subtarget instruction set for LLVM unit in ARM-backend?

Anton Korobeynikov anton at korobeynikov.info
Sun Apr 4 08:33:53 PDT 2010


> compiler does not support this feature, please specify the minimal unit
> (basic block, entire function or anything else) that the current version
> of the compiler is able to translate with an indication of the subtarget
> instruction set.
Subtarget features are specified on per-module basis. It might be good to allow
certain features to be applied on per-function level. Patches are welcome :)

> Also, I wonder whether an LLVM pass can be added to the ARM-backend (if
> so, please explain how).
Yes, it is possible. There are plenty of examples in the current
codebase. See e.g.

With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University

More information about the llvm-dev mailing list