summaryrefslogtreecommitdiff
path: root/lib/Target/XCore/XCoreISelLowering.h
diff options
context:
space:
mode:
authorRichard Osborne <richard@xmos.com>2013-05-04 17:17:10 +0000
committerRichard Osborne <richard@xmos.com>2013-05-04 17:17:10 +0000
commit40827bc716e9eda3e70460207696f2ec10dd67ad (patch)
treeb098c43c236785e6ff7ba57a5c5c36dbd1de5129 /lib/Target/XCore/XCoreISelLowering.h
parent597432fbe53bda0069b0ad13e5ad57ae0ee7ee45 (diff)
downloadllvm-40827bc716e9eda3e70460207696f2ec10dd67ad.tar.gz
llvm-40827bc716e9eda3e70460207696f2ec10dd67ad.tar.bz2
llvm-40827bc716e9eda3e70460207696f2ec10dd67ad.tar.xz
[XCore] Simplify code that checks for an aligned base plus a constant.
The code now makes use of ComputeMaskedBits, SelectionDAG::isBaseWithConstantOffset and TargetLowering::isGAPlusOffset where appropriate reducing the amount of logic needed in XCoreISelLowering. No intended functionality change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181125 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/XCore/XCoreISelLowering.h')
-rw-r--r--lib/Target/XCore/XCoreISelLowering.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Target/XCore/XCoreISelLowering.h b/lib/Target/XCore/XCoreISelLowering.h
index 7362b0c44a..4ea5d9ff06 100644
--- a/lib/Target/XCore/XCoreISelLowering.h
+++ b/lib/Target/XCore/XCoreISelLowering.h
@@ -135,6 +135,9 @@ namespace llvm {
SDValue getReturnAddressFrameIndex(SelectionDAG &DAG) const;
SDValue getGlobalAddressWrapper(SDValue GA, const GlobalValue *GV,
SelectionDAG &DAG) const;
+ SDValue lowerLoadWordFromAlignedBasePlusOffset(DebugLoc DL, SDValue Chain,
+ SDValue Base, int64_t Offset,
+ SelectionDAG &DAG) const;
// Lower Operand specifics
SDValue LowerLOAD(SDValue Op, SelectionDAG &DAG) const;