Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
H
hpvm-release
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
Model registry
Operate
Environments
Monitor
Incidents
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
llvm
hpvm-release
Commits
0b914eea
Commit
0b914eea
authored
10 years ago
by
kotsifa2
Browse files
Options
Downloads
Patches
Plain Diff
Added functionality to BuildDFG Pass.
(functions required to access the DFGraph for other passes)
parent
5f734814
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
llvm/include/llvm/BuildDFG/BuildDFG.h
+7
-2
7 additions, 2 deletions
llvm/include/llvm/BuildDFG/BuildDFG.h
llvm/lib/Transforms/BuildDFG/BuildDFG.cpp
+11
-0
11 additions, 0 deletions
llvm/lib/Transforms/BuildDFG/BuildDFG.cpp
with
18 additions
and
2 deletions
llvm/include/llvm/BuildDFG/BuildDFG.h
+
7
−
2
View file @
0b914eea
...
...
@@ -24,11 +24,12 @@ namespace builddfg {
static
char
ID
;
// Pass identification, replacement for typeid
BuildDFG
()
:
ModulePass
(
ID
)
{}
typedef
ValueMap
<
Value
*
,
DFNode
*>
HandleToDFNode
;
typedef
ValueMap
<
Value
*
,
DFEdge
*>
HandleToDFEdge
;
private
:
// Member variables
DFInternalNode
*
Root
;
typedef
ValueMap
<
Value
*
,
DFNode
*>
HandleToDFNode
;
typedef
ValueMap
<
Value
*
,
DFEdge
*>
HandleToDFEdge
;
HandleToDFNode
HandleToDFNodeMap
;
// This map associates the i8* pointer
// with the DFNode structure that it
...
...
@@ -49,6 +50,10 @@ namespace builddfg {
public
:
virtual
bool
runOnModule
(
Module
&
M
);
const
DFInternalNode
*
getRoot
();
const
HandleToDFNode
&
getHandleToDFNodeMap
();
const
HandleToDFEdge
&
getHandleToDFEdgeMap
();
};
}
// End of namespace
...
...
This diff is collapsed.
Click to expand it.
llvm/lib/Transforms/BuildDFG/BuildDFG.cpp
+
11
−
0
View file @
0b914eea
...
...
@@ -71,6 +71,17 @@ namespace builddfg {
return
false
;
//TODO: What does returning "false" mean?
}
const
DFInternalNode
*
BuildDFG
::
getRoot
()
{
return
Root
;
}
const
BuildDFG
::
HandleToDFNode
&
BuildDFG
::
getHandleToDFNodeMap
()
{
return
HandleToDFNodeMap
;
}
const
BuildDFG
::
HandleToDFEdge
&
BuildDFG
::
getHandleToDFEdgeMap
()
{
return
HandleToDFEdgeMap
;
}
// Returns true if instruction I is a visc launch intrinsic, false otherwise
bool
BuildDFG
::
isViscLaunchIntrinsic
(
Instruction
*
I
)
{
...
...
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