summaryrefslogtreecommitdiff
path: root/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp
diff options
context:
space:
mode:
authorAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 13:34:50 +0000
committerAnton Korobeynikov <asl@math.spbu.ru>2009-07-16 13:34:50 +0000
commitda308c9a67d044bdba181b8564f4ecfd65b94b43 (patch)
tree8c6972216a8f30bdbd7be0b506bf0bd7750bfbb6 /lib/Target/SystemZ/SystemZISelDAGToDAG.cpp
parentfc9ceeaad8728257df62758d91d70e1f0789f38e (diff)
downloadllvm-da308c9a67d044bdba181b8564f4ecfd65b94b43.tar.gz
llvm-da308c9a67d044bdba181b8564f4ecfd65b94b43.tar.bz2
llvm-da308c9a67d044bdba181b8564f4ecfd65b94b43.tar.xz
Add bunch of reg-imm movs
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75921 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SystemZ/SystemZISelDAGToDAG.cpp')
-rw-r--r--lib/Target/SystemZ/SystemZISelDAGToDAG.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp b/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp
index e4df02be06..a318536c06 100644
--- a/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp
+++ b/lib/Target/SystemZ/SystemZISelDAGToDAG.cpp
@@ -56,6 +56,12 @@ namespace {
return CurDAG->getTargetConstant(Imm, MVT::i16);
}
+ /// getI32Imm - Return a target constant with the specified value, of type
+ /// i32.
+ inline SDValue getI32Imm(uint64_t Imm) {
+ return CurDAG->getTargetConstant(Imm, MVT::i32);
+ }
+
// Include the pieces autogenerated from the target description.
#include "SystemZGenDAGISel.inc"