r230822 - in /branches/hsa/gcc: ChangeLog.hsa h...

marxin@gcc.gnu.org marxin@gcc.gnu.org
Tue Nov 24 17:23:00 GMT 2015


Author: marxin
Date: Tue Nov 24 17:23:23 2015
New Revision: 230822

URL: https://gcc.gnu.org/viewcvs?rev=230822&root=gcc&view=rev
Log:
HSA: support alloca builtin

	* hsa-brig.c (emit_alloca_insn): New function.
	(emit_insn): Handle hsa_insn_alloca.
	* hsa-gen.c (hsa_init_data_for_cfun):
	Add new pool allocator for hsa_insn_alloca.
	(hsa_deinit_data_for_cfun): Release the pool.
	(hsa_insn_alloca::operator new): New function.
	(hsa_insn_alloca::hsa_insn_alloca): Likewise.
	(gen_hsa_alloca): Likewise.
	(gen_hsa_insns_for_call): Handle __builtin_alloca and
	__builtin_alloca_with_align.
	* hsa.h (is_a_helper ::test): New function.

Modified:
    branches/hsa/gcc/ChangeLog.hsa
    branches/hsa/gcc/hsa-brig.c
    branches/hsa/gcc/hsa-gen.c
    branches/hsa/gcc/hsa.h



More information about the Gcc-cvs mailing list