[llvm-dev] Cloning a MachineInstr

Rail Shafigulin via llvm-dev llvm-dev at lists.llvm.org
Wed Dec 2 15:45:04 PST 2015

On Wed, Dec 2, 2015 at 3:21 PM, Ziqiang Patrick Huang <
ziqiang.huang at duke.edu> wrote:

> There is a getParent() function in MachineBasicBlock that returns
> non-const MachineFunction.
> Patrick

The problem is that in
void EscalaAsmPrinter::EmitInstruction(const MachineInstr *MI), MI is a
const. So whenever I call MI->getParent()->getParent() I get a const
method. Is there a different way to clone a MachineInstr?

Rail Shafigulin
Software Engineer
Esencia Technologies
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20151202/186ac037/attachment.html>

More information about the llvm-dev mailing list