summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
diff options
context:
space:
mode:
authorTim Northover <tnorthover@apple.com>2017-03-06 18:36:40 +0000
committerTim Northover <tnorthover@apple.com>2017-03-06 18:36:40 +0000
commit81dafc1c88717e6141a6173f100c3dd4b7b6ab17 (patch)
tree8b60ec3ad7e36333f157e27771725786665b3f30 /llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
parentfb1a0a0d2facc5cff81fad4e9dcd18b176bcf37a (diff)
downloadbcm5719-llvm-81dafc1c88717e6141a6173f100c3dd4b7b6ab17.tar.gz
bcm5719-llvm-81dafc1c88717e6141a6173f100c3dd4b7b6ab17.zip
GlobalISel: add buildUndef method to MachineIRBuilder. NFC.
llvm-svn: 297044
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 5eea7268c5e..08f29f4621c 100644
--- a/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp
@@ -416,6 +416,10 @@ MachineIRBuilder::buildSequence(unsigned Res,
return MIB;
}
+MachineInstrBuilder MachineIRBuilder::buildUndef(unsigned Res) {
+ return buildInstr(TargetOpcode::IMPLICIT_DEF).addDef(Res);
+}
+
MachineInstrBuilder MachineIRBuilder::buildMerge(unsigned Res,
ArrayRef<unsigned> Ops) {
OpenPOWER on IntegriCloud