[PATCH] D31953: Use methods to access data stored with frame instructions

Serge Pavlov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 11 11:22:12 PDT 2017


sepavloff created this revision.

Instructions CALLSEQ_START..CALLSEQ_END and their target dependent
counterparts keep data like frame size, stack adjustment etc. These
data are accessed by getOperand using hard coded indices. It is
error prone way. This change implements the access by special methods,
which improve readability and allow changing data representation without
massive changes of index values.
This patch is essentially NFC, it is needed to simplify subsequent changes.


https://reviews.llvm.org/D31953

Files:
  include/llvm/Target/TargetInstrInfo.h
  lib/CodeGen/MachineVerifier.cpp
  lib/CodeGen/PrologEpilogInserter.cpp
  lib/CodeGen/TargetInstrInfo.cpp
  lib/Target/X86/X86CallFrameOptimization.cpp
  lib/Target/X86/X86FrameLowering.cpp
  lib/Target/X86/X86FrameLowering.h
  lib/Target/X86/X86InstrInfo.cpp
  lib/Target/X86/X86InstrInfo.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31953.94864.patch
Type: text/x-patch
Size: 10543 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170411/a78e4b15/attachment.bin>


More information about the llvm-commits mailing list