HomePhabricator

[TableGen][GlobalISel] Fix handling of zero_reg

Authored by ehjogab on Sep 18 2020, 1:08 AM.

Description

[TableGen][GlobalISel] Fix handling of zero_reg

When generating matching tables for GlobalISel, TableGen would output
"::zero_reg" whenever encountering the zero_reg, which in turn would
result in compilation error. This patch fixes that by instead outputting
NoRegister (== 0), which is the same result that TableGen produces when
generating matching tables for ISelDAG.

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D86215

Details

Committed
bjopeSep 18 2020, 2:01 AM
Reviewer
arsenm
Differential Revision
D86215: [TableGen][GlobalISel] Fix handling of zero_reg
Parents
rG2afe4becec77: AArch64: make sure jump table entries can reach entire image
Branches
Unknown
Tags
Unknown