Skip to content

Commit

Permalink
[RISCV] Remove HasDummyMask from tablegen files.
Browse files Browse the repository at this point in the history
This isn't needed after D152050.

Reviewed By: reames

Differential Revision: https://reviews.llvm.org/D152218
  • Loading branch information
topperc committed Jun 12, 2023
1 parent d170eff commit 6b8850f
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 92 deletions.
6 changes: 1 addition & 5 deletions llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.h
Expand Up @@ -64,12 +64,8 @@ enum {
VLMulShift = ConstraintShift + 3,
VLMulMask = 0b111 << VLMulShift,

// Do we need to add a dummy mask op when converting RVV Pseudo to MCInst.
HasDummyMaskOpShift = VLMulShift + 3,
HasDummyMaskOpMask = 1 << HasDummyMaskOpShift,

// Force a tail agnostic policy even this instruction has a tied destination.
ForceTailAgnosticShift = HasDummyMaskOpShift + 1,
ForceTailAgnosticShift = VLMulShift + 3,
ForceTailAgnosticMask = 1 << ForceTailAgnosticShift,

// Does this instruction have a merge operand that must be removed when
Expand Down
19 changes: 8 additions & 11 deletions llvm/lib/Target/RISCV/RISCVInstrFormats.td
Expand Up @@ -187,36 +187,33 @@ class RVInst<dag outs, dag ins, string opcodestr, string argstr,
bits<3> VLMul = 0;
let TSFlags{10-8} = VLMul;

bit HasDummyMask = 0;
let TSFlags{11} = HasDummyMask;

bit ForceTailAgnostic = false;
let TSFlags{12} = ForceTailAgnostic;
let TSFlags{11} = ForceTailAgnostic;

bit HasMergeOp = 0;
let TSFlags{13} = HasMergeOp;
let TSFlags{12} = HasMergeOp;

bit HasSEWOp = 0;
let TSFlags{14} = HasSEWOp;
let TSFlags{13} = HasSEWOp;

bit HasVLOp = 0;
let TSFlags{15} = HasVLOp;
let TSFlags{14} = HasVLOp;

bit HasVecPolicyOp = 0;
let TSFlags{16} = HasVecPolicyOp;
let TSFlags{15} = HasVecPolicyOp;

bit IsRVVWideningReduction = 0;
let TSFlags{17} = IsRVVWideningReduction;
let TSFlags{16} = IsRVVWideningReduction;

bit UsesMaskPolicy = 0;
let TSFlags{18} = UsesMaskPolicy;
let TSFlags{17} = UsesMaskPolicy;

// Indicates that the result can be considered sign extended from bit 31. Some
// instructions with this flag aren't W instructions, but are either sign
// extended from a smaller size, always outputs a small integer, or put zeros
// in bits 63:31. Used by the SExtWRemoval pass.
bit IsSignExtendingOpW = 0;
let TSFlags{19} = IsSignExtendingOpW;
let TSFlags{18} = IsSignExtendingOpW;
}

// Pseudo instructions
Expand Down

0 comments on commit 6b8850f

Please sign in to comment.