[PATCH] D153099: [SPIR-V] Begin removing explicit setRegClass calls

Aleksandr Bezzubikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 15 22:01:43 PDT 2023


zuban32 created this revision.
Herald added subscribers: ThomasRaoux, hiraditya.
Herald added a project: All.
zuban32 requested review of this revision.
Herald added a reviewer: mpaszkowski.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

As a part of a general cleanup of SPIRV's instruction selection
we want to remove explicit setRegClass calls which happen in some
SPIRV-specific pre-selection lowering passes. As these calls only
concern finally emitted SPIRV instructions and not MIR ones we can
easily constrain them.

This change removes the calls everywhere except for the builtins-
related code, that will require more effort to refactor the overall
bultins emission code.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D153099

Files:
  llvm/lib/Target/SPIRV/SPIRVCallLowering.cpp
  llvm/lib/Target/SPIRV/SPIRVGlobalRegistry.cpp
  llvm/lib/Target/SPIRV/SPIRVPreLegalizer.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153099.531984.patch
Type: text/x-patch
Size: 8728 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230616/714f08e0/attachment.bin>


More information about the llvm-commits mailing list