diff options
author | Chris Lattner <sabre@nondot.org> | 2006-04-08 06:46:53 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2006-04-08 06:46:53 +0000 |
commit | 140a58f9dfda30dbb80edd3da1b5632c178f7efc (patch) | |
tree | 529eafccfa90ee8e8c2d1750484f7a5ae508c6b7 /lib/Target/PowerPC/PPCISelLowering.h | |
parent | b84a6c837142d58e8703495a0d74497bdf590d14 (diff) |
Change the interface to the predicate that determines if vsplti* can be used.
No functionality changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@27536 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/PowerPC/PPCISelLowering.h')
-rw-r--r-- | lib/Target/PowerPC/PPCISelLowering.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/Target/PowerPC/PPCISelLowering.h b/lib/Target/PowerPC/PPCISelLowering.h index c6c91af724..48f9e1aa42 100644 --- a/lib/Target/PowerPC/PPCISelLowering.h +++ b/lib/Target/PowerPC/PPCISelLowering.h @@ -131,10 +131,11 @@ namespace llvm { /// specified isSplatShuffleMask VECTOR_SHUFFLE mask. unsigned getVSPLTImmediate(SDNode *N, unsigned EltSize); - /// isVecSplatImm - Return true if this is a build_vector of constants which - /// can be formed by using a vspltis[bhw] instruction. The ByteSize field - /// indicates the number of bytes of each element [124] -> [bhw]. - bool isVecSplatImm(SDNode *N, unsigned ByteSize, char *Val = 0); + /// get_VSPLI_elt - If this is a build_vector of constants which can be + /// formed by using a vspltis[bhw] instruction of the specified element + /// size, return the constant being splatted. The ByteSize field indicates + /// the number of bytes of each element [124] -> [bhw]. + SDOperand get_VSPLI_elt(SDNode *N, unsigned ByteSize, SelectionDAG &DAG); } class PPCTargetLowering : public TargetLowering { |