GlobalISelEmitter.cpp requires that destination pattern have the
register class annotated to its operands, e.g.:
def : Pat<(add i32:$src1, i32:$str2), (instr regclass:$src1, regclass:$src2)>;
This information is not necessary for SelectionIDAG, and subsequently
for certain targets the register class is omitted from the operands,
which causes the pattern to be rejected. However, this information is
still available by looking at the corresponding operand in the
instruction definition. This patch performs such a lookup when a
register class is expected and none has been annotated to the operand.
clang-format not found in user's PATH; not linting file.