diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2013-02-06 17:32:29 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2013-02-06 17:32:29 +0000 |
commit | f3b2a1e8b38b9509bb2cc5029a96a4c998f0e08f (patch) | |
tree | 290e062c3788dc7bb7885fa8af54bfedc5ae656a /llvm/lib/Target/R600/R600ISelLowering.h | |
parent | 5ce9c5657cb77c0f1919be0aa3c990009a7bc60b (diff) | |
download | bcm5719-llvm-f3b2a1e8b38b9509bb2cc5029a96a4c998f0e08f.tar.gz bcm5719-llvm-f3b2a1e8b38b9509bb2cc5029a96a4c998f0e08f.zip |
R600: Support for indirect addressing v4
Only implemented for R600 so far. SI is missing implementations of a
few callbacks used by the Indirect Addressing pass and needs code to
handle frame indices.
At the moment R600 only supports array sizes of 16 dwords or less.
Register packing of vector types is currently disabled, which means that a
vec4 is stored in T0_X, T1_X, T2_X, T3_X, rather than T0_XYZW. In order
to correctly pack registers in all cases, we will need to implement an
analysis pass for R600 that determines the correct vector width for each
array.
v2:
- Add support for i8 zext load from stack.
- Coding style fixes
v3:
- Don't reserve registers for indirect addressing when it isn't
being used.
- Fix bug caused by LLVM limiting the number of SubRegIndex
declarations.
v4:
- Fix 64-bit defines
llvm-svn: 174525
Diffstat (limited to 'llvm/lib/Target/R600/R600ISelLowering.h')
-rw-r--r-- | llvm/lib/Target/R600/R600ISelLowering.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/Target/R600/R600ISelLowering.h b/llvm/lib/Target/R600/R600ISelLowering.h index c141d50210e..afa38971551 100644 --- a/llvm/lib/Target/R600/R600ISelLowering.h +++ b/llvm/lib/Target/R600/R600ISelLowering.h @@ -64,7 +64,12 @@ private: SDValue LowerFPTOUINT(SDValue Op, SelectionDAG &DAG) const; SDValue LowerFPOW(SDValue Op, SelectionDAG &DAG) const; SDValue LowerLOAD(SDValue Op, SelectionDAG &DAG) const; - + SDValue LowerFrameIndex(SDValue Op, SelectionDAG &DAG) const; + + SDValue stackPtrToRegIndex(SDValue Ptr, unsigned StackWidth, + SelectionDAG &DAG) const; + void getStackAddress(unsigned StackWidth, unsigned ElemIdx, + unsigned &Channel, unsigned &PtrIncr) const; bool isZero(SDValue Op) const; }; |