summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2016-07-26 16:45:30 +0000
committerTim Northover <tnorthover@apple.com>2016-07-26 16:45:30 +0000
commit756eca35cfd6ec39f1dd579e048b41999f348a46 (patch)
treed0a7f17f5472699d4e2df5fedc7ff671e6a28fda /llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
parentcc5f76226bac405a09a62e3dadf29e275fdad7ea (diff)
downloadbcm5719-llvm-756eca35cfd6ec39f1dd579e048b41999f348a46.tar.gz
bcm5719-llvm-756eca35cfd6ec39f1dd579e048b41999f348a46.zip
GlobalISel: add specialized buildCopy function to MachineInstrBuilder.
NFC. llvm-svn: 276763
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp')
-rw-r--r--llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp b/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
index fb9b296e8ac..a426776e177 100644
--- a/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
@@ -90,6 +90,10 @@ MachineInstr *MachineIRBuilder::buildBr(MachineBasicBlock &Dest) {
return NewMI;
}
+MachineInstr *MachineIRBuilder::buildCopy(unsigned Res, unsigned Op) {
+ return buildInstr(TargetOpcode::COPY, Res, Op);
+}
+
MachineInstr *MachineIRBuilder::buildExtract(LLT Ty, ArrayRef<unsigned> Results,
unsigned Src,
ArrayRef<unsigned> Indexes) {
OpenPOWER on IntegriCloud