[cfe-dev] atomic intrinsics

Eric Christopher echristo at apple.com
Wed Oct 6 11:49:13 PDT 2010


On Oct 6, 2010, at 9:19 AM, Howard Hinnant wrote:

> In the hopes of clarification, I've put three design descriptions up at:
> 
> http://libcxx.llvm.org/atomic_design.html
> 
> A and/or B is what Eric proposed.  C is what I've been working toward.  A is my preference.  But I can't implement A without buy-in from the front end team.  Heck, I can't actually implement any of them without said buy-in. :-)  I chose C originally because that was where I thought I could most likely get buy-in.

To be more specific for A:

The front end handles every intrinisic listed, and the library provides a default and unoptimized implementation. The back end will provide a better optimized implementation if it can, otherwise falling back to a call to the library function.

-eric



More information about the cfe-dev mailing list