diff options
author | Chris Lattner <sabre@nondot.org> | 2007-12-22 20:47:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2007-12-22 20:47:56 +0000 |
commit | db5f7ff22ab5d435e137f48cdd77d57285ae5718 (patch) | |
tree | 4f6df329e226f58279310f3fc5154711082e91ba /lib | |
parent | 5c675fa9bd3c4f1ed05930dbf4e22f540fa34f02 (diff) | |
download | external_llvm-db5f7ff22ab5d435e137f48cdd77d57285ae5718.tar.gz external_llvm-db5f7ff22ab5d435e137f48cdd77d57285ae5718.tar.bz2 external_llvm-db5f7ff22ab5d435e137f48cdd77d57285ae5718.zip |
Add a new FGETSIGN operation, which defaults to expand on all
targets.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@45320 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/SelectionDAG/TargetLowering.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 2be31c8260..eed2d13187 100644 --- a/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/lib/CodeGen/SelectionDAG/TargetLowering.cpp @@ -155,13 +155,17 @@ TargetLowering::TargetLowering(TargetMachine &tm) memset(&IndexedModeActions, 0, sizeof(IndexedModeActions)); memset(&ConvertActions, 0, sizeof(ConvertActions)); - // Set all indexed load / store to expand. + // Set default actions for various operations. for (unsigned VT = 0; VT != (unsigned)MVT::LAST_VALUETYPE; ++VT) { + // Default all indexed load / store to expand. for (unsigned IM = (unsigned)ISD::PRE_INC; IM != (unsigned)ISD::LAST_INDEXED_MODE; ++IM) { setIndexedLoadAction(IM, (MVT::ValueType)VT, Expand); setIndexedStoreAction(IM, (MVT::ValueType)VT, Expand); } + + // These operations default to expand. + setOperationAction(ISD::FGETSIGN, (MVT::ValueType)VT, Expand); } IsLittleEndian = TD->isLittleEndian(); |