Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
zafl
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
zafl
Commits
f333a639
Commit
f333a639
authored
6 years ago
by
Anh Nguyen-Tuong
Browse files
Options
Downloads
Patches
Plain Diff
Get rid of leaf annotation code in laf
parent
ea05813d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#2724
passed
6 years ago
Stage: clean
Stage: build
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
tools/laf/laf.cpp
+0
-7
0 additions, 7 deletions
tools/laf/laf.cpp
tools/laf/laf.hpp
+0
-2
0 additions, 2 deletions
tools/laf/laf.hpp
with
0 additions
and
9 deletions
tools/laf/laf.cpp
+
0
−
7
View file @
f333a639
...
...
@@ -44,7 +44,6 @@ Laf_t::Laf_t(pqxxDB_t &p_dbinterface, FileIR_t *p_variantIR, bool p_verbose)
m_trace_div
=
true
;
auto
deep_analysis
=
DeepAnalysis_t
::
factory
(
getFileIR
());
leaf_functions
=
deep_analysis
->
getLeafFunctions
();
dead_registers
=
deep_analysis
->
getDeadRegisters
();
m_blacklist
.
insert
(
".init"
);
...
...
@@ -139,12 +138,6 @@ bool Laf_t::getTraceDiv() const
return
m_trace_div
;
}
bool
Laf_t
::
hasLeafAnnotation
(
Function_t
*
p_fn
)
const
{
auto
it
=
leaf_functions
->
find
(
p_fn
);
return
(
it
!=
leaf_functions
->
end
());
}
bool
Laf_t
::
getFreeRegister
(
Instruction_t
*
p_instr
,
string
&
p_freereg
,
RegisterSet_t
p_allowed_regs
)
{
const
auto
dp
=
DecodedInstruction_t
::
factory
(
p_instr
);
...
...
This diff is collapsed.
Click to expand it.
tools/laf/laf.hpp
+
0
−
2
View file @
f333a639
...
...
@@ -33,13 +33,11 @@ namespace Laf
int
doTraceCompare
();
int
doTraceDiv
();
bool
isBlacklisted
(
Function_t
*
)
const
;
bool
hasLeafAnnotation
(
Function_t
*
fn
)
const
;
bool
getFreeRegister
(
Instruction_t
*
p_instr
,
std
::
string
&
p_freereg
,
RegisterSet_t
);
bool
traceBytesNested
(
Instruction_t
*
p_instr
,
int64_t
p_immediate
);
private:
pqxxDB_t
&
m_dbinterface
;
std
::
unique_ptr
<
FunctionSet_t
>
leaf_functions
;
std
::
unique_ptr
<
DeadRegisterMap_t
>
dead_registers
;
bool
m_verbose
;
bool
m_trace_compare
;
...
...
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