OSDN Git Service

[MachineOutliner][NFC] Move target frame info into OutlinedFunction
authorJessica Paquette <jpaquette@apple.com>
Tue, 24 Jul 2018 20:13:10 +0000 (20:13 +0000)
committerJessica Paquette <jpaquette@apple.com>
Tue, 24 Jul 2018 20:13:10 +0000 (20:13 +0000)
commit742c37184cc33e084a4cb3ca23d9127eebedb1f8
tree587831c2fa9d0c0d2ac40a8c1f8e01e9fa81cc9b
parent5df3f9e0708ca0f36e3e879801a9a51ec95278b1
[MachineOutliner][NFC] Move target frame info into OutlinedFunction

Just some gardening here.

Similar to how we moved call information into Candidates, this moves outlined
frame information into OutlinedFunction. This allows us to remove
TargetCostInfo entirely.

Anywhere where we returned a TargetCostInfo struct, we now return an
OutlinedFunction. This establishes OutlinedFunctions as more of a general
repeated sequence, and Candidates as occurrences of those repeated sequences.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337848 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineOutliner.h
include/llvm/CodeGen/TargetInstrInfo.h
lib/CodeGen/MachineOutliner.cpp
lib/Target/AArch64/AArch64InstrInfo.cpp
lib/Target/AArch64/AArch64InstrInfo.h
lib/Target/X86/X86InstrInfo.cpp
lib/Target/X86/X86InstrInfo.h