aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/SelectionDAG.h
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@apple.com>2009-10-08 18:49:46 +0000
committerBob Wilson <bob.wilson@apple.com>2009-10-08 18:49:46 +0000
commit5fcbf0d26ecb99d54c182f542bf8db43ff048d6d (patch)
tree2dca91eb24ea35cb8a3c1b8461d4bdbc29cdc4e0 /include/llvm/CodeGen/SelectionDAG.h
parenteda312193dfc56cb9a5d1d3e7cf3c89dce07124a (diff)
downloadexternal_llvm-5fcbf0d26ecb99d54c182f542bf8db43ff048d6d.tar.gz
external_llvm-5fcbf0d26ecb99d54c182f542bf8db43ff048d6d.tar.bz2
external_llvm-5fcbf0d26ecb99d54c182f542bf8db43ff048d6d.zip
Add a SelectionDAG getTargetInsertSubreg convenience function,
similar to getTargetExtractSubreg. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83564 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/SelectionDAG.h')
-rw-r--r--include/llvm/CodeGen/SelectionDAG.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/SelectionDAG.h b/include/llvm/CodeGen/SelectionDAG.h
index e1b9998ab1..53d7f1fa34 100644
--- a/include/llvm/CodeGen/SelectionDAG.h
+++ b/include/llvm/CodeGen/SelectionDAG.h
@@ -708,6 +708,11 @@ public:
SDValue getTargetExtractSubreg(int SRIdx, DebugLoc DL, EVT VT,
SDValue Operand);
+ /// getTargetInsertSubreg - A convenience function for creating
+ /// TargetInstrInfo::INSERT_SUBREG nodes.
+ SDValue getTargetInsertSubreg(int SRIdx, DebugLoc DL, EVT VT,
+ SDValue Operand, SDValue Subreg);
+
/// getNodeIfExists - Get the specified node if it's already available, or
/// else return NULL.
SDNode *getNodeIfExists(unsigned Opcode, SDVTList VTs,