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
0e087abd
Commit
0e087abd
authored
5 years ago
by
Akash Kothari
Browse files
Options
Downloads
Patches
Plain Diff
Marked getter functions in visc-rt as constant
parent
2d4c68ab
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
hpvm/projects/visc-rt/visc-rt.h
+10
-8
10 additions, 8 deletions
hpvm/projects/visc-rt/visc-rt.h
with
10 additions
and
8 deletions
hpvm/projects/visc-rt/visc-rt.h
+
10
−
8
View file @
0e087abd
...
@@ -48,7 +48,8 @@ class DFGDepth {
...
@@ -48,7 +48,8 @@ class DFGDepth {
unsigned
dimLimit
[
3
];
unsigned
dimLimit
[
3
];
unsigned
dimInstance
[
3
];
unsigned
dimInstance
[
3
];
public:
public:
DFGDepth
()
{}
DFGDepth
()
=
default
;
DFGDepth
(
unsigned
n
,
unsigned
dimX
=
0
,
unsigned
iX
=
0
,
unsigned
dimY
=
0
,
unsigned
iY
=
0
,
DFGDepth
(
unsigned
n
,
unsigned
dimX
=
0
,
unsigned
iX
=
0
,
unsigned
dimY
=
0
,
unsigned
iY
=
0
,
unsigned
dimZ
=
0
,
unsigned
iZ
=
0
)
{
unsigned
dimZ
=
0
,
unsigned
iZ
=
0
)
{
assert
(
n
<=
3
&&
"Error! More than 3 dimensions not supported"
);
assert
(
n
<=
3
&&
"Error! More than 3 dimensions not supported"
);
...
@@ -60,17 +61,18 @@ class DFGDepth {
...
@@ -60,17 +61,18 @@ class DFGDepth {
dimInstance
[
1
]
=
iY
;
dimInstance
[
1
]
=
iY
;
dimInstance
[
2
]
=
iZ
;
dimInstance
[
2
]
=
iZ
;
}
}
unsigned
getDimLimit
(
unsigned
dim
)
{
unsigned
getDimLimit
(
unsigned
dim
)
const
{
assert
(
dim
<=
numDim
&&
"Error! Requested dimension limit is not specified"
);
assert
(
dim
<=
numDim
&&
"Error! Requested dimension limit is not specified"
);
return
dimLimit
[
dim
];
return
dimLimit
[
dim
];
}
}
unsigned
getDimInstance
(
unsigned
dim
)
{
unsigned
getDimInstance
(
unsigned
dim
)
const
{
assert
(
dim
<=
numDim
&&
"Error! Requested dimension instance is not specified"
);
assert
(
dim
<=
numDim
&&
"Error! Requested dimension instance is not specified"
);
return
dimInstance
[
dim
];
return
dimInstance
[
dim
];
}
}
unsigned
getNumDim
()
{
unsigned
getNumDim
()
const
{
return
numDim
;
return
numDim
;
}
}
};
};
...
@@ -97,19 +99,19 @@ public:
...
@@ -97,19 +99,19 @@ public:
size
(
_size
),
loc
(
_loc
),
addr
(
_addr
),
Context
(
_Context
)
{
size
(
_size
),
loc
(
_loc
),
addr
(
_addr
),
Context
(
_Context
)
{
}
}
size_t
getSize
()
{
size_t
getSize
()
const
{
return
size
;
return
size
;
}
}
Location
getLocation
()
{
Location
getLocation
()
const
{
return
loc
;
return
loc
;
}
}
void
*
getAddress
()
{
void
*
getAddress
()
const
{
return
addr
;
return
addr
;
}
}
void
*
getContext
()
{
void
*
getContext
()
const
{
return
Context
;
return
Context
;
}
}
...
...
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