fix duplicate definition errors
authorChris Lattner <sabre@nondot.org>
Mon, 20 Mar 2006 06:33:01 +0000 (06:33 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 20 Mar 2006 06:33:01 +0000 (06:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26896 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/PowerPC/PPCISelLowering.cpp
lib/Target/PowerPC/PPCISelLowering.h

index 258de780eb6ef9a474bd2b65eacc4b2cd8b27192..3eb5e2dacead83b76b2484673a86d6056752c800 100644 (file)
@@ -239,6 +239,24 @@ static bool isFloatingPointZero(SDOperand Op) {
   return false;
 }
 
+
+/// isSplatShuffleMask - Return true if the specified VECTOR_SHUFFLE operand
+/// specifies a splat of a single element that is suitable for input to
+/// VSPLTB/VSPLTH/VSPLTW.
+bool PPC::isSplatShuffleMask(SDNode *N) {
+  assert(N->getOpcode() == ISD::BUILD_VECTOR);
+  return false;
+}
+
+/// getVSPLTImmediate - Return the appropriate VSPLT* immediate to splat the
+/// specified isSplatShuffleMask VECTOR_SHUFFLE mask.
+unsigned PPC::getVSPLTImmediate(SDNode *N) {
+  assert(isSplatShuffleMask(N));
+  return 0;
+}
+
+
+
 /// LowerOperation - Provide custom lowering hooks for some operations.
 ///
 SDOperand PPCTargetLowering::LowerOperation(SDOperand Op, SelectionDAG &DAG) {
index e4e9e6830406bf656489569676cbc5173992fee7..cf7ebc482476cd2579667c12f9cb9b0f2d0d3f05 100644 (file)
@@ -89,11 +89,11 @@ namespace llvm {
     /// isSplatShuffleMask - Return true if the specified VECTOR_SHUFFLE operand
     /// specifies a splat of a single element that is suitable for input to
     /// VSPLTB/VSPLTH/VSPLTW.
-    bool isSplatShuffleMask(SDNode *N) { return false; } // FIXME:
+    bool isSplatShuffleMask(SDNode *N);
     
     /// getVSPLTImmediate - Return the appropriate VSPLT* immediate to splat the
     /// specified isSplatShuffleMask VECTOR_SHUFFLE mask.
-    unsigned getVSPLTImmediate(SDNode *N) { return 0; }  // FIXME:
+    unsigned getVSPLTImmediate(SDNode *N);
   }
   
   class PPCTargetLowering : public TargetLowering {