From 2788f797ca429c57fce77449822c335d479e20d3 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Mon, 29 Mar 2010 21:13:41 +0000 Subject: 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 --- llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/lib/Target/CellSPU/SPUISelDAGToDAG.cpp') 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 -- cgit v1.2.3