> If it is the case, can we generate HLE RELEASE/ACQUIRE > prefix automatically for C++ atomics via -mhle command line option. > Then you don't need to modify the source codes to enable HLE support.
No, for HLE someone needs to decide whether HLE is beneficial for a given lock. There are cases where it is not or even wrong (e.g. if there is no matching unlock) -Andi -- a...@linux.intel.com -- Speaking for myself only.