aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/MachineInstrBuilder.h
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-03-04 18:40:30 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-03-04 18:40:30 +0000
commitfce711cb65716f86b4e150f42cbb597bbecf7dbe (patch)
treee88863c459efe55ae71104d7601e0986deee9ca0 /include/llvm/CodeGen/MachineInstrBuilder.h
parent190e5a3314808fc126f18119315ce986d0689089 (diff)
downloadexternal_llvm-fce711cb65716f86b4e150f42cbb597bbecf7dbe.zip
external_llvm-fce711cb65716f86b4e150f42cbb597bbecf7dbe.tar.gz
external_llvm-fce711cb65716f86b4e150f42cbb597bbecf7dbe.tar.bz2
Use <def,undef> operands when spilling NEON bundles.
MachineOperands that define part of a virtual register must have an <undef> flag if they are not intended as read-modify-write operands. The old trick of adding an <imp-def> operand doesn't work any longer. Fixes PR12177. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@152008 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineInstrBuilder.h')
-rw-r--r--include/llvm/CodeGen/MachineInstrBuilder.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineInstrBuilder.h b/include/llvm/CodeGen/MachineInstrBuilder.h
index a6f995b..99849a6 100644
--- a/include/llvm/CodeGen/MachineInstrBuilder.h
+++ b/include/llvm/CodeGen/MachineInstrBuilder.h
@@ -34,6 +34,7 @@ namespace RegState {
Undef = 0x20,
EarlyClobber = 0x40,
Debug = 0x80,
+ DefineNoRead = Define | Undef,
ImplicitDefine = Implicit | Define,
ImplicitKill = Implicit | Kill
};