gcc/libitm/config/x86
Torvald Riegel 64fbcc74a3 Add HTM fastpath and use Intel RTM for it on x86.
* beginend.cc (htm_fastpath): New.
	(gtm_thread::begin_transaction, _ITM_commitTransaction,
	_ITM_commitTransactionEH): Add HTM fastpath handling.
	* config/linux/rwlock.h (gtm_rwlock.is_write_locked): New.
	* config/posix/rwlock.h (gtm_rwlock.is_write_locked): New.
	* config/x86/target.h (htm_available, htm_init, htm_begin_success,
	htm_begin, htm_commit, htm_abort, htm_abort_should_retry): New.
	* configure.tgt: Add -mrtm to XCFLAGS.
	* method-serial.cc (htm_mg, o_htm_mg, htm_dispatch, dispatch_htm): New.
	(gtm_thread::serialirr_mode): Add HTM fastpath handling.
	* libitm_i.h (htm_fastpath, dispatch_htm): Declare.
	* retry.cc (parse_default_method): Add HTM method parsing.
	(gtm_thread::number_of_threads_changed): Use HTM by default if
	available.

From-SVN: r193369
2012-11-09 17:04:40 +00:00
..
cacheline.h libitm: Remove unused code. 2011-11-09 14:54:55 -08:00
sjlj.S target.h (struct gtm_jmpbuf): Merge x86_64 and ia32 declarations some more. 2012-10-02 09:50:36 +02:00
target.h Add HTM fastpath and use Intel RTM for it on x86. 2012-11-09 17:04:40 +00:00
x86_avx.cc libitm: Don't add -mavx if the assembler doesn't support avx. 2011-11-10 09:09:04 -08:00
x86_sse.cc libitm: Remove unused code. 2011-11-09 14:54:55 -08:00