llvm-project/llvm/lib/Target/Mips
Alex Richardson be15dfa88f [NFC] Use EVT instead of bool for getSetCCInverse()
Summary:
The use of a boolean isInteger flag (generally initialized using
VT.isInteger()) caused errors in our out-of-tree CHERI backend
(https://github.com/CTSRD-CHERI/llvm-project).

In our backend, pointers use a separate ValueType (iFATPTR) and therefore
.isInteger() returns false. This meant that getSetCCInverse() was using the
floating-point variant and generated incorrect code for us:
`(void *)0x12033091e < (void *)0xffffffffffffffff` would return false.

Committing this change will significantly reduce our merge conflicts
for each upstream merge.

Reviewers: spatel, bogner

Reviewed By: bogner

Subscribers: wuzish, arsenm, sdardis, nemanjai, jvesely, nhaehnle, hiraditya, kbarton, jrtc27, atanasyan, jsji, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D70917
2019-12-13 12:22:03 +00:00
..
AsmParser [mips] Fix sc, scs, ll, lld instructions expanding 2019-11-27 00:43:25 +03:00
Disassembler [cmake] Explicitly mark libraries defined in lib/ as "Component Libraries" 2019-11-21 10:48:08 -08:00
MCTargetDesc [MCRegInfo] Add forward sub and super register iterators. (NFC) 2019-12-05 09:29:26 +00:00
TargetInfo [cmake] Explicitly mark libraries defined in lib/ as "Component Libraries" 2019-11-21 10:48:08 -08:00
CMakeLists.txt [Mips][llvm-exegesis] Add a Mips target 2019-10-11 20:26:08 +00:00
LLVMBuild.txt [Mips] Move InstPrinter files to MCTargetDesc. NFC 2019-05-11 01:38:56 +00:00
MSA.txt
MicroMips32r6InstrFormats.td [mips] Split long lines in the code. NFC 2019-11-03 00:50:52 +03:00
MicroMips32r6InstrInfo.td [mips] Split long lines in the code. NFC 2019-11-03 00:50:52 +03:00
MicroMipsDSPInstrFormats.td
MicroMipsDSPInstrInfo.td Reapply r372285 "GlobalISel: Don't materialize immarg arguments to intrinsics" 2019-09-19 16:26:14 +00:00
MicroMipsInstrFPU.td [mips] Split long lines in the code. NFC 2019-11-03 00:50:52 +03:00
MicroMipsInstrFormats.td
MicroMipsInstrInfo.td [mips] Joint MipsMemSimmXXXAsmOperand into the single template class. NFC 2019-11-19 13:58:28 +03:00
MicroMipsSizeReduction.cpp Apply llvm-prefer-register-over-unsigned from clang-tidy to LLVM 2019-08-15 19:22:08 +00:00
Mips.h
Mips.td [mips] Add a 'generic' Mips CPU 2019-11-21 15:17:21 +01:00
Mips16FrameLowering.cpp
Mips16FrameLowering.h
Mips16HardFloat.cpp
Mips16HardFloatInfo.cpp
Mips16HardFloatInfo.h
Mips16ISelDAGToDAG.cpp Apply llvm-prefer-register-over-unsigned from clang-tidy to LLVM 2019-08-15 19:22:08 +00:00
Mips16ISelDAGToDAG.h
Mips16ISelLowering.cpp Apply llvm-prefer-register-over-unsigned from clang-tidy to LLVM 2019-08-15 19:22:08 +00:00
Mips16ISelLowering.h [TargetLowering] Add MachineMemOperand::Flags to allowsMemoryAccess tests (PR42123) 2019-06-12 17:14:03 +00:00
Mips16InstrFormats.td
Mips16InstrInfo.cpp Use MCRegister in copyPhysReg 2019-11-11 14:42:33 +05:30
Mips16InstrInfo.h Use MCRegister in copyPhysReg 2019-11-11 14:42:33 +05:30
Mips16InstrInfo.td [mips] Remove trailing spaces. NFC 2019-11-03 00:50:52 +03:00
Mips16RegisterInfo.cpp
Mips16RegisterInfo.h
Mips32r6InstrFormats.td
Mips32r6InstrInfo.td [mips] Fix sc, scs, ll, lld instructions expanding 2019-11-27 00:43:25 +03:00
Mips64InstrInfo.td [Mips] Add support for min/max/umin/umax atomics 2019-12-12 11:32:37 +01:00
Mips64r6InstrInfo.td [mips] Fix sc, scs, ll, lld instructions expanding 2019-11-27 00:43:25 +03:00
MipsAnalyzeImmediate.cpp
MipsAnalyzeImmediate.h
MipsAsmPrinter.cpp Handle BUNDLE instructions in MipsAsmPrinter 2019-12-04 11:30:00 +00:00
MipsAsmPrinter.h
MipsBranchExpansion.cpp [Alignment][NFC] use llvm::Align for AsmPrinter::EmitAlignment 2019-09-11 13:37:35 +00:00
MipsCCState.cpp
MipsCCState.h
MipsCallLowering.cpp [globalisel] Rename G_GEP to G_PTR_ADD 2019-11-05 10:31:17 -08:00
MipsCallLowering.h [MIPS GlobalISel] Lower aggregate structure return arguments 2019-09-26 10:48:07 +00:00
MipsCallingConv.td [mips] Split long lines in the code. NFC 2019-11-03 00:50:52 +03:00
MipsCondMov.td [mips] Split long lines in the code. NFC 2019-11-03 00:50:52 +03:00
MipsConstantIslandPass.cpp [mips] Split long lines in the code. NFC 2019-11-03 00:50:52 +03:00
MipsDSPInstrFormats.td
MipsDSPInstrInfo.td [mips] Split long lines in the code. NFC 2019-11-03 00:50:52 +03:00
MipsDelaySlotFiller.cpp MipsDelaySlotFiller: Don't move BUNDLE instructions into the delay slot 2019-12-04 11:30:00 +00:00
MipsEVAInstrFormats.td
MipsEVAInstrInfo.td
MipsExpandPseudo.cpp [Mips] Add support for min/max/umin/umax atomics 2019-12-12 11:32:37 +01:00
MipsFastISel.cpp Apply llvm-prefer-register-over-unsigned from clang-tidy to LLVM 2019-08-15 19:22:08 +00:00
MipsFrameLowering.cpp
MipsFrameLowering.h Use Align for TFL::TransientStackAlignment 2019-10-21 08:31:25 +00:00
MipsISelDAGToDAG.cpp [MIPS] For vectors, select `add %x, C` as `sub %x, -C` if it results in inline immediate 2019-09-18 19:34:41 +00:00
MipsISelDAGToDAG.h [MIPS] For vectors, select `add %x, C` as `sub %x, -C` if it results in inline immediate 2019-09-18 19:34:41 +00:00
MipsISelLowering.cpp [NFC] Use EVT instead of bool for getSetCCInverse() 2019-12-13 12:22:03 +00:00
MipsISelLowering.h [Alignment][NFC] TargetCallingConv::setOrigAlign and TargetLowering::getABIAlignmentForCallingConv 2019-10-21 11:01:55 +00:00
MipsInstrFPU.td [mips] Split long lines in the code. NFC 2019-11-03 00:50:52 +03:00
MipsInstrFormats.td [mips] Remove unused `IsPCRelativeLoad` MIPS instructions attribute. NFC 2019-11-21 13:50:14 +03:00
MipsInstrInfo.cpp [mips] Split long lines in the code. NFC 2019-11-03 00:50:52 +03:00
MipsInstrInfo.h [TargetInstrInfo] Let findCommutedOpIndices take const MachineInstr& 2019-09-25 14:55:57 +00:00
MipsInstrInfo.td [Mips] Add support for min/max/umin/umax atomics 2019-12-12 11:32:37 +01:00
MipsInstructionSelector.cpp [IR] Split out target specific intrinsic enums into separate headers 2019-12-11 18:02:14 -08:00
MipsLegalizerInfo.cpp [IR] Split out target specific intrinsic enums into separate headers 2019-12-11 18:02:14 -08:00
MipsLegalizerInfo.h [GlobalISel] Translate calls to memcpy et al to G_INTRINSIC_W_SIDE_EFFECTs and legalize later. 2019-07-19 00:24:45 +00:00
MipsMCInstLower.cpp Allow negative offsets in MipsMCInstLower::LowerOperand 2019-12-04 11:30:00 +00:00
MipsMCInstLower.h Allow negative offsets in MipsMCInstLower::LowerOperand 2019-12-04 11:30:00 +00:00
MipsMSAInstrFormats.td
MipsMSAInstrInfo.td [Mips] Add rematerialization support for ldi.fmt 2019-11-13 11:33:52 +01:00
MipsMTInstrFormats.td
MipsMTInstrInfo.td
MipsMachineFunction.cpp GlobalISel: Remove unsigned variant of SrcOp 2019-06-24 16:16:12 +00:00
MipsMachineFunction.h GlobalISel: Remove unsigned variant of SrcOp 2019-06-24 16:16:12 +00:00
MipsModuleISelDAGToDAG.cpp
MipsOptimizePICCall.cpp Apply llvm-prefer-register-over-unsigned from clang-tidy to LLVM 2019-08-15 19:22:08 +00:00
MipsOptionRecord.h
MipsOs16.cpp
MipsPfmCounters.td [Mips][llvm-exegesis] Add a Mips target 2019-10-11 20:26:08 +00:00
MipsPreLegalizerCombiner.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
MipsRegisterBankInfo.cpp [globalisel] Rename G_GEP to G_PTR_ADD 2019-11-05 10:31:17 -08:00
MipsRegisterBankInfo.h [MIPS GlobalISel] Refactor MipsRegisterBankInfo [NFC] 2019-10-15 09:18:42 +00:00
MipsRegisterBanks.td [MIPS GlobalISel] Add MSA registers to fprb. Select vector load, store 2019-10-15 09:30:08 +00:00
MipsRegisterInfo.cpp CodeGen: Introduce a class for registers 2019-06-24 15:50:29 +00:00
MipsRegisterInfo.h CodeGen: Introduce a class for registers 2019-06-24 15:50:29 +00:00
MipsRegisterInfo.td [mips] Extend range of register indexes accepted by cfcmsa/ctcmsa 2019-06-01 13:55:18 +00:00
MipsSEFrameLowering.cpp [Mips] Always save RA when disabling frame pointer elimination 2019-10-07 14:01:37 +00:00
MipsSEFrameLowering.h
MipsSEISelDAGToDAG.cpp [IR] Split out target specific intrinsic enums into separate headers 2019-12-11 18:02:14 -08:00
MipsSEISelDAGToDAG.h [Mips] Emit proper ABI for _mcount calls 2019-10-08 14:32:03 +00:00
MipsSEISelLowering.cpp [IR] Split out target specific intrinsic enums into separate headers 2019-12-11 18:02:14 -08:00
MipsSEISelLowering.h [TargetLowering] Add MachineMemOperand::Flags to allowsMemoryAccess tests (PR42123) 2019-06-12 17:14:03 +00:00
MipsSEInstrInfo.cpp Use MCRegister in copyPhysReg 2019-11-11 14:42:33 +05:30
MipsSEInstrInfo.h Use MCRegister in copyPhysReg 2019-11-11 14:42:33 +05:30
MipsSERegisterInfo.cpp [Alignment][NFC] Remove unneeded llvm:: scoping on Align types 2019-09-27 12:54:21 +00:00
MipsSERegisterInfo.h
MipsSchedule.td
MipsScheduleGeneric.td [Mips] Add support for min/max/umin/umax atomics 2019-12-12 11:32:37 +01:00
MipsScheduleP5600.td [Mips] Add support for min/max/umin/umax atomics 2019-12-12 11:32:37 +01:00
MipsSubtarget.cpp [mips] Show an error if 64-bit target triple provided with 32-bit CPU 2019-11-13 13:32:39 +03:00
MipsSubtarget.h [mips] Implement Octeon+ `saa` and `saad` instructions 2019-11-07 13:58:50 +03:00
MipsTargetMachine.cpp Sink all InitializePasses.h includes 2019-11-13 16:34:37 -08:00
MipsTargetMachine.h
MipsTargetObjectFile.cpp
MipsTargetObjectFile.h
MipsTargetStreamer.h [mips] Fix sc, scs, ll, lld instructions expanding 2019-11-27 00:43:25 +03:00
Relocation.txt