adding an xcore front end

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

On Tue, Jul 2, 2013 at 11:35 AM, Robert Lytton <robert at> 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/ .

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the cfe-commits mailing list