diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2020-01-08 15:40:37 -0500 |
---|---|---|
committer | Matt Arsenault <arsenm2@gmail.com> | 2020-01-09 17:37:52 -0500 |
commit | 10edb1d0d4a15812a71f8953bba96a4f1fc9d0af (patch) | |
tree | ec483e8bcc257e76021e2233dd0b12e9a21b00b6 /lldb/packages/Python/lldbsuite/test/commands/command/script/TestCommandScript.py | |
parent | b4a647449fa01bd4e29bce5afef51770cddec664 (diff) | |
download | bcm5719-llvm-10edb1d0d4a15812a71f8953bba96a4f1fc9d0af.tar.gz bcm5719-llvm-10edb1d0d4a15812a71f8953bba96a4f1fc9d0af.zip |
TableGen/GlobalISel: Fix pattern matching of immarg literals
For arguments that are not expected to be materialized with
G_CONSTANT, this was emitting predicates which could never match. It
was first adding a meaningless LLT check, which would always fail due
to the operand not being a register.
Infer the cases where a literal should check for an immediate operand,
instead of a register This avoids needing to invent a special way of
representing timm literal values.
Also handle immediate arguments in GIM_CheckLiteralInt. The comments
stated it handled isImm() and isCImm(), but that wasn't really true.
This unblocks work on the selection of all of the complicated AMDGPU
intrinsics in future commits.
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/commands/command/script/TestCommandScript.py')
0 files changed, 0 insertions, 0 deletions