OSDN Git Service

[MachineOutliner][NFC] Make Candidates own their call information
authorJessica Paquette <jpaquette@apple.com>
Tue, 24 Jul 2018 17:42:11 +0000 (17:42 +0000)
committerJessica Paquette <jpaquette@apple.com>
Tue, 24 Jul 2018 17:42:11 +0000 (17:42 +0000)
commit264d8038e84e4431e241db342110013c9f3b03fe
tree17307e5e6a5f3f57f717f72489b977bc88d63983
parent6f78ca4aa02d6acbeceb12f66f92b01d598b560d
[MachineOutliner][NFC] Make Candidates own their call information

Before this, TCI contained all the call information for each Candidate.

This moves that information onto the Candidates. As a result, each Candidate
can now supply how it ought to be called. Thus, Candidates will be able to,
say, call the same function in cheaper ways when possible. This also removes
that information from TCI, since it's no longer used there.

A follow-up patch for the AArch64 outliner will demonstrate this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@337840 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