[llvm-commits] [llvm] r121286 - /llvm/trunk/utils/TableGen/NeonEmitter.cpp
Bob Wilson
bob.wilson at apple.com
Wed Dec 8 13:39:00 PST 2010
Author: bwilson
Date: Wed Dec 8 15:39:00 2010
New Revision: 121286
URL: http://llvm.org/viewvc/llvm-project?rev=121286&view=rev
Log:
Remove unused function parameter.
Modified:
llvm/trunk/utils/TableGen/NeonEmitter.cpp
Modified: llvm/trunk/utils/TableGen/NeonEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/TableGen/NeonEmitter.cpp?rev=121286&r1=121285&r2=121286&view=diff
==============================================================================
--- llvm/trunk/utils/TableGen/NeonEmitter.cpp (original)
+++ llvm/trunk/utils/TableGen/NeonEmitter.cpp Wed Dec 8 15:39:00 2010
@@ -509,8 +509,7 @@
}
// Use the vmovl builtin to sign-extend or zero-extend a vector.
-static std::string Extend(const std::string &proto, StringRef typestr,
- const std::string &a) {
+static std::string Extend(StringRef typestr, const std::string &a) {
std::string s;
s = MangleName("vmovl", typestr, ClassS);
s += "(" + a + ")";
@@ -585,21 +584,19 @@
s += "__a + __b;";
break;
case OpAddl:
- s += Extend(proto, typestr, "__a") + " + "
- + Extend(proto, typestr, "__b") + ";";
+ s += Extend(typestr, "__a") + " + " + Extend(typestr, "__b") + ";";
break;
case OpAddw:
- s += "__a + " + Extend(proto, typestr, "__b") + ";";
+ s += "__a + " + Extend(typestr, "__b") + ";";
break;
case OpSub:
s += "__a - __b;";
break;
case OpSubl:
- s += Extend(proto, typestr, "__a") + " - "
- + Extend(proto, typestr, "__b") + ";";
+ s += Extend(typestr, "__a") + " - " + Extend(typestr, "__b") + ";";
break;
case OpSubw:
- s += "__a - " + Extend(proto, typestr, "__b") + ";";
+ s += "__a - " + Extend(typestr, "__b") + ";";
break;
case OpMulN:
s += "__a * " + Duplicate(nElts, typestr, "__b") + ";";
@@ -611,17 +608,15 @@
s += "__a * __b;";
break;
case OpMullN:
- s += Extend(proto, typestr, "__a") + " * " +
- Extend(proto, typestr,
- Duplicate(nElts << (int)quad, typestr, "__b")) + ";";
+ s += Extend(typestr, "__a") + " * " +
+ Extend(typestr, Duplicate(nElts << (int)quad, typestr, "__b")) + ";";
break;
case OpMullLane:
- s += Extend(proto, typestr, "__a") + " * " +
- Extend(proto, typestr, SplatLane(nElts, "__b", "__c")) + ";";
+ s += Extend(typestr, "__a") + " * " +
+ Extend(typestr, SplatLane(nElts, "__b", "__c")) + ";";
break;
case OpMull:
- s += Extend(proto, typestr, "__a") + " * " +
- Extend(proto, typestr, "__b") + ";";
+ s += Extend(typestr, "__a") + " * " + Extend(typestr, "__b") + ";";
break;
case OpMlaN:
s += "__a + (__b * " + Duplicate(nElts, typestr, "__c") + ");";
@@ -633,16 +628,16 @@
s += "__a + (__b * __c);";
break;
case OpMlalN:
- s += "__a + (" + Extend(proto, typestr, "__b") + " * " +
- Extend(proto, typestr, Duplicate(nElts, typestr, "__c")) + ");";
+ s += "__a + (" + Extend(typestr, "__b") + " * " +
+ Extend(typestr, Duplicate(nElts, typestr, "__c")) + ");";
break;
case OpMlalLane:
- s += "__a + (" + Extend(proto, typestr, "__b") + " * " +
- Extend(proto, typestr, SplatLane(nElts, "__c", "__d")) + ");";
+ s += "__a + (" + Extend(typestr, "__b") + " * " +
+ Extend(typestr, SplatLane(nElts, "__c", "__d")) + ");";
break;
case OpMlal:
- s += "__a + (" + Extend(proto, typestr, "__b") + " * " +
- Extend(proto, typestr, "__c") + ");";
+ s += "__a + (" + Extend(typestr, "__b") + " * " +
+ Extend(typestr, "__c") + ");";
break;
case OpMlsN:
s += "__a - (__b * " + Duplicate(nElts, typestr, "__c") + ");";
@@ -654,16 +649,16 @@
s += "__a - (__b * __c);";
break;
case OpMlslN:
- s += "__a - (" + Extend(proto, typestr, "__b") + " * " +
- Extend(proto, typestr, Duplicate(nElts, typestr, "__c")) + ");";
+ s += "__a - (" + Extend(typestr, "__b") + " * " +
+ Extend(typestr, Duplicate(nElts, typestr, "__c")) + ");";
break;
case OpMlslLane:
- s += "__a - (" + Extend(proto, typestr, "__b") + " * " +
- Extend(proto, typestr, SplatLane(nElts, "__c", "__d")) + ");";
+ s += "__a - (" + Extend(typestr, "__b") + " * " +
+ Extend(typestr, SplatLane(nElts, "__c", "__d")) + ");";
break;
case OpMlsl:
- s += "__a - (" + Extend(proto, typestr, "__b") + " * " +
- Extend(proto, typestr, "__c") + ");";
+ s += "__a - (" + Extend(typestr, "__b") + " * " +
+ Extend(typestr, "__c") + ");";
break;
case OpEq:
s += "(" + ts + ")(__a == __b);";
More information about the llvm-commits
mailing list