adding an xcore front end

Eli Friedman eli.friedman at gmail.com
Tue Jul 2 11:50:01 PDT 2013


On Tue, Jul 2, 2013 at 11:35 AM, Robert Lytton <robert at xmos.com> wrote:

>  Hi,
>
> The XCore target in LLVM is currently only supported by the llvm-gcc front
> end.
>
> I have patched  lib/Basic/Targets.cpp & lib/CodeGen/TargetInfo.cpp to add
> support to clang.
> I have not yet written any tests within the clang code base (running an
> external llvm-gcc suite instead).
> What tests should be provided? Should I use the test/CodeGen/<target>...
> example as a guide?
>
>
The important things you want to test (and compare to gcc) are that the
preprocessor defines are correct and that the call/va_arg code generates
the expected IR.  So you probably want to update test/Preprocessor/init.c
and test/Preprocessor/stdint.c,  and add a test for call/va_arg to
test/CodeGen/ .

-Eli
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20130702/32eebdc5/attachment.html>


More information about the cfe-commits mailing list