[all-commits] [llvm/llvm-project] c10200: [TableGen][GlobalISel] Fix handling of zero_reg

Björn Pettersson via All-commits all-commits at lists.llvm.org
Fri Sep 18 02:02:18 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c10200536f2ee3f29a7d2b82812e5d13b40fc3e4
      https://github.com/llvm/llvm-project/commit/c10200536f2ee3f29a7d2b82812e5d13b40fc3e4
  Author: Gabriel Hjort Åkerlund <gabriel.hjort.akerlund at ericsson.com>
  Date:   2020-09-18 (Fri, 18 Sep 2020)

  Changed paths:
    M llvm/lib/Target/ARM/ARMInstructionSelector.cpp
    A llvm/test/TableGen/GlobalISelEmitter-zero-reg.td
    M llvm/utils/TableGen/CodeGenTarget.cpp
    M llvm/utils/TableGen/CodeGenTarget.h
    M llvm/utils/TableGen/GlobalISelEmitter.cpp

  Log Message:
  -----------
  [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




More information about the All-commits mailing list