[llvm] 4c2c6c7 - [PPC][NFC] Replace TM with Subtarget->getTargetMachine() in preparation for GlobalISel.
Kit Barton via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 30 15:25:05 PDT 2020
Author: Kit Barton
Date: 2020-06-30T17:19:24-05:00
New Revision: 4c2c6c7cc1663ee123be806fa02ead0f175568bc
URL: https://github.com/llvm/llvm-project/commit/4c2c6c7cc1663ee123be806fa02ead0f175568bc
DIFF: https://github.com/llvm/llvm-project/commit/4c2c6c7cc1663ee123be806fa02ead0f175568bc.diff
LOG: [PPC][NFC] Replace TM with Subtarget->getTargetMachine() in preparation for GlobalISel.
There are two uses of TM (instance of TargetMachine) when checking options.
These will not work once we enable GlobalISel. This patch replaces those uses of
TM with Subtarget->getTargetMachine().
Added:
Modified:
llvm/lib/Target/PowerPC/PPCInstrInfo.td
Removed:
################################################################################
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.td b/llvm/lib/Target/PowerPC/PPCInstrInfo.td
index edf1730af71f..a51d3231c8e4 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrInfo.td
+++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.td
@@ -998,8 +998,10 @@ def IsE500 : Predicate<"Subtarget->isE500()">;
def HasSPE : Predicate<"Subtarget->hasSPE()">;
def HasICBT : Predicate<"Subtarget->hasICBT()">;
def HasPartwordAtomics : Predicate<"Subtarget->hasPartwordAtomics()">;
-def NoNaNsFPMath : Predicate<"TM.Options.NoNaNsFPMath">;
-def NaNsFPMath : Predicate<"!TM.Options.NoNaNsFPMath">;
+def NoNaNsFPMath
+ : Predicate<"Subtarget->getTargetMachine().Options.NoNaNsFPMath">;
+def NaNsFPMath
+ : Predicate<"!Subtarget->getTargetMachine().Options.NoNaNsFPMath">;
def HasBPERMD : Predicate<"Subtarget->hasBPERMD()">;
def HasExtDiv : Predicate<"Subtarget->hasExtDiv()">;
def IsISA3_0 : Predicate<"Subtarget->isISA3_0()">;
More information about the llvm-commits
mailing list