diff options
author | Nadav Rotem <nadav.rotem@intel.com> | 2011-09-27 11:16:47 +0000 |
---|---|---|
committer | Nadav Rotem <nadav.rotem@intel.com> | 2011-09-27 11:16:47 +0000 |
commit | a3c42f3d4e5d14c8f4fb9bb123e7759c425d041b (patch) | |
tree | 05aeb85d6209ecefa08b736bbc7ef90c2249d3bb /include | |
parent | a1c415cfc2dba4446021f322e4b7a43534a96f1a (diff) | |
download | llvm-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.h | 4 |
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); |