aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/CodeGen/MachineInstrBuilder.h
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2012-06-07 04:43:52 +0000
committerPete Cooper <peter_cooper@apple.com>2012-06-07 04:43:52 +0000
commit4efea94fa54d0e8687b965fdf3ba46022c8e15c4 (patch)
treef728c9508ba6fcf2870cafd2e237cc6d953480c3 /include/llvm/CodeGen/MachineInstrBuilder.h
parent13a53e64957d7f6531f29e156f769b2403f1896e (diff)
downloadexternal_llvm-4efea94fa54d0e8687b965fdf3ba46022c8e15c4.zip
external_llvm-4efea94fa54d0e8687b965fdf3ba46022c8e15c4.tar.gz
external_llvm-4efea94fa54d0e8687b965fdf3ba46022c8e15c4.tar.bz2
Add internal read flags to MachineInstrBuilder and hook them into the MachineOperand flag of the same name
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@158137 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineInstrBuilder.h')
-rw-r--r--include/llvm/CodeGen/MachineInstrBuilder.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/MachineInstrBuilder.h b/include/llvm/CodeGen/MachineInstrBuilder.h
index 99849a6..9192474 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,
+ InternalRead = 0x100,
DefineNoRead = Define | Undef,
ImplicitDefine = Implicit | Define,
ImplicitKill = Implicit | Kill
@@ -67,7 +68,8 @@ public:
flags & RegState::Undef,
flags & RegState::EarlyClobber,
SubReg,
- flags & RegState::Debug));
+ flags & RegState::Debug,
+ flags & RegState::InternalRead));
return *this;
}
@@ -310,6 +312,9 @@ inline unsigned getDeadRegState(bool B) {
inline unsigned getUndefRegState(bool B) {
return B ? RegState::Undef : 0;
}
+inline unsigned getInternalReadRegState(bool B) {
+ return B ? RegState::InternalRead : 0;
+}
} // End llvm namespace