Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zipr-sdk
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Show more breadcrumbs
Open Source Software
zipr-sdk
Commits
e4259da0
Commit
e4259da0
authored
6 years ago
by
Jason Hiser
Browse files
Options
Downloads
Patches
Plain Diff
minor formatting tweaks
parent
707966f1
Loading
Loading
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
.gitignore
+1
-0
1 addition, 0 deletions
.gitignore
include/private-include/zipr.h
+14
-11
14 additions, 11 deletions
include/private-include/zipr.h
include/private-include/zipr_plugin.h
+8
-8
8 additions, 8 deletions
include/private-include/zipr_plugin.h
with
23 additions
and
19 deletions
.gitignore
0 → 100644
+
1
−
0
View file @
e4259da0
*.swp
This diff is collapsed.
Click to expand it.
include/private-include/zipr.h
+
14
−
11
View file @
e4259da0
...
...
@@ -11,36 +11,39 @@ namespace Zipr_SDK
class
Zipr_t
{
protected:
Zipr_t
()
{
}
Zipr_t
(
const
Zipr_t
&
copy
)
=
delete
;
public
:
/*
* These are public functions that the SDK user way want to use.
*/
virtual
size_t
determineDollopEntrySize
(
DollopEntry_t
*
,
bool
account_for_fallthrough
)
=
0
;
bool
account_for_fallthrough
)
=
0
;
virtual
RangeAddress_t
plopDollopEntry
(
DollopEntry_t
*
,
RangeAddress_t
=
0
,
RangeAddress_t
=
0
)
=
0
;
RangeAddress_t
=
0
)
=
0
;
virtual
RangeAddress_t
plopDollopEntryWithTarget
(
DollopEntry_t
*
,
RangeAddress_t
=
0
,
RangeAddress_t
=
0
)
=
0
;
RangeAddress_t
=
0
)
=
0
;
virtual
RangeAddress_t
plopDollopEntryWithCallback
(
DollopEntry_t
*
,
RangeAddress_t
=
0
)
=
0
;
virtual
MemorySpace_t
*
getMemorySpace
()
=
0
;
virtual
IRDB_SDK
::
FileIR_t
*
getFileIR
()
=
0
;
virtual
InstructionLocationMap_t
*
getLocationMap
()
=
0
;
virtual
DollopManager_t
*
getDollopManager
()
=
0
;
virtual
PlacementQueue_t
*
getPlacementQueue
()
=
0
;
RangeAddress_t
=
0
)
=
0
;
virtual
void
applyPatch
(
RangeAddress_t
from_addr
,
RangeAddress_t
to_addr
)
=
0
;
RangeAddress_t
to_addr
)
=
0
;
virtual
MemorySpace_t
*
getMemorySpace
()
=
0
;
virtual
IRDB_SDK
::
FileIR_t
*
getFileIR
()
=
0
;
virtual
InstructionLocationMap_t
*
getLocationMap
()
=
0
;
virtual
DollopManager_t
*
getDollopManager
()
=
0
;
virtual
PlacementQueue_t
*
getPlacementQueue
()
=
0
;
};
...
...
This diff is collapsed.
Click to expand it.
include/private-include/zipr_plugin.h
+
8
−
8
View file @
e4259da0
...
...
@@ -6,11 +6,11 @@ namespace Zipr_SDK
using
InstructionLocationMap_t
=
map
<
Instruction_t
*
,
RangeAddress_t
>
;
enum
ZiprPreference
{
None
,
Must
,
};
using
ZiprPreference_t
=
enum
ZiprPreference
{
None
,
Must
,
};
class
ZiprPluginInterface_t
{
...
...
@@ -22,7 +22,7 @@ namespace Zipr_SDK
virtual
void
doCallbackLinkingBegin
()
{
}
virtual
void
doCallbackLinkingEnd
()
{
}
virtual
ZiprPreference
addressDollop
(
const
Dollop_t
*
dollop
,
const
RangeAddress_t
&
source
,
Range_t
&
place
,
bool
&
coalesce
,
bool
&
fallthrough_ok
)
virtual
ZiprPreference
_t
addressDollop
(
const
Dollop_t
*
dollop
,
const
RangeAddress_t
&
source
,
Range_t
&
place
,
bool
&
coalesce
,
bool
&
fallthrough_ok
)
{
return
None
;
}
virtual
bool
willPluginPlop
(
Instruction_t
*
)
...
...
@@ -88,10 +88,10 @@ namespace Zipr_SDK
virtual
ZiprOptionsNamespace_t
*
registerOptions
(
ZiprOptionsNamespace_t
*
)
{
return
new
ZiprOptionsNamespace_t
(
""
);
}
virtual
ZiprPreference
retargetPin
(
const
RangeAddress_t
&
,
const
Dollop_t
*
,
RangeAddress_t
&
)
virtual
ZiprPreference
_t
retargetPin
(
const
RangeAddress_t
&
,
const
Dollop_t
*
,
RangeAddress_t
&
)
{
return
None
;
}
virtual
ZiprPreference
retargetCallback
(
const
RangeAddress_t
&
,
const
DollopEntry_t
*
,
RangeAddress_t
&
)
virtual
ZiprPreference
_t
retargetCallback
(
const
RangeAddress_t
&
,
const
DollopEntry_t
*
,
RangeAddress_t
&
)
{
return
None
;
}
virtual
RangeAddress_t
doPlaceScoopsBegin
(
const
RangeAddress_t
max_addr
)
...
...
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