llvm/lib/CodeGen/SelectionDAG
Hal Finkel 66d1fa6f4b Add a llvm.copysign intrinsic
This adds a llvm.copysign intrinsic; We already have Libfunc recognition for
copysign (which is turned into the FCOPYSIGN SDAG node). In order to
autovectorize calls to copysign in the loop vectorizer, we need a corresponding
intrinsic as well.

In addition to the expected changes to the language reference, the loop
vectorizer, BasicTTI, and the SDAG builder (the intrinsic is transformed into
an FCOPYSIGN node, just like the function call), this also adds FCOPYSIGN to a
few lists in LegalizeVector{Ops,Types} so that vector copysigns can be
expanded.

In TargetLoweringBase::initActions, I've made the default action for FCOPYSIGN
be Expand for vector types. This seems correct for all in-tree targets, and I
think is the right thing to do because, previously, there was no way to generate
vector-values FCOPYSIGN nodes (and most targets don't specify an action for
vector-typed FCOPYSIGN).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@188728 91177308-0d34-0410-b5e6-96231b3b80d8
2013-08-19 23:35:46 +00:00
..
CMakeLists.txt
DAGCombiner.cpp Replace getValueType().getSimpleVT() with getSimpleValueType(). 2013-08-15 02:44:19 +00:00
FastISel.cpp
FunctionLoweringInfo.cpp
InstrEmitter.cpp
InstrEmitter.h Add -*- C++ -*- to InstrEmitter.h. 2013-07-17 18:53:29 +00:00
LegalizeDAG.cpp Replace getValueType().getSimpleVT() with getSimpleValueType(). 2013-08-15 02:44:19 +00:00
LegalizeFloatTypes.cpp Add ExpandFloatOp_FCOPYSIGN to handle ppcf128-related expansions 2013-08-19 06:55:37 +00:00
LegalizeIntegerTypes.cpp Update makeLibCall to return both the call and the chain associated with the libcall instead of just the call. This allows us to specify libcalls that return void. 2013-08-13 17:54:56 +00:00
LegalizeTypes.cpp Update makeLibCall to return both the call and the chain associated with the libcall instead of just the call. This allows us to specify libcalls that return void. 2013-08-13 17:54:56 +00:00
LegalizeTypes.h Improve the widening of integral binary vector operations 2013-08-19 20:01:35 +00:00
LegalizeTypesGeneric.cpp TargetLowering: Add getVectorIdxTy() function v2 2013-08-05 22:22:01 +00:00
LegalizeVectorOps.cpp Add a llvm.copysign intrinsic 2013-08-19 23:35:46 +00:00
LegalizeVectorTypes.cpp Add a llvm.copysign intrinsic 2013-08-19 23:35:46 +00:00
LLVMBuild.txt
Makefile
ResourcePriorityQueue.cpp
ScheduleDAGFast.cpp
ScheduleDAGRRList.cpp
ScheduleDAGSDNodes.cpp
ScheduleDAGSDNodes.h
ScheduleDAGVLIW.cpp
SDNodeDbgValue.h
SelectionDAG.cpp Replace getValueType().getSimpleVT() with getSimpleValueType(). 2013-08-15 02:44:19 +00:00
SelectionDAGBuilder.cpp Add a llvm.copysign intrinsic 2013-08-19 23:35:46 +00:00
SelectionDAGBuilder.h [SystemZ] Use SRST to implement strlen and strnlen 2013-08-16 11:41:43 +00:00
SelectionDAGDumper.cpp Add ISD::FROUND for libm round() 2013-08-07 22:49:12 +00:00
SelectionDAGISel.cpp ARM: Fix more fast-isel verifier failures. 2013-08-16 23:37:31 +00:00
SelectionDAGPrinter.cpp
TargetLowering.cpp Update makeLibCall to return both the call and the chain associated with the libcall instead of just the call. This allows us to specify libcalls that return void. 2013-08-13 17:54:56 +00:00
TargetSelectionDAGInfo.cpp