aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/CodeGen/MachineInstrBuilder.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-12-15 08:01:02 +0000
committerChris Lattner <sabre@nondot.org>2002-12-15 08:01:02 +0000
commit8cbfc75d17ee1c274116dc1aca3bc8e8ed2326c9 (patch)
tree9ed863b787cd11fcd3ba76562837a231498d9068 /include/llvm/CodeGen/MachineInstrBuilder.h
parenta4c096d6719bf63fd40721efb7d116cc70c8735e (diff)
Add capability to have a MachineBasicBlock as an operand to a MachineInstr
Add a bunch of methods to MachineOperand is* to reduce usage of MO_foo git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@5032 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/MachineInstrBuilder.h')
-rw-r--r--include/llvm/CodeGen/MachineInstrBuilder.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/MachineInstrBuilder.h b/include/llvm/CodeGen/MachineInstrBuilder.h
index 96f7359301..68580badae 100644
--- a/include/llvm/CodeGen/MachineInstrBuilder.h
+++ b/include/llvm/CodeGen/MachineInstrBuilder.h
@@ -81,6 +81,11 @@ struct MachineInstrBuilder {
MI->addZeroExtImmOperand(Val);
return *this;
}
+
+ const MachineInstrBuilder &addMBB(MachineBasicBlock *MBB) const {
+ MI->addMachineBasicBlockOperand(MBB);
+ return *this;
+ }
};
/// BuildMI - Builder interface. Specify how to create the initial instruction