[PATCH] D127530: [PowerPC] Extend GlobalISel implementation to emit and/or/xor.

Kai Nacke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 10 12:42:44 PDT 2022


Kai created this revision.
Kai added reviewers: nemanjai, saghir.
Herald added subscribers: shchenz, kbarton, hiraditya, rovka.
Herald added a project: All.
Kai requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Adds some more code to GlobalISel to enable instruction selection for and/or/xor.

- Makes G_IMPLICIT_DEF, G_AND, G_OR, G_XOR legal for 64bit register size.
- Implement lowerReturn in CallLowering
- Provides mapping of the operands to register banks.
- Adds register info to G_COPY operands.

The utility functions are all only implemented so far to support this use case.
Especially the functions in PPCGenRegisterBankInfo.def are too simple for
general use.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D127530

Files:
  llvm/lib/Target/PowerPC/GISel/PPCCallLowering.cpp
  llvm/lib/Target/PowerPC/GISel/PPCGenRegisterBankInfo.def
  llvm/lib/Target/PowerPC/GISel/PPCInstructionSelector.cpp
  llvm/lib/Target/PowerPC/GISel/PPCLegalizerInfo.cpp
  llvm/lib/Target/PowerPC/GISel/PPCRegisterBankInfo.cpp
  llvm/lib/Target/PowerPC/GISel/PPCRegisterBankInfo.h
  llvm/test/CodeGen/PowerPC/GlobalISel/ppc-isel-logical.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D127530.436015.patch
Type: text/x-patch
Size: 14049 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220610/7f98fa1b/attachment.bin>


More information about the llvm-commits mailing list