Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(2206)

Issue 153044: [PATCH] Move stub allocation to the JITEmitter (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years ago by Jeffrey Yasskin
Modified:
15 years ago
Reviewers:
echristo
CC:
llvm-commits_cs.uiuc.edu
Visibility:
Public.

Description

* Move stub allocation inside the JITEmitter, instead of exposing a way for each TargetJITInfo subclass to allocate its own stubs. This means stubs aren't as exactly-sized anymore, but it lets us get rid of TargetJITInfo::emitFunctionStubAtAddr(), which lets ARM and PPC support the eager JIT, fixing http://llvm.org/PR4816. * Rename the JITEmitter's stub creation functions to describe the kind of stub they create. So far, all of them create lazy-compilation stubs, but they sometimes get used when far-call stubs are needed. That'll be fixed in a future patch.

Patch Set 1 #

Patch Set 2 : Enable more tests. #

Patch Set 3 : Update to ToT #

Patch Set 4 : Update to ToT #

Patch Set 5 : Fix ARM+PIC and echristo's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+271 lines, -177 lines) Patch
M include/llvm/CodeGen/JITCodeEmitter.h View 1 2 3 4 1 chunk +17 lines, -11 lines 0 comments Download
M include/llvm/CodeGen/MachineCodeEmitter.h View 1 chunk +34 lines, -10 lines 0 comments Download
M include/llvm/Target/TargetJITInfo.h View 1 2 3 4 2 chunks +17 lines, -10 lines 0 comments Download
M lib/ExecutionEngine/JIT/JITEmitter.cpp View 1 2 3 4 19 chunks +72 lines, -68 lines 0 comments Download
M lib/Target/ARM/ARMJITInfo.h View 1 2 3 4 1 chunk +4 lines, -0 lines 0 comments Download
M lib/Target/ARM/ARMJITInfo.cpp View 1 2 3 4 5 chunks +30 lines, -21 lines 0 comments Download
M lib/Target/Alpha/AlphaJITInfo.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M lib/Target/Alpha/AlphaJITInfo.cpp View 1 2 3 4 1 chunk +11 lines, -2 lines 0 comments Download
M lib/Target/PowerPC/PPCJITInfo.h View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M lib/Target/PowerPC/PPCJITInfo.cpp View 1 2 3 4 4 chunks +16 lines, -9 lines 0 comments Download
M lib/Target/X86/X86JITInfo.h View 1 2 3 4 1 chunk +5 lines, -7 lines 0 comments Download
M lib/Target/X86/X86JITInfo.cpp View 1 2 3 4 1 chunk +29 lines, -36 lines 0 comments Download
M unittests/ExecutionEngine/JIT/JITTest.cpp View 1 2 3 4 5 chunks +34 lines, -3 lines 0 comments Download

Messages

Total messages: 1
Jeffrey Yasskin
15 years ago (2009-11-12 23:34:58 UTC) #1
This overlaps with http://codereview.appspot.com/154066 (far calls in x86 large
code model) some; I'll merge whichever gets committed second.

I got nlewycky to confirm that the re-enabled tests do actually pass on arm and
ppc.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b