Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
llvm-epi-0.8
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Roger Ferrer
llvm-epi-0.8
Commits
6ee028a4
Commit
6ee028a4
authored
20 years ago
by
Chris Lattner
Browse files
Options
Downloads
Patches
Plain Diff
Allow targets to implement relocation support.
llvm-svn: 18032
parent
774e978e
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
llvm/include/llvm/Target/TargetJITInfo.h
+11
-0
11 additions, 0 deletions
llvm/include/llvm/Target/TargetJITInfo.h
with
11 additions
and
0 deletions
llvm/include/llvm/Target/TargetJITInfo.h
+
11
−
0
View file @
6ee028a4
...
@@ -17,10 +17,13 @@
...
@@ -17,10 +17,13 @@
#ifndef LLVM_TARGET_TARGETJITINFO_H
#ifndef LLVM_TARGET_TARGETJITINFO_H
#define LLVM_TARGET_TARGETJITINFO_H
#define LLVM_TARGET_TARGETJITINFO_H
#include
<cassert>
namespace
llvm
{
namespace
llvm
{
class
Function
;
class
Function
;
class
FunctionPassManager
;
class
FunctionPassManager
;
class
MachineCodeEmitter
;
class
MachineCodeEmitter
;
class
MachineRelocation
;
/// TargetJITInfo - Target specific information required by the Just-In-Time
/// TargetJITInfo - Target specific information required by the Just-In-Time
/// code generator.
/// code generator.
...
@@ -49,6 +52,14 @@ namespace llvm {
...
@@ -49,6 +52,14 @@ namespace llvm {
virtual
void
*
getJITStubForFunction
(
Function
*
F
,
MachineCodeEmitter
&
MCE
)
{
virtual
void
*
getJITStubForFunction
(
Function
*
F
,
MachineCodeEmitter
&
MCE
)
{
return
0
;
return
0
;
}
}
/// relocate - Before the JIT can run a block of code that has been emitted,
/// it must rewrite the code to contain the actual addresses of any
/// referenced global symbols.
virtual
void
relocate
(
void
*
Function
,
MachineRelocation
*
MR
,
unsigned
NumRelocs
)
{
assert
(
NumRelocs
==
0
&&
"This target does not have relocations!"
);
}
};
};
}
// End llvm namespace
}
// End llvm namespace
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment