[cfe-commits] [patch] Add codegen for the __noop intrinsic

Eli Friedman eli.friedman at gmail.com
Tue Sep 25 22:49:07 PDT 2012


On Tue, Sep 25, 2012 at 10:05 PM, Nico Weber <thakis at chromium.org> wrote:
> Hi,
>
> similar to the __debugbreak patch, this adds codegen support for __noop.

You don't actually have to call llvm.donothing... like the name says,
it doesn't do anything. :)  "return RValue::get(0);" should be
sufficient.

Do we actually perform semantic analysis correctly for __noop?  In
MSVC, are the arguments unevaluated in the semantic analysis sense?
Do we do the right thing for expressions with non-POD type?
Expressions with cleanups?

-Eli



More information about the cfe-commits mailing list