[cfe-dev] [PATCH] PR5326, Clang needs support for _Complex_I and _Imaginary_I as intrinsics.
eli.friedman at gmail.com
Fri Nov 27 03:22:22 CST 2009
On Fri, Nov 27, 2009 at 12:33 AM, Edward O'Callaghan
<eocallaghan at auroraux.org> wrote:
> In regards to PR 5326,
> Would someone to be willing to give me some feedback and what else may
> need to be done on my current patch please?
> See: http://llvm.org/bugs/attachment.cgi?id=3715
The patch looks correct as far as it goes.
Instead of making _Complex_I a keyword, you could just #define it to
the GNU equivalent in the predefines; it's not precisely correct, but
it's a lot less work to get it working. If you want to get it working
cleanly, I guess the next step would be making
Parser::ParseCastExpression actually handle _Complex_I, then adding an
AST node, then adding Sema and CodeGen handling.
More information about the cfe-dev