[PATCH] D68946: [MIParser] Set RegClassOrRegBank during instruction parsing

Petar Avramovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 14 09:20:07 PDT 2019


Petar.Avramovic added a comment.

Motivation is having same behavior for GlobalISel legalizer tests for -stop-after=legalizer (llvm-ir input) and -run-pass=legalizer (mir input created from output of same llvm-ir input by pass before legalizer), later has few extra COPY instructions.
Mips has builtin functions (not available as generic opcode) that correspond to a machine instruction, and as such can be selected during legalization.
When selected, register classes also have to be constrained because other passes leave target specific instructions as they are.
Such builtin functions turned to intrinsic and are handled in MipsLegalizerInfo::legalizeIntrinsic.


Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D68946/new/

https://reviews.llvm.org/D68946





More information about the llvm-commits mailing list