[cfe-commits] [PATCH] Initial clang support for C++0x atomic operations

Eli Friedman eli.friedman at gmail.com
Wed Sep 21 11:30:17 PDT 2011


On Wed, Sep 21, 2011 at 10:39 AM, John McCall <rjmccall at apple.com> wrote:
> On Sep 20, 2011, at 7:02 PM, Eli Friedman wrote:
>> Attached.  Adds AtomicExpr nodes, creates them in Sema, and lowers
>> them in IRGen.
>
> Why is this a new expression node instead of a builtin call with custom
> typechecking?

The return type of (most of) the builtins depends on the type of the
first argument... can we model that without a new expression node?

-Eli




More information about the cfe-commits mailing list