OSDN Git Service

TargetLowering: Add finalizeLowering() function; NFC
authorMatthias Braun <matze@braunis.de>
Fri, 28 Apr 2017 20:25:05 +0000 (20:25 +0000)
committerMatthias Braun <matze@braunis.de>
Fri, 28 Apr 2017 20:25:05 +0000 (20:25 +0000)
commit81de60661c39cbee91a9a1fdeed991bb3e13cd8b
tree5765a37c4068e2d4ddc8be1002864606e3e499bf
parent007530e1a2de61512d3df9e3afd4018900c4a6a3
TargetLowering: Add finalizeLowering() function; NFC

Adds a new method finalizeLowering to TargetLoweringBase. This is in
preparation for an upcoming commit.

This function is meant for target specific adjustments to
MachineFrameInfo or register reservations.

Move the freezeRegisters() and the hasCopyImplyingStackAdjustment()
handling into the new function to prove the concept. As an added bonus
GlobalISel no longer missed the hasCopyImplyingStackAdjustment()
handling with this.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301679 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Target/TargetLowering.h
lib/CodeGen/GlobalISel/IRTranslator.cpp
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
lib/CodeGen/TargetLoweringBase.cpp
lib/Target/X86/X86ISelLowering.cpp
lib/Target/X86/X86ISelLowering.h