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 | 843cad4df2ab5edc4927ef4d2e786cd2d42d7787 (patch) | |
| tree | 50215c2875c929001e9e6124ebbcd01c057bacc6 /llvm/lib/CodeGen | |
| parent | 1b1250770ca4a1c8be0acc4d1d763cce6d0c48ea (diff) | |
| download | bcm5719-llvm-843cad4df2ab5edc4927ef4d2e786cd2d42d7787.tar.gz bcm5719-llvm-843cad4df2ab5edc4927ef4d2e786cd2d42d7787.zip | |
Add a new FGETSIGN operation, which defaults to expand on all
targets.
llvm-svn: 45320
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp b/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp index 2be31c82601..eed2d13187a 100644 --- a/llvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp +++ b/llvm/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(); |

