Skip to content

Commit

Permalink
[mips] Rename FeatureMadd4 to FeatureNoMadd4. NFC
Browse files Browse the repository at this point in the history
`FeatureMadd4` is used to disable `madd4`, and the corresponding feature
option is `(+-)nomadd4`. Renaming to the `FeatureNoMadd4` makes its
purpose clear.

Patch by YunQiang Su.

Differential Revision: https://reviews.llvm.org/D83780
  • Loading branch information
wzssyqa authored and atanasyan committed Jul 15, 2020
1 parent c9c955a commit 3a6c2a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion llvm/lib/Target/Mips/Mips.td
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ def FeatureUseTCCInDIV : SubtargetFeature<
"UseTCCInDIV", "false",
"Force the assembler to use trapping">;

def FeatureMadd4
def FeatureNoMadd4
: SubtargetFeature<"nomadd4", "DisableMadd4", "true",
"Disable 4-operand madd.fmt and related instructions">;

Expand Down
2 changes: 1 addition & 1 deletion llvm/lib/Target/Mips/MipsInstrInfo.td
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def HasEVA : Predicate<"Subtarget->hasEVA()">,
def HasMSA : Predicate<"Subtarget->hasMSA()">,
AssemblerPredicate<(all_of FeatureMSA)>;
def HasMadd4 : Predicate<"!Subtarget->disableMadd4()">,
AssemblerPredicate<(all_of (not FeatureMadd4))>;
AssemblerPredicate<(all_of (not FeatureNoMadd4))>;
def HasMT : Predicate<"Subtarget->hasMT()">,
AssemblerPredicate<(all_of FeatureMT)>;
def UseIndirectJumpsHazard : Predicate<"Subtarget->useIndirectJumpsHazard()">,
Expand Down

0 comments on commit 3a6c2a6

Please sign in to comment.