Displaying 4 results from an estimated 4 matches for "clonemachineinstr".
2015 Dec 02
2
Unable to clone an instruction in AsmPrinter::EmitInstruction
...tion(const MachineInstr *MI). I'm
trying to clone an instruction and this produces and error. Below are the
code as well as error:
void EscalaAsmPrinter::EmitInstruction(const MachineInstr *MI) {
const MachineFunction *MF = MI->getParent()->getParent();
MachineInstr *CloneMI = MF->CloneMachineInstr(MI);
...
...
}
Here is the error:
lib/Target/Escala/EscalaAsmPrinter.cpp: In member function ‘virtual void
{anonymous}::EscalaAsmPrinter::EmitInstruction(const llvm::MachineInstr*)’:
lib/Target/Escala/EscalaAsmPrinter.cpp:379:51: error: no matching function
for call to ‘llvm::MachineFunction:...
2015 Dec 02
4
Cloning a MachineInstr
I'm trying to clone a MachineInstr in the AsmPrinter::EmitInstruction, Here
is the code:
void EsenciaAsmPrinter::EmitInstruction(const MachineInstr *MI) {
const MachineFunction *MF = MI->getParent()->getParent();
MachineInstr *CloneMI = MF->CloneMachineInstr(MI);
...
...
}
The problem is that MF is a const and CloneMachineInstr expects a
non-const. Does anybody know if there is a way to create a copy of a given
MachineInstr?
Any help is appreciated.
--
Rail Shafigulin
Software Engineer
Esencia Technologies
-------------- next part --------------
An...
2008 Oct 13
0
[LLVMdev] api changes in llvm 2.4
...ng our backend porting,
just minor changes.
I'll list them anyways:
1) Some method names in MachineOperand were renamed
to abbreviated names like isFrameIndex() -> isFI().
2) const class llvm::MachineInstr has no member named clone()
The call to could be replaced with
MachineFunction::CloneMachineInstr();
3) llvm::TargetInstrInfo::copyRegToReg() now returns 'bool'
This used to be a void function. Easy to fix by just returning a boolean.
However, the comment in TargetInstrInfo.h does not state what the
return value means, so one has to dig into the source code of the
other backends. Loo...
2008 Oct 11
2
[LLVMdev] api changes in llvm 2.4
In the 2.3 release, we included a list of the major LLVM API changes.
If you are working on upgrading your code from 2.3 to 2.4, I'd
appreciate it if you could compile a list of the major stumbling
blocks you have, so that others can benefit from your experience.
Please send any info to the list, thanks!
-Chris