Skip to content

Commit 7a7bbc3

Browse files
committed
Address comments
- More consistent .td - Clearer comment in AArch64ExpandPseudoInsts.cpp
1 parent 1ccb570 commit 7a7bbc3

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

llvm/lib/Target/AArch64/AArch64ExpandPseudoInsts.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,8 @@ bool AArch64ExpandPseudo::expand_DestructiveOp(
529529
}
530530
break;
531531
case AArch64::Destructive2xRegImmUnpred:
532-
// EXT_ZZI_CONSTRUCTIVE Zd, Zs, Imm ==> EXT_ZZI Zds, Zds, Zds, Imm
532+
// EXT_ZZI_CONSTRUCTIVE Zd, Zs, Imm
533+
// ==> MOVPRFX Zd Zs; EXT_ZZI Zd, Zd, Zs, Imm
533534
std::tie(DOPIdx, SrcIdx, Src2Idx) = std::make_tuple(1, 1, 2);
534535
break;
535536
default:

llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1023,7 +1023,7 @@ let Predicates = [HasSVE_or_SME] in {
10231023
defm INSR_ZV : sve_int_perm_insrv<"insr", AArch64insr>;
10241024
defm EXT_ZZI : sve_int_perm_extract_i<"ext", AArch64ext, "EXT_ZZI_CONSTRUCTIVE">;
10251025

1026-
def EXT_ZZI_CONSTRUCTIVE : UnpredRegImmPseudo<"EXT_ZZI_CONSTRUCTIVE", ZPR8, imm0_255>;
1026+
def EXT_ZZI_CONSTRUCTIVE : UnpredRegImmPseudo<ZPR8, imm0_255>;
10271027

10281028
defm RBIT_ZPmZ : sve_int_perm_rev_rbit<"rbit", AArch64rbit_mt>;
10291029
defm REVB_ZPmZ : sve_int_perm_rev_revb<"revb", AArch64revb_mt>;

llvm/lib/Target/AArch64/SVEInstrFormats.td

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -810,8 +810,8 @@ let hasNoSchedulingInfo = 1 in {
810810
let FalseLanes = flags;
811811
}
812812

813-
class UnpredRegImmPseudo<string name, ZPRRegOp zprty, Operand immty>
814-
: SVEPseudo2Instr<name, 0>,
813+
class UnpredRegImmPseudo<ZPRRegOp zprty, Operand immty>
814+
: SVEPseudo2Instr<NAME, 0>,
815815
Pseudo<(outs zprty:$Zd), (ins zprty:$Zs, immty:$imm), []> {
816816
}
817817
}
@@ -1895,9 +1895,9 @@ class sve_int_perm_extract_i<string asm>
18951895
let hasSideEffects = 0;
18961896
}
18971897

1898-
multiclass sve_int_perm_extract_i<string asm, SDPatternOperator op, string pseudoInstrName> {
1898+
multiclass sve_int_perm_extract_i<string asm, SDPatternOperator op, string Ps> {
18991899
def NAME : sve_int_perm_extract_i<asm>,
1900-
SVEPseudo2Instr<pseudoInstrName, 1>;
1900+
SVEPseudo2Instr<Ps, 1>;
19011901

19021902
def : SVE_3_Op_Imm_Pat<nxv16i8, op, nxv16i8, nxv16i8, i32, imm0_255,
19031903
!cast<Instruction>(NAME)>;

0 commit comments

Comments
 (0)