]> granicus.if.org Git - llvm/commit
Use methods to access data stored with frame instructions
authorSerge Pavlov <sepavloff@gmail.com>
Thu, 13 Apr 2017 14:10:52 +0000 (14:10 +0000)
committerSerge Pavlov <sepavloff@gmail.com>
Thu, 13 Apr 2017 14:10:52 +0000 (14:10 +0000)
commitcf2d2611cfc209fea1ebbf473ea41f86f203b197
tree1c264afe341d451c3ae7e831edfc05f2496acab2
parent4aae21ea76b1e78caab4821572139fa086e79145
Use methods to access data stored with frame instructions

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.

Differential Revision: https://reviews.llvm.org/D31953

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@300196 91177308-0d34-0410-b5e6-96231b3b80d8
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