mirror of
https://github.com/RPCSX/llvm.git
synced 2024-12-14 23:48:49 +00:00
Regenerate.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32303 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7fed45ea18
commit
f0cf132db7
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -333,7 +333,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
|
#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
|
||||||
#line 270 "/proj/llvm/llvm-2/tools/llvm-upgrade/UpgradeParser.y"
|
#line 279 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
|
||||||
typedef union YYSTYPE {
|
typedef union YYSTYPE {
|
||||||
std::string* String;
|
std::string* String;
|
||||||
TypeInfo Type;
|
TypeInfo Type;
|
||||||
|
@ -333,7 +333,7 @@
|
|||||||
|
|
||||||
|
|
||||||
#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
|
#if ! defined (YYSTYPE) && ! defined (YYSTYPE_IS_DECLARED)
|
||||||
#line 270 "/proj/llvm/llvm-2/tools/llvm-upgrade/UpgradeParser.y"
|
#line 279 "/proj/llvm/llvm-1/tools/llvm-upgrade/UpgradeParser.y"
|
||||||
typedef union YYSTYPE {
|
typedef union YYSTYPE {
|
||||||
std::string* String;
|
std::string* String;
|
||||||
TypeInfo Type;
|
TypeInfo Type;
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
#define YYINCLUDED_STDLIB_H
|
#define YYINCLUDED_STDLIB_H
|
||||||
#define YYDEBUG 1
|
#define YYDEBUG 1
|
||||||
#define UPGRADE_SETCOND_OPS 0
|
#define UPGRADE_SETCOND_OPS 0
|
||||||
|
#define GENERATE_FCMP_INSTS 0
|
||||||
|
|
||||||
int yylex(); // declaration" of xxx warnings.
|
int yylex(); // declaration" of xxx warnings.
|
||||||
int yyparse();
|
int yyparse();
|
||||||
@ -247,8 +248,16 @@ getCompareOp(const std::string& setcc, const TypeInfo& TI) {
|
|||||||
result[6] = cc1;
|
result[6] = cc1;
|
||||||
result[7] = cc2;
|
result[7] = cc2;
|
||||||
if (TI.isFloatingPoint()) {
|
if (TI.isFloatingPoint()) {
|
||||||
|
#if GENERATE_FCMP_INSTS
|
||||||
result[0] = 'f';
|
result[0] = 'f';
|
||||||
result[5] = 'o'; // FIXME: Always map to ordered comparison ?
|
result[5] = 'o'; // FIXME: Always map to ordered comparison ?
|
||||||
|
if (cc1 == 'n')
|
||||||
|
result[5] = 'u'; // NE maps to unordered
|
||||||
|
else
|
||||||
|
result[5] = 'o'; // everything else maps to ordered
|
||||||
|
#else
|
||||||
|
result = setcc;
|
||||||
|
#endif
|
||||||
} else if (TI.isIntegral() || TI.isPointer()) {
|
} else if (TI.isIntegral() || TI.isPointer()) {
|
||||||
result[0] = 'i';
|
result[0] = 'i';
|
||||||
if ((cc1 == 'e' && cc2 == 'q') || (cc1 == 'n' && cc2 == 'e'))
|
if ((cc1 == 'e' && cc2 == 'q') || (cc1 == 'n' && cc2 == 'e'))
|
||||||
@ -265,7 +274,7 @@ getCompareOp(const std::string& setcc, const TypeInfo& TI) {
|
|||||||
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
%file-prefix="UpgradeParser"
|
// %file-prefix="UpgradeParser"
|
||||||
|
|
||||||
%union {
|
%union {
|
||||||
std::string* String;
|
std::string* String;
|
||||||
@ -382,7 +391,7 @@ OptCallingConv
|
|||||||
OptAlign
|
OptAlign
|
||||||
: /*empty*/ { $$ = new std::string(); }
|
: /*empty*/ { $$ = new std::string(); }
|
||||||
| ALIGN EUINT64VAL { *$1 += " " + *$2; delete $2; $$ = $1; };
|
| ALIGN EUINT64VAL { *$1 += " " + *$2; delete $2; $$ = $1; };
|
||||||
;
|
|
||||||
OptCAlign
|
OptCAlign
|
||||||
: /*empty*/ { $$ = new std::string(); }
|
: /*empty*/ { $$ = new std::string(); }
|
||||||
| ',' ALIGN EUINT64VAL {
|
| ',' ALIGN EUINT64VAL {
|
||||||
|
Loading…
Reference in New Issue
Block a user