Skip to content

Commit 518af8d

Browse files
committed
[PowerPC] Fix multiclass template parameter types. NFC.
Fixes TableGen parser errors reported by D95874.
1 parent 859e66f commit 518af8d

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

llvm/lib/Target/PowerPC/PPCInstrInfo.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4003,7 +4003,7 @@ defm : CRNotPat<(i1 (setcc i64:$s1, i64:$s2, SETNE)),
40034003
(EXTRACT_SUBREG (CMPD $s1, $s2), sub_eq)>;
40044004
}
40054005

4006-
multiclass FSetCCPat<SDNode SetCC, ValueType Ty, PatLeaf FCmp> {
4006+
multiclass FSetCCPat<SDPatternOperator SetCC, ValueType Ty, I FCmp> {
40074007
defm : CRNotPat<(i1 (SetCC Ty:$s1, Ty:$s2, SETUGE)),
40084008
(EXTRACT_SUBREG (FCmp $s1, $s2), sub_lt)>;
40094009
defm : CRNotPat<(i1 (SetCC Ty:$s1, Ty:$s2, SETGE)),

llvm/lib/Target/PowerPC/PPCInstrPrefix.td

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2417,9 +2417,9 @@ multiclass P10ReverseSetBool<dag pattern, dag result> {
24172417
(SETBCR8 result)>;
24182418
}
24192419

2420-
multiclass IntSetP10RevSetBool<SDNode SetCC, ValueType Ty, ImmLeaf ZExtTy,
2421-
ImmLeaf SExtTy, PatLeaf Cmpi, PatLeaf Cmpli,
2422-
PatLeaf Cmp, PatLeaf Cmpl> {
2420+
multiclass IntSetP10RevSetBool<SDNode SetCC, ValueType Ty, PatLeaf ZExtTy,
2421+
ImmLeaf SExtTy, I Cmpi, I Cmpli,
2422+
I Cmp, I Cmpl> {
24232423
defm : P10ReverseSetBool<(i1 (SetCC Ty:$s1, Ty:$s2, SETUGE)),
24242424
(EXTRACT_SUBREG (Cmpl $s1, $s2), sub_lt)>;
24252425
defm : P10ReverseSetBool<(i1 (SetCC Ty:$s1, Ty:$s2, SETGE)),
@@ -2445,7 +2445,7 @@ multiclass IntSetP10RevSetBool<SDNode SetCC, ValueType Ty, ImmLeaf ZExtTy,
24452445
(EXTRACT_SUBREG (Cmpli $s1, imm:$imm), sub_eq)>;
24462446
}
24472447

2448-
multiclass FSetP10RevSetBool<SDNode SetCC, ValueType Ty, PatLeaf FCmp> {
2448+
multiclass FSetP10RevSetBool<SDNode SetCC, ValueType Ty, I FCmp> {
24492449
defm : P10ReverseSetBool<(i1 (SetCC Ty:$s1, Ty:$s2, SETUGE)),
24502450
(EXTRACT_SUBREG (FCmp $s1, $s2), sub_lt)>;
24512451
defm : P10ReverseSetBool<(i1 (SetCC Ty:$s1, Ty:$s2, SETGE)),

0 commit comments

Comments
 (0)