summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2010-12-08 21:39:00 +0000
committerBob Wilson <bob.wilson@apple.com>2010-12-08 21:39:00 +0000
commitb1e9df3b7288113bb319ff7233814f5904725afb (patch)
tree34f6b14afd906c76018fb4d306bcaea3398c6b7c /utils
parentf299da8ec3fee88a1b275560a7f94be4cf10d089 (diff)
downloadllvm-b1e9df3b7288113bb319ff7233814f5904725afb.tar.gz
llvm-b1e9df3b7288113bb319ff7233814f5904725afb.tar.bz2
llvm-b1e9df3b7288113bb319ff7233814f5904725afb.tar.xz
Remove unused function parameter.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@121286 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rw-r--r--utils/TableGen/NeonEmitter.cpp49
1 files changed, 22 insertions, 27 deletions
diff --git a/utils/TableGen/NeonEmitter.cpp b/utils/TableGen/NeonEmitter.cpp
index cb8cdb8091..03f4fd3472 100644
--- a/utils/TableGen/NeonEmitter.cpp
+++ b/utils/TableGen/NeonEmitter.cpp
@@ -509,8 +509,7 @@ static std::string GenMacroLocals(const std::string &proto, StringRef typestr) {
}
// 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 @@ static std::string GenOpString(OpKind op, const std::string &proto,
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 @@ static std::string GenOpString(OpKind op, const std::string &proto,
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 @@ static std::string GenOpString(OpKind op, const std::string &proto,
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 @@ static std::string GenOpString(OpKind op, const std::string &proto,
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);";