This is in preparation for adding assignments to temporaries to ensure
that the proper type checking is done.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120649
91177308-0d34-0410-b5e6-
96231b3b80d8
if (define) {
if (sret)
- s += "({ " + ts + " r; ";
+ s += ts + " r; ";
else
s += "(" + ts + ")";
} else if (sret) {
if (ck == ClassB)
s += ", " + utostr(GetNeonEnum(proto, typestr));
- if (define)
- s += ")";
- else
- s += ");";
+ s += ");";
if (proto[0] != 'v') {
if (define) {
if (sret)
- s += "; r; })";
+ s += " r;";
} else {
s += " return r;";
}
// Definition.
if (define)
- OS << " ";
+ OS << " __extension__ ({ \\\n ";
else
- OS << " { ";
+ OS << " { \\\n ";
if (k != OpNone) {
OS << GenOpString(k, Proto, TypeVec[ti]);
throw TGError(R->getLoc(), "Builtin has no class kind");
OS << GenBuiltin(name, Proto, TypeVec[ti], ck);
}
- if (!define)
+ if (define)
+ OS << " })";
+ else
OS << " }";
OS << "\n";
}