mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 03:33:20 +01:00
CXX_FAST_TLS calling convention: target independent portion.
Update supportSplitCSR's interface to take machine function instead of the calling convention. Review comments for http://reviews.llvm.org/D15341 llvm-svn: 255818
This commit is contained in:
parent
8d1980fe92
commit
9744c391a9
@ -2264,8 +2264,8 @@ public:
|
||||
}
|
||||
|
||||
/// Return true if the target supports that a subset of CSRs for the given
|
||||
/// calling convention is handled explicitly via copies.
|
||||
virtual bool supportSplitCSR(CallingConv::ID CC) const {
|
||||
/// machine function is handled explicitly via copies.
|
||||
virtual bool supportSplitCSR(MachineFunction *MF) const {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -470,9 +470,9 @@ bool SelectionDAGISel::runOnMachineFunction(MachineFunction &mf) {
|
||||
FuncInfo->SplitCSR = false;
|
||||
SmallVector<MachineBasicBlock*, 4> Returns;
|
||||
|
||||
// We split CSR if the target supports it for the given calling convention
|
||||
// We split CSR if the target supports it for the given function
|
||||
// and the function has only return exits.
|
||||
if (TLI->supportSplitCSR(Fn.getCallingConv())) {
|
||||
if (TLI->supportSplitCSR(MF)) {
|
||||
FuncInfo->SplitCSR = true;
|
||||
|
||||
// Collect all the return blocks.
|
||||
|
Loading…
Reference in New Issue
Block a user