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)
commit49acf9c8ebba8deada0d22524c0482848d5de486
tree38056d09a32f30bd2cdf9f6f5ddbdf6c65631bb5
parente32a66b2de3ce7dec25f32b46974880b9ce20875
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

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