Skip to content

Commit 0f15ace

Browse files
committed
[mips] Rename target feature Mips3D => HasMips3D. NFC
1 parent bb621ca commit 0f15ace

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

llvm/lib/Target/Mips/MipsInstrFPU.td

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def IsNotSingleFloat : Predicate<"!Subtarget->isSingleFloat()">,
7272
AssemblerPredicate<(all_of (not FeatureSingleFloat))>;
7373
def IsNotSoftFloat : Predicate<"!Subtarget->useSoftFloat()">,
7474
AssemblerPredicate<(all_of (not FeatureSoftFloat))>;
75-
def Mips3D : Predicate<"Subtarget->has3D()">,
75+
def HasMips3D : Predicate<"Subtarget->has3D()">,
7676
AssemblerPredicate<(all_of FeatureMips3D)>;
7777

7878
//===----------------------------------------------------------------------===//
@@ -479,7 +479,7 @@ let DecoderNamespace = "MipsFP64" in {
479479
}
480480

481481
let DecoderNamespace = "MipsFP64" in {
482-
let AdditionalPredicates = [Mips3D] in {
482+
let AdditionalPredicates = [HasMips3D] in {
483483
def ADDR_PS64 : ADDS_FT<"addr.ps", FGR64Opnd, II_ADDR_PS, 0>,
484484
ADDS_FM<0x18, 22>, ISA_MIPS32R2_NOT_32R6_64R6, FGR_64;
485485
def MULR_PS64 : ADDS_FT<"mulr.ps", FGR64Opnd, II_MULR_PS, 0>,

llvm/lib/Target/Mips/MipsSubtarget.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,7 @@ class MipsSubtarget : public MipsGenSubtargetInfo {
315315
bool hasDSP() const { return HasDSP; }
316316
bool hasDSPR2() const { return HasDSPR2; }
317317
bool hasDSPR3() const { return HasDSPR3; }
318+
bool has3D() const { return Has3D; }
318319
bool hasMSA() const { return HasMSA; }
319320
bool disableMadd4() const { return DisableMadd4; }
320321
bool hasEVA() const { return HasEVA; }

0 commit comments

Comments
 (0)