summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNadav Rotem <nadav.rotem@intel.com>2011-09-27 11:16:47 +0000
committerNadav Rotem <nadav.rotem@intel.com>2011-09-27 11:16:47 +0000
commita3c42f3d4e5d14c8f4fb9bb123e7759c425d041b (patch)
tree05aeb85d6209ecefa08b736bbc7ef90c2249d3bb /include
parenta1c415cfc2dba4446021f322e4b7a43534a96f1a (diff)
downloadllvm-a3c42f3d4e5d14c8f4fb9bb123e7759c425d041b.tar.gz
llvm-a3c42f3d4e5d14c8f4fb9bb123e7759c425d041b.tar.bz2
llvm-a3c42f3d4e5d14c8f4fb9bb123e7759c425d041b.tar.xz
Cleanup PromoteIntOp_EXTRACT_VECTOR_ELT and PromoteIntRes_SETCC.
Add a new method: getAnyExtOrTrunc and use it to replace the manual check. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140603 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/CodeGen/SelectionDAG.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h
index af0e5ccf32..132983c504 100644
--- a/include/llvm/CodeGen/SelectionDAG.h
+++ b/include/llvm/CodeGen/SelectionDAG.h
@@ -450,6 +450,10 @@ public:
SDValue getVectorShuffle(EVT VT, DebugLoc dl, SDValue N1, SDValue N2,
const int *MaskElts);
+ /// getAnyExtOrTrunc - Convert Op, which must be of integer type, to the
+ /// integer type VT, by either any-extending or truncating it.
+ SDValue getAnyExtOrTrunc(SDValue Op, DebugLoc DL, EVT VT);
+
/// getSExtOrTrunc - Convert Op, which must be of integer type, to the
/// integer type VT, by either sign-extending or truncating it.
SDValue getSExtOrTrunc(SDValue Op, DebugLoc DL, EVT VT);