reginfo: Add a global_reg_set
authorRichard Sandiford <richard.sandiford@arm.com>
Thu, 17 Dec 2020 00:14:58 +0000 (00:14 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Thu, 17 Dec 2020 00:14:58 +0000 (00:14 +0000)
commit900846cda693e199f4ebafd99af72445c3016629
tree3741d62cc4b98bee806d5b058c8663127be9a8e9
parent7c1e7eed891a7b8fd8bbe6a13e6435cfbe7e9055
reginfo: Add a global_reg_set

A later patch wants to use the set of global registers as a HARD_REG_SET
rather than a bool/char array.  Most other arrays already have a
HARD_REG_SET counterpart, but this one didn't.

gcc/
* hard-reg-set.h (global_reg_set): Declare.
* reginfo.c (global_reg_set): New variable.
(init_reg_sets_1, globalize_reg): Update it when globalizing
registers.
gcc/hard-reg-set.h
gcc/reginfo.c