[PATCH] D137785: [PowerPC][GISel] Add initial GlobalISel support for vector functions.

Amy Kwan via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 10 06:20:16 PST 2022


amyk created this revision.
amyk added reviewers: Kai, nemanjai, PowerPC, shchenz, arsenm, aemerson.
amyk added projects: PowerPC, LLVM.
Herald added subscribers: kbarton, hiraditya.
Herald added a project: All.
amyk requested review of this revision.
Herald added subscribers: llvm-commits, wdng.

This patch adds the initial support for vector functions and register banks within GlobalISel.
With this patch, we are able to support simple functions that return vectors, and also 
functions that perform simple operations.

This patch also:

- Legalizes vector types for G_AND, G_OR, G_XOR, G_ADD, G_SUB, G_BITCAST, G_FADD, G_FSUB
- Introduce initial support for bitcasting (that will need to be extended upon)
- Add various different test cases to for test vector support within GlobalISel


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D137785

Files:
  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/lib/Target/PowerPC/GISel/PPCRegisterBanks.td
  llvm/test/CodeGen/PowerPC/GlobalISel/float-arithmetic.ll
  llvm/test/CodeGen/PowerPC/GlobalISel/ppc-isel-arithmentic-vec.ll
  llvm/test/CodeGen/PowerPC/GlobalISel/ppc-isel-logical-vec.ll
  llvm/test/CodeGen/PowerPC/GlobalISel/ppc-isel-ret-and-bitcast-vec.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137785.474446.patch
Type: text/x-patch
Size: 29737 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221110/d0344932/attachment.bin>


More information about the llvm-commits mailing list