mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-08 12:21:04 +00:00
Rename
llvm-svn: 31413
This commit is contained in:
parent
8cac48e619
commit
466e20fca2
@ -372,13 +372,13 @@ public:
|
||||
return JumpBufAlignment;
|
||||
}
|
||||
|
||||
/// getLegalPreIndexedAddressBase - returns true by value, base pointer and
|
||||
/// getPreIndexedAddressParts - returns true by value, base pointer and
|
||||
/// offset pointer and addressing mode by reference if the node's address
|
||||
/// can be legally represented as pre-indexed load / store address.
|
||||
virtual bool getLegalPreIndexedAddressBase(SDNode *N, SDOperand &Base,
|
||||
SDOperand &Offset,
|
||||
ISD::MemOpAddrMode &AM,
|
||||
SelectionDAG &DAG) {
|
||||
virtual bool getPreIndexedAddressParts(SDNode *N, SDOperand &Base,
|
||||
SDOperand &Offset,
|
||||
ISD::MemOpAddrMode &AM,
|
||||
SelectionDAG &DAG) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -187,7 +187,7 @@ namespace {
|
||||
SDOperand BasePtr;
|
||||
SDOperand Offset;
|
||||
ISD::MemOpAddrMode AM = ISD::UNINDEXED;
|
||||
if (TLI.getLegalPreIndexedAddressBase(N, BasePtr, Offset, AM, DAG)) {
|
||||
if (TLI.getPreIndexedAddressParts(N, BasePtr, Offset, AM, DAG)) {
|
||||
// Try turning it into a pre-indexed load / store except when
|
||||
// 1) Another use of base ptr is a predecessor of N. If ptr is folded
|
||||
// that would create a cycle.
|
||||
|
Loading…
Reference in New Issue
Block a user