summaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineOperand.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/MachineOperand.h
parent13a53e64957d7f6531f29e156f769b2403f1896e (diff)
downloadllvm-4efea94fa54d0e8687b965fdf3ba46022c8e15c4.tar.gz
llvm-4efea94fa54d0e8687b965fdf3ba46022c8e15c4.tar.bz2
llvm-4efea94fa54d0e8687b965fdf3ba46022c8e15c4.tar.xz
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/MachineOperand.h')
-rw-r--r--include/llvm/CodeGen/MachineOperand.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/include/llvm/CodeGen/MachineOperand.h b/include/llvm/CodeGen/MachineOperand.h
index d244dd9210..9ccbfe9234 100644
--- a/include/llvm/CodeGen/MachineOperand.h
+++ b/include/llvm/CodeGen/MachineOperand.h
@@ -542,14 +542,15 @@ public:
bool isUndef = false,
bool isEarlyClobber = false,
unsigned SubReg = 0,
- bool isDebug = false) {
+ bool isDebug = false,
+ bool isInternalRead = false) {
MachineOperand Op(MachineOperand::MO_Register);
Op.IsDef = isDef;
Op.IsImp = isImp;
Op.IsKill = isKill;
Op.IsDead = isDead;
Op.IsUndef = isUndef;
- Op.IsInternalRead = false;
+ Op.IsInternalRead = isInternalRead;
Op.IsEarlyClobber = isEarlyClobber;
Op.IsDebug = isDebug;
Op.SmallContents.RegNo = Reg;