This is the mail archive of the gcc-cvs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Author: marxin
Date: Fri Aug 21 16:04:49 2015
New Revision: 227069

URL: https://gcc.gnu.org/viewcvs?rev=227069&root=gcc&view=rev
Log:
HSA: support for string constants.

	* hsa-brig.c (enqueue_op): Move the function up in source file.
	(emit_directive_variable): Add support for string constants.
	(emit_function_directives): Emit all const global variables where
	string constant live in.
	(emit_immediate_scalar_to_data_section): Fix pointer assignment.
	(emit_immediate_operand): Add support for string constants
	that can type of an immediate operand.
	* hsa-gen.c (hsa_function_representation::hsa_function_representation):
	Initialize list of string constants.
	(hsa_function_representation::~hsa_function_representation): Release
	the list.
	(hsa_type_for_scalar_tree_type): Handle type of a string constant.
	(hsa_get_string_cst_symbol): New function.
	(hsa_op_immed::hsa_op_immed): Change validator to accept a string
	constant.
	(gen_hsa_addr): Handle an address of a string constant.
	(gen_hsa_addr_insns): Fix address emission.
	(gen_hsa_insns_for_load): Fix coding style.
	(gen_hsa_phi_from_gimple_phi): Likewise.
	* hsa.h (struct hsa_symbol): Add new forward declarations.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]