diff options
| author | Benjamin Kramer <benny.kra@googlemail.com> | 2010-03-29 21:13:41 +0000 |
|---|---|---|
| committer | Benjamin Kramer <benny.kra@googlemail.com> | 2010-03-29 21:13:41 +0000 |
| commit | 2788f797ca429c57fce77449822c335d479e20d3 (patch) | |
| tree | 3cac5f1ba5a000baede714beaf4838bdefe86d92 /llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp | |
| parent | 4d1aa2a1c645f54b9faf7a427928f061c8ca58af (diff) | |
| download | bcm5719-llvm-2788f797ca429c57fce77449822c335d479e20d3.tar.gz bcm5719-llvm-2788f797ca429c57fce77449822c335d479e20d3.zip | |
Make isInt?? and isUint?? template specializations of the generic versions. This
makes calls a little bit more consistent and allows easy removal of the
specializations in the future. Convert all callers to the templated functions.
llvm-svn: 99838
Diffstat (limited to 'llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp')
| -rw-r--r-- | llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp b/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp index f42dd73efc7..90f83100cfa 100644 --- a/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp +++ b/llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp @@ -58,7 +58,7 @@ namespace { bool isI32IntU10Immediate(ConstantSDNode *CN) { - return isUint<10>(CN->getSExtValue()); + return isUInt<10>(CN->getSExtValue()); } //! ConstantSDNode predicate for i16 sign-extended, 10-bit immediate values @@ -80,7 +80,7 @@ namespace { bool isI16IntU10Immediate(ConstantSDNode *CN) { - return isUint<10>((short) CN->getZExtValue()); + return isUInt<10>((short) CN->getZExtValue()); } //! SDNode predicate for i16 sign-extended, 10-bit immediate values |

