llvm-6502/lib/Target/Mips
Richard Sandiford a8a7099c18 Turn MipsOptimizeMathLibCalls into a target-independent scalar transform
...so that it can be used for z too.  Most of the code is the same.
The only real change is to use TargetTransformInfo to test when a sqrt
instruction is available.

The pass is opt-in because at the moment it only handles sqrt.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@189097 91177308-0d34-0410-b5e6-96231b3b80d8
2013-08-23 10:27:02 +00:00
..
AsmParser [mips] Define register class FGRH32 for the high half of the 64-bit floating 2013-08-20 22:58:56 +00:00
Disassembler [mips] Define register class FGRH32 for the high half of the 64-bit floating 2013-08-20 22:58:56 +00:00
InstPrinter [micromips] Print instruction alias "not" if the last operand of a nor is zero. 2013-08-21 01:18:46 +00:00
MCTargetDesc [Mips] Support for unaligned load/store microMips instructions 2013-08-13 20:19:16 +00:00
TargetInfo
CMakeLists.txt Turn MipsOptimizeMathLibCalls into a target-independent scalar transform 2013-08-23 10:27:02 +00:00
LLVMBuild.txt
Makefile
MicroMipsInstrFormats.td [Mips] Support for unaligned load/store microMips instructions 2013-08-13 20:19:16 +00:00
MicroMipsInstrInfo.td [mips] Resolve register classes dynamically using ptr_rc to reduce the number of 2013-08-20 21:08:22 +00:00
Mips16FrameLowering.cpp
Mips16FrameLowering.h
Mips16HardFloat.cpp Remove global construction. const char* is sufficient here. 2013-08-12 09:37:29 +00:00
Mips16HardFloat.h
Mips16InstrFormats.td
Mips16InstrInfo.cpp Remove unused stdio.h includes 2013-08-18 08:29:51 +00:00
Mips16InstrInfo.h
Mips16InstrInfo.td [mips] Rename HIRegs and LORegs. 2013-08-14 00:47:08 +00:00
Mips16ISelDAGToDAG.cpp
Mips16ISelDAGToDAG.h
Mips16ISelLowering.cpp
Mips16ISelLowering.h
Mips16RegisterInfo.cpp
Mips16RegisterInfo.h
Mips64InstrInfo.td [mips] Remove predicates that were incorrectly or unnecessarily added. 2013-08-20 23:21:55 +00:00
Mips.h Turn MipsOptimizeMathLibCalls into a target-independent scalar transform 2013-08-23 10:27:02 +00:00
Mips.td [Mips][msa] Added initial MSA support. 2013-08-13 20:54:07 +00:00
MipsAnalyzeImmediate.cpp
MipsAnalyzeImmediate.h
MipsAsmPrinter.cpp
MipsAsmPrinter.h
MipsCallingConv.td [mips] Add support for calling convention CC_MipsO32_FP64, which is used when the 2013-08-20 23:38:40 +00:00
MipsCodeEmitter.cpp [Mips] Support for unaligned load/store microMips instructions 2013-08-13 20:19:16 +00:00
MipsCondMov.td [mips] Fix instruction definitions that were incorrectly marked as code-gen-only. 2013-08-19 19:08:03 +00:00
MipsConstantIslandPass.cpp
MipsDelaySlotFiller.cpp
MipsDSPInstrFormats.td
MipsDSPInstrInfo.td [mips] Resolve register classes dynamically using ptr_rc to reduce the number of 2013-08-20 21:08:22 +00:00
MipsFrameLowering.cpp
MipsFrameLowering.h
MipsInstrFormats.td This patch implements ei and di instructions for mips. Test cases are added. 2013-08-12 13:07:23 +00:00
MipsInstrFPU.td [mips] Add support for mfhc1 and mthc1. 2013-08-20 23:47:25 +00:00
MipsInstrInfo.cpp
MipsInstrInfo.h
MipsInstrInfo.td [mips] Resolve register classes dynamically using ptr_rc to reduce the number of 2013-08-20 21:08:22 +00:00
MipsISelDAGToDAG.cpp [Mips] Support for unaligned load/store microMips instructions 2013-08-13 20:19:16 +00:00
MipsISelDAGToDAG.h [Mips] Support for unaligned load/store microMips instructions 2013-08-13 20:19:16 +00:00
MipsISelLowering.cpp [mips] Add support for calling convention CC_MipsO32_FP64, which is used when the 2013-08-20 23:38:40 +00:00
MipsISelLowering.h [mips] Add support for calling convention CC_MipsO32_FP64, which is used when the 2013-08-20 23:38:40 +00:00
MipsJITInfo.cpp
MipsJITInfo.h
MipsLongBranch.cpp
MipsMachineFunction.cpp
MipsMachineFunction.h
MipsMCInstLower.cpp
MipsMCInstLower.h
MipsModuleISelDAGToDAG.cpp
MipsModuleISelDAGToDAG.h
MipsMSAInstrFormats.td [mips][msa] Added and.v, bmnz.v, bmz.v, bsel.v, nor.v, or.v, xor.v 2013-08-20 08:38:21 +00:00
MipsMSAInstrInfo.td [mips][msa] Split MSA128 regset into size-specific sets containing the same registers. 2013-08-23 10:10:13 +00:00
MipsOs16.cpp Add an option which permits the user to specify using a bitmask, that various 2013-08-20 20:53:09 +00:00
MipsOs16.h
MipsRegisterInfo.cpp [mips] Add support for calling convention CC_MipsO32_FP64, which is used when the 2013-08-20 23:38:40 +00:00
MipsRegisterInfo.h [mips] Resolve register classes dynamically using ptr_rc to reduce the number of 2013-08-20 21:08:22 +00:00
MipsRegisterInfo.td [mips][msa] Split MSA128 regset into size-specific sets containing the same registers. 2013-08-23 10:10:13 +00:00
MipsRelocations.h
MipsSchedule.td
MipsSEFrameLowering.cpp [mips] Define register class FGRH32 for the high half of the 64-bit floating 2013-08-20 22:58:56 +00:00
MipsSEFrameLowering.h
MipsSEInstrInfo.cpp [mips] Add support for mfhc1 and mthc1. 2013-08-20 23:47:25 +00:00
MipsSEInstrInfo.h [mips] Add support for mfhc1 and mthc1. 2013-08-20 23:47:25 +00:00
MipsSEISelDAGToDAG.cpp [Mips] Support for unaligned load/store microMips instructions 2013-08-13 20:19:16 +00:00
MipsSEISelDAGToDAG.h [Mips] Support for unaligned load/store microMips instructions 2013-08-13 20:19:16 +00:00
MipsSEISelLowering.cpp [mips][msa] Split MSA128 regset into size-specific sets containing the same registers. 2013-08-23 10:10:13 +00:00
MipsSEISelLowering.h [mips][msa] Split MSA128 regset into size-specific sets containing the same registers. 2013-08-23 10:10:13 +00:00
MipsSelectionDAGInfo.cpp
MipsSelectionDAGInfo.h
MipsSERegisterInfo.cpp
MipsSERegisterInfo.h
MipsSubtarget.cpp Fix a subtle difference between running clang vs llc for mips16. 2013-08-16 23:05:18 +00:00
MipsSubtarget.h [mips] Add support for calling convention CC_MipsO32_FP64, which is used when the 2013-08-20 23:38:40 +00:00
MipsTargetMachine.cpp Turn MipsOptimizeMathLibCalls into a target-independent scalar transform 2013-08-23 10:27:02 +00:00
MipsTargetMachine.h
MipsTargetObjectFile.cpp
MipsTargetObjectFile.h