summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/R600/R600ISelLowering.h
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2013-01-23 02:09:06 +0000
committerTom Stellard <thomas.stellard@amd.com>2013-01-23 02:09:06 +0000
commit365366f9ef2c0a3ded8eadd805983c6f3749bc57 (patch)
tree4a115101d8aec6d7e74242d2f29339b200933ac4 /llvm/lib/Target/R600/R600ISelLowering.h
parentff62c35da0583cde299bc90843c7927f0fd507f4 (diff)
downloadbcm5719-llvm-365366f9ef2c0a3ded8eadd805983c6f3749bc57.tar.gz
bcm5719-llvm-365366f9ef2c0a3ded8eadd805983c6f3749bc57.zip
R600: rework handling of the constants
Remove Cxxx registers, add new special register - "ALU_CONST" and new operand for each alu src - "sel". ALU_CONST is used to designate that the new operand contains the value to override src.sel, src.kc_bank, src.chan for constants in the driver. Patch by: Vadim Girlin Vincent Lejeune: - Use pointers for constants - Fold CONST_ADDRESS when possible Tom Stellard: - Give CONSTANT_BUFFER_0 its own address space - Use integer types for constant loads Reviewed-by: Tom Stellard <thomas.stellard@amd.com> llvm-svn: 173222
Diffstat (limited to 'llvm/lib/Target/R600/R600ISelLowering.h')
-rw-r--r--llvm/lib/Target/R600/R600ISelLowering.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Target/R600/R600ISelLowering.h b/llvm/lib/Target/R600/R600ISelLowering.h
index 2b954dab558..c141d50210e 100644
--- a/llvm/lib/Target/R600/R600ISelLowering.h
+++ b/llvm/lib/Target/R600/R600ISelLowering.h
@@ -63,6 +63,7 @@ private:
SDValue LowerSTORE(SDValue Op, SelectionDAG &DAG) const;
SDValue LowerFPTOUINT(SDValue Op, SelectionDAG &DAG) const;
SDValue LowerFPOW(SDValue Op, SelectionDAG &DAG) const;
+ SDValue LowerLOAD(SDValue Op, SelectionDAG &DAG) const;
bool isZero(SDValue Op) const;
};
OpenPOWER on IntegriCloud