Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
IRDB SDK
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
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
Show more breadcrumbs
Open Source Software
IRDB SDK
Commits
d30dffda
Commit
d30dffda
authored
4 years ago
by
Daniel Chen
Browse files
Options
Downloads
Patches
Plain Diff
Added a few comments
parent
44d52fbf
Branches
cfar_phase2_final_release
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/inc-transform/rewrite_util.hpp
+21
-0
21 additions, 0 deletions
include/inc-transform/rewrite_util.hpp
with
21 additions
and
0 deletions
include/inc-transform/rewrite_util.hpp
+
21
−
0
View file @
d30dffda
...
...
@@ -24,7 +24,28 @@ namespace IRDB_SDK
extern
Instruction_t
*
insertAssemblyBefore
(
FileIR_t
*
firp
,
Instruction_t
*
before
,
string
assembly
,
Instruction_t
*
target
=
nullptr
);
extern
Instruction_t
*
insertAssemblyAfter
(
FileIR_t
*
firp
,
Instruction_t
*
after
,
string
assembly
,
Instruction_t
*
target
=
nullptr
);
/*
* The insertAssemblyInstructionsBefore function takes in a group of (semicolon-seperated) assembly statements and inserts them into the
* program before the "before" instruction.
* Param: firp -- The current FileIR_t object
* before -- The instruction that the new instructions will be inserted before
* instructions -- The assembly to be inserted. Typical assembly formatting applies: instructions
* start on new lines, defined labels are allowed. For x86, the format must be in NASM style assembly.
* Returns: A vector of the newly inserted instructions.
* Side Effect: The new instructions are inserted into the IRDB data structures.
*/
extern
std
::
vector
<
Instruction_t
*>
insertAssemblyInstructionsBefore
(
FileIR_t
*
firp
,
Instruction_t
*
before
,
string
instructions
,
Instruction_t
*
target
=
nullptr
);
/*
* The insertAssemblyInstructionsAfter function takes in a group of (semicolon-seperated) assembly statements and inserts them into the
* program after the "after" instruction.
* Param: firp -- The current FileIR_t object
* after -- The instruction that the new instructions will be inserted after
* instructions -- The assembly to be inserted. Typical assembly formatting applies: instructions
* start on new lines, defined labels are allowed. For x86, the format must be in NASM style assembly.
* Returns: A vector of the newly inserted instructions.
* Side Effect: The new instructions are inserted into the IRDB data structures.
*/
extern
std
::
vector
<
Instruction_t
*>
insertAssemblyInstructionsAfter
(
FileIR_t
*
firp
,
Instruction_t
*
after
,
string
instructions
,
Instruction_t
*
target
=
nullptr
);
extern
Instruction_t
*
insertDataBitsBefore
(
FileIR_t
*
firp
,
Instruction_t
*
before
,
string
dataBits
,
Instruction_t
*
target
=
nullptr
);
extern
Instruction_t
*
insertDataBitsAfter
(
FileIR_t
*
firp
,
Instruction_t
*
after
,
string
dataBits
,
Instruction_t
*
target
=
nullptr
);
...
...
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