[LLVMdev] Creating a backend target -- must I modify include/llvm/ADT/Triple.h ?
Anton Korobeynikov
anton at korobeynikov.info
Tue Aug 3 00:52:07 PDT 2010
Hello
> The part I'm wondering about is Triple::sparc. If I'm writing a target for a
> different architecture, is it necessary for that architecture to have an
> entry in Triple's ArchType enumeration?
Generally speaking, yes.
> The documentation doesn't seem to
> mention anything about adding members to the enumeration; is it an optional
> step?
No. Also note that the document in question can be outdated.
PS: You might want to check existing msp430 & pic16 backends as an example.
--
With best regards, Anton Korobeynikov
Faculty of Mathematics and Mechanics, Saint Petersburg State University
More information about the llvm-dev
mailing list