Skip to content
Snippets Groups Projects
Commit e4259da0 authored by Jason Hiser's avatar Jason Hiser :tractor:
Browse files

minor formatting tweaks

parent 707966f1
No related branches found
No related tags found
No related merge requests found
*.swp
...@@ -11,36 +11,39 @@ namespace Zipr_SDK ...@@ -11,36 +11,39 @@ namespace Zipr_SDK
class Zipr_t class Zipr_t
{ {
protected:
Zipr_t() { }
Zipr_t(const Zipr_t& copy) = delete;
public: public:
/* /*
* These are public functions that the SDK user way want to use. * These are public functions that the SDK user way want to use.
*/ */
virtual size_t determineDollopEntrySize( virtual size_t determineDollopEntrySize(
DollopEntry_t*, DollopEntry_t*,
bool account_for_fallthrough) = 0; bool account_for_fallthrough) = 0;
virtual RangeAddress_t plopDollopEntry( virtual RangeAddress_t plopDollopEntry(
DollopEntry_t *, DollopEntry_t *,
RangeAddress_t = 0, RangeAddress_t = 0,
RangeAddress_t = 0) = 0; RangeAddress_t = 0) = 0;
virtual RangeAddress_t plopDollopEntryWithTarget( virtual RangeAddress_t plopDollopEntryWithTarget(
DollopEntry_t *, DollopEntry_t *,
RangeAddress_t = 0, RangeAddress_t = 0,
RangeAddress_t = 0) = 0; RangeAddress_t = 0) = 0;
virtual RangeAddress_t plopDollopEntryWithCallback( virtual RangeAddress_t plopDollopEntryWithCallback(
DollopEntry_t *, DollopEntry_t *,
RangeAddress_t = 0) = 0; 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;
virtual void applyPatch( virtual void applyPatch(
RangeAddress_t from_addr, 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;
}; };
......
...@@ -6,11 +6,11 @@ namespace Zipr_SDK ...@@ -6,11 +6,11 @@ namespace Zipr_SDK
using InstructionLocationMap_t = map<Instruction_t*,RangeAddress_t>; using InstructionLocationMap_t = map<Instruction_t*,RangeAddress_t>;
enum ZiprPreference using ZiprPreference_t = enum ZiprPreference
{ {
None, None,
Must, Must,
}; };
class ZiprPluginInterface_t class ZiprPluginInterface_t
{ {
...@@ -22,7 +22,7 @@ namespace Zipr_SDK ...@@ -22,7 +22,7 @@ namespace Zipr_SDK
virtual void doCallbackLinkingBegin() { } virtual void doCallbackLinkingBegin() { }
virtual void doCallbackLinkingEnd() { } 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; } { return None; }
virtual bool willPluginPlop(Instruction_t*) virtual bool willPluginPlop(Instruction_t*)
...@@ -88,10 +88,10 @@ namespace Zipr_SDK ...@@ -88,10 +88,10 @@ namespace Zipr_SDK
virtual ZiprOptionsNamespace_t *registerOptions(ZiprOptionsNamespace_t *) virtual ZiprOptionsNamespace_t *registerOptions(ZiprOptionsNamespace_t *)
{ return new 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; } { 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; } { return None; }
virtual RangeAddress_t doPlaceScoopsBegin(const RangeAddress_t max_addr) virtual RangeAddress_t doPlaceScoopsBegin(const RangeAddress_t max_addr)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment