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
ff7c8d10
Commit
ff7c8d10
authored
12 years ago
by
Prakalp Srivastava
Browse files
Options
Downloads
Patches
Plain Diff
Changed DFNodeListType and DFEdgeListType to vectors.
Added IntrinsicInst* field to DFNode.
parent
2612f39e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
llvm/include/llvm/IR/DFGraph.h
+16
-19
16 additions, 19 deletions
llvm/include/llvm/IR/DFGraph.h
with
16 additions
and
19 deletions
llvm/include/llvm/IR/DFGraph.h
+
16
−
19
View file @
ff7c8d10
...
...
@@ -38,45 +38,42 @@
#define LLVM_IR_DFGRAPH_H
#include
"llvm/IR/Function.h"
#include
"llvm/IR/GlobalValue.h"
#include
"llvm/Support/Compiler.h"
namespace
llvm
{
class
DFEdge
;
class
DFNode
:
public
ilist_node
<
DFNode
>
{
class
DFNode
{
private:
typedef
iplist
<
DFNode
>
DFNodeListType
;
typedef
iplist
<
DFEdge
>
DFEdgeListType
;
typedef
std
::
vector
<
DFNode
*
>
DFNodeListType
;
typedef
std
::
vector
<
DFEdge
*
>
DFEdgeListType
;
public:
// DFNode and DFEdge iterators
typedef
DFNodeListType
::
iterator
node_iterator
;
typedef
DFNodeListType
::
const_iterator
const_node_iterator
;
typedef
DFEdgeListType
::
iterator
edge_iterator
;
typedef
DFEdgeListType
::
const_iterator
const_edge_iterator
;
private:
// Important things that make up a Dataflow Node
IntrinsicInst
*
II
;
///< Associated IntrinsicInst/Value
Function
*
FuncPointer
;
///< Associated Function
DFNode
*
Parent
;
///< Pointer to parent dataflow Node
int
NumOfDim
;
///< Number of dimensions
std
::
vector
<
int
>
DimLimits
;
///< Number of instances in each dimension
DFNode
*
Parent
;
///< Pointer to parent dataflow Node
DFNodeListType
ChildrenList
;
///< List of children Dataflow Nodes
DFEdgeListType
DFEdgeList
;
///< List of Dataflow edges among children
public:
// Functions
DFNode
(
IntrinsicInst
*
_II
,
Function
*
_FuncPointer
,
DFNode
*
_Parent
,
int
_NumOfDim
,
std
::
vector
<
int
>
_DimLimits
)
:
II
(
_II
),
FuncPointer
(
_FuncPointer
),
Parent
(
_Parent
),
NumOfDim
(
_NumOfDim
),
DimLimits
(
_DimLimits
)
{}
//FIXME: Write a matching constructor, then uncomment this function.
/*static DFNode *Create(Function* FuncPointer, int NumOfDim = 0, DFNode* Parent = NULL) {
return new DFNode(FuncPointer, NumOfDim, Parent);
public
:
}*/
static
DFNode
*
Create
(
IntrinsicInst
*
II
,
Function
*
FuncPointer
,
DFNode
*
Parent
=
NULL
,
int
NumOfDim
=
0
,
std
::
vector
<
int
>
DimLimits
=
std
::
vector
<
int
>
())
{
return
new
DFNode
(
II
,
FuncPointer
,
Parent
,
NumOfDim
,
DimLimits
);
}
};
class
DFEdge
:
public
ilist_node
<
DFEdge
>
{
class
DFEdge
{
private:
// Important things that make up a Dataflow Edge
DFNode
*
SrcDF
;
///< Pointer to source dataflow Node
...
...
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