diff options
author | Tim Northover <tnorthover@apple.com> | 2017-06-30 20:27:36 +0000 |
---|---|---|
committer | Tim Northover <tnorthover@apple.com> | 2017-06-30 20:27:36 +0000 |
commit | 699416df0f339311c3f5c1474c609a3ad5a33565 (patch) | |
tree | d13a668249aa100e3cd2d633070a1b4f35bd75f1 /lib/CodeGen/GlobalISel/MachineIRBuilder.cpp | |
parent | 7005a5a0471a6e99204d0f7639ea297cacc94a9f (diff) | |
download | llvm-699416df0f339311c3f5c1474c609a3ad5a33565.tar.gz |
GlobalISel: add G_IMPLICIT_DEF instruction.
It looks like there are two target-independent but not GISel instructions that
need legalization, IMPLICIT_DEF and PHI. These are already anomalies since
their operands have important LLTs attached, so to make things more uniform it
seems like a good idea to add generic variants. Starting with G_IMPLICIT_DEF.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@306875 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/GlobalISel/MachineIRBuilder.cpp')
-rw-r--r-- | lib/CodeGen/GlobalISel/MachineIRBuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp b/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp index 3424f091ddb5..47c6214c0552 100644 --- a/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp +++ b/lib/CodeGen/GlobalISel/MachineIRBuilder.cpp @@ -478,7 +478,7 @@ void MachineIRBuilder::buildSequence(unsigned Res, ArrayRef<unsigned> Ops, } MachineInstrBuilder MachineIRBuilder::buildUndef(unsigned Res) { - return buildInstr(TargetOpcode::IMPLICIT_DEF).addDef(Res); + return buildInstr(TargetOpcode::G_IMPLICIT_DEF).addDef(Res); } MachineInstrBuilder MachineIRBuilder::buildMerge(unsigned Res, |