Add {symbol,call}_summary::get method and use it in HSA.
authorMartin Liska <mliska@suse.cz>
Fri, 8 Jun 2018 12:13:20 +0000 (14:13 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Fri, 8 Jun 2018 12:13:20 +0000 (12:13 +0000)
commit0148358a02a230ef250718b13180527701edf3ca
treec391b8e527f99087eaf0e3f41c22636b16377a53
parent99353fcfe4f50d131fae9978ce9cd19bcaf243cf
Add {symbol,call}_summary::get method and use it in HSA.

2018-06-08  Martin Liska  <mliska@suse.cz>

* hsa-common.h (enum hsa_function_kind): Rename HSA_NONE to
HSA_INVALID.
(hsa_function_summary::hsa_function_summary): Use the new enum
value.
(hsa_gpu_implementation_p): Use hsa_summaries::get.
* hsa-gen.c (hsa_get_host_function): Likewise.
(get_brig_function_name): Likewise.
* ipa-hsa.c (process_hsa_functions): Likewise.
(ipa_hsa_write_summary): Likewise.
* symbol-summary.h (symtab_duplication): Use ::get function/
(get): New function.

From-SVN: r261310
gcc/ChangeLog
gcc/hsa-common.h
gcc/hsa-gen.c
gcc/ipa-hsa.c
gcc/symbol-summary.h