From 4c2c6c7cc1663ee123be806fa02ead0f175568bc Mon Sep 17 00:00:00 2001 From: Kit Barton Date: Tue, 30 Jun 2020 12:38:31 -0500 Subject: [PATCH] [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(). --- llvm/lib/Target/PowerPC/PPCInstrInfo.td | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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()">;