[PATCH] D129576: [GISel] Unify use of getStackGuard()

Kai Nacke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 12 10:20:18 PDT 2022


Kai created this revision.
Kai added reviewers: arsenm, aemerson.
Herald added a subscriber: hiraditya.
Herald added a project: All.
Kai requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

Some rework of getStackGuard() based on comments in https://reviews.llvm.org/D129505.

- getStackGuard() now returns the destination register, simplifying calls
- passing the destination register is optional and only required for llvm.stackguard
- removed PtrMemTy in emitSPDescriptorParent(), because this type is only used here when loading but not when storing the value


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D129576

Files:
  llvm/include/llvm/CodeGen/GlobalISel/IRTranslator.h
  llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/irtranslator-delayed-stack-protector.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D129576.444000.patch
Type: text/x-patch
Size: 7046 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220712/cd908d1c/attachment.bin>


More information about the llvm-commits mailing list