Displaying 3 results from an estimated 3 matches for "isglobaladdress".
Did you mean:
globaladdress
2008 Jan 03
2
[LLVMdev] Tailcall optimization in jit stopped working
...======================================================
--- lib/Target/X86/X86CodeEmitter.cpp (revision 45541)
+++ lib/Target/X86/X86CodeEmitter.cpp (working copy)
@@ -601,7 +601,8 @@
if (MO.isMachineBasicBlock()) {
emitPCRelativeBlockAddress(MO.getMBB());
} else if (MO.isGlobalAddress()) {
- bool NeedStub = !IsStatic ||
+ bool NeedStub = Opcode == X86::TAILJMPd || Opcode ==
X86::TAILJMPr ||
+ Opcode == X86::TAILJMPm || !IsStatic ||
(Is64BitMode && TM.getCodeModel() == CodeModel::Large);
emitGlobalAddress(MO.get...
2008 Apr 16
0
[LLVMdev] Being able to know the jitted code-size before emitting
...it now.
> + if (!RelocOp) {
> + FinalSize += sizeConstant(4);
> + return FinalSize;
> + }
> +
> + // Otherwise, this is something that requires a relocation. Emit
> it as such
> + // now.
Not "emitting" anything here. :-)
>
> + if (RelocOp->isGlobalAddress()) {
> + FinalSize += sizeGlobalAddress(false);
> + } else if (RelocOp->isConstantPoolIndex()) {
> + FinalSize += sizeConstPoolAddress(false);
> + } else if (RelocOp->isJumpTableIndex()) {
> + FinalSize += sizeJumpTableAddress(false);
> + } else {
> + asser...
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