[llvm] 3a6c2a6 - [mips] Rename FeatureMadd4 to FeatureNoMadd4. NFC

Simon Atanasyan via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 15 04:40:03 PDT 2020


Author: YunQiang Su
Date: 2020-07-15T14:39:38+03:00
New Revision: 3a6c2a61c64277a51a9dda22eece8072c0590fa4

URL: https://github.com/llvm/llvm-project/commit/3a6c2a61c64277a51a9dda22eece8072c0590fa4
DIFF: https://github.com/llvm/llvm-project/commit/3a6c2a61c64277a51a9dda22eece8072c0590fa4.diff

LOG: [mips] Rename FeatureMadd4 to FeatureNoMadd4. NFC

`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

Added: 
    

Modified: 
    llvm/lib/Target/Mips/Mips.td
    llvm/lib/Target/Mips/MipsInstrInfo.td

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/Mips/Mips.td b/llvm/lib/Target/Mips/Mips.td
index 7fe750249c58..792960332bcc 100644
--- a/llvm/lib/Target/Mips/Mips.td
+++ b/llvm/lib/Target/Mips/Mips.td
@@ -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">;
 

diff  --git a/llvm/lib/Target/Mips/MipsInstrInfo.td b/llvm/lib/Target/Mips/MipsInstrInfo.td
index a3b928870f3f..089fed9ec0bf 100644
--- a/llvm/lib/Target/Mips/MipsInstrInfo.td
+++ b/llvm/lib/Target/Mips/MipsInstrInfo.td
@@ -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()">,


        


More information about the llvm-commits mailing list