Displaying 3 results from an estimated 3 matches for "getmemmodrmbytesize".
2009 Apr 08
1
[LLVMdev] [PATH] Fix instruction size computation on amd64
Hi,
The attached small path fixes X86InstrInfo::getMemModRMByteSize to be
consistent with the emit code in X86CodeEmitter::emitMemModRMByte on amd64.
Zoltan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20090408/ad831982/attachment.html>
-------------- next pa...
2008 Apr 16
0
[LLVMdev] Being able to know the jitted code-size before emitting
...(false);
> + } else {
> + assert(0 && "Unknown value to relocate!");
> + }
> + return FinalSize;
> +}
> +
> +static unsigned sizeMemModRMByte(const MachineInstr &MI, unsigned Op,
> + bool IsPIC, bool Is64BitMode) {
getMemModRMByteSize()?
>
> + const MachineOperand &Op3 = MI.getOperand(Op+3);
> + int DispVal = 0;
> + const MachineOperand *DispForReloc = 0;
> + unsigned FinalSize = 0;
> +
> + // Figure out what sort of displacement we have to handle here.
> + if (Op3.isGlobalAddress()) {
> +...
2008 Apr 15
4
[LLVMdev] Being able to know the jitted code-size before emitting
OK, here's a new patch that adds the infrastructure and the
implementation for X86, ARM and PPC of GetInstSize and GetFunctionSize.
Both functions are virtual functions defined in TargetInstrInfo.h.
For X86, I moved some commodity functions from X86CodeEmitter to
X86InstrInfo.
What do you think?
Nicolas
Evan Cheng wrote:
>
> I think both of these belong to TargetInstrInfo. And