mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2026-08-23 14:23:03 +00:00
Use right-recursing in parser rule inst_option_list
This recursing cost less memory. It is recommended by Bison.
This commit is contained in:
committed by
Damien Lespiau
parent
a7b1c09d18
commit
5d589dbe13
@@ -2434,10 +2434,10 @@ instoptions: /* empty */
|
|||||||
{ $$ = $2; }
|
{ $$ = $2; }
|
||||||
;
|
;
|
||||||
|
|
||||||
instoption_list:instoption COMMA instoption_list
|
instoption_list:instoption_list COMMA instoption
|
||||||
{
|
{
|
||||||
$$ = $3;
|
$$ = $1;
|
||||||
switch ($1) {
|
switch ($3) {
|
||||||
case ALIGN1:
|
case ALIGN1:
|
||||||
$$.header.access_mode = BRW_ALIGN_1;
|
$$.header.access_mode = BRW_ALIGN_1;
|
||||||
break;
|
break;
|
||||||
@@ -2475,10 +2475,10 @@ instoption_list:instoption COMMA instoption_list
|
|||||||
$$.header.acc_wr_control = BRW_ACCWRCTRL_ACCWRCTRL;
|
$$.header.acc_wr_control = BRW_ACCWRCTRL_ACCWRCTRL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
| instoption instoption_list
|
| instoption_list instoption
|
||||||
{
|
{
|
||||||
$$ = $2;
|
$$ = $1;
|
||||||
switch ($1) {
|
switch ($2) {
|
||||||
case ALIGN1:
|
case ALIGN1:
|
||||||
$$.header.access_mode = BRW_ALIGN_1;
|
$$.header.access_mode = BRW_ALIGN_1;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user