[llvm-dev] TableGen GlobalISelEmitter unable to handle trivial pattern

Matt Arsenault via llvm-dev llvm-dev at lists.llvm.org
Sun Jun 30 15:08:56 PDT 2019


Hi,

I’m looking at some patterns which failed to import, and when I reduced them I was surprised to find a variety of complicated patterns successfully import, but the most trivial patterns I can come up with fail. If I add this pattern to test/TableGen/GlobalISelEmitter.td:

def : Pat <
  (mul i32:$y, i32:$x),
  (MUL $x, $y)
>;

test/TableGen/GlobalISelEmitter.td:1196:1: warning: Skipped pattern: Dst pattern child is an unsupported kind
def : Pat <

What am I missing?

-Matt


More information about the llvm-dev mailing list