mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-22 23:24:59 +00:00
add IRBuilder support for IndirectBr
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@85445 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -253,6 +253,13 @@ public:
|
|||||||
return Insert(SwitchInst::Create(V, Dest, NumCases));
|
return Insert(SwitchInst::Create(V, Dest, NumCases));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// CreateIndirectBr - Create an indirect branch instruction with the
|
||||||
|
/// specified address operand, with an optional hint for the number of
|
||||||
|
/// destinations that will be added (for efficient allocation).
|
||||||
|
IndirectBrInst *CreateIndirectBr(Value *Addr, unsigned NumDests = 10) {
|
||||||
|
return Insert(IndirectBrInst::Create(Addr, NumDests));
|
||||||
|
}
|
||||||
|
|
||||||
/// CreateInvoke - Create an invoke instruction.
|
/// CreateInvoke - Create an invoke instruction.
|
||||||
template<typename InputIterator>
|
template<typename InputIterator>
|
||||||
InvokeInst *CreateInvoke(Value *Callee, BasicBlock *NormalDest,
|
InvokeInst *CreateInvoke(Value *Callee, BasicBlock *NormalDest,
|
||||||
|
Reference in New Issue
Block a user