[PATCH] D104409: GlobalISel/Utils: Allow constant match to not match integer constants

Petar Avramovic via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 16 11:52:19 PDT 2021


Petar.Avramovic created this revision.
Petar.Avramovic added reviewers: foad, arsenm, aemerson, paquette.
Herald added subscribers: kerbowa, hiraditya, rovka, nhaehnle, jvesely.
Petar.Avramovic requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

There is already option to handle or not handle floating point constant.
Add option for integer constants to getConstantVRegValWithLookThrough.
Update mi pattern matchers.


https://reviews.llvm.org/D104409

Files:
  llvm/include/llvm/CodeGen/GlobalISel/MIPatternMatch.h
  llvm/include/llvm/CodeGen/GlobalISel/Utils.h
  llvm/lib/CodeGen/GlobalISel/Utils.cpp
  llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
  llvm/unittests/CodeGen/GlobalISel/PatternMatchTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104409.352500.patch
Type: text/x-patch
Size: 5579 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210616/c674a475/attachment.bin>


More information about the llvm-commits mailing list