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
0195b21d
Commit
0195b21d
authored
9 years ago
by
Prakalp Srivastava
Browse files
Options
Downloads
Patches
Plain Diff
Added dummy calls to capture sqrt, rsqrt, floor
parent
c455aab9
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
llvm/test/VISC/parboil/common/include/visc.h
+22
-11
22 additions, 11 deletions
llvm/test/VISC/parboil/common/include/visc.h
with
22 additions
and
11 deletions
llvm/test/VISC/parboil/common/include/visc.h
+
22
−
11
View file @
0195b21d
...
...
@@ -6,28 +6,35 @@
*cr
***************************************************************************/
#ifdef __cplusplus
#include
"llvm/SupportVISC/VISCHint.h"
#ifdef __cplusplus
extern
"C"
{
void
__visc__attributes
(
unsigned
,
...);
void
__visc__hint
(
visc
::
Target
);
//void __visc__wait(unsigned);
void
__visc__wait
(
void
*
);
#else
void
__visc__hint
(
enum
Target
);
void
__visc__wait
(
unsigned
);
#endif
#ifdef __cplusplus
void
*
__visc__node
(...);
void
*
__visc__createNode
(...);
void
*
__visc__createNode1D
(...);
void
*
__visc__createNode2D
(...);
void
*
__visc__createNode3D
(...);
void
__visc__return
(...);
#endif
void
__visc__attributes
(
unsigned
,
...);
void
__visc__init
();
void
__visc__cleanup
();
void
*
__visc__createNode2D
(...);
void
*
__visc__createNode1D
(...);
void
*
__visc__createNode
(...);
void
__visc__bindIn
(
void
*
,
unsigned
,
unsigned
,
unsigned
);
void
__visc__bindOut
(
void
*
,
unsigned
,
unsigned
,
unsigned
);
void
*
__visc__edge
(
void
*
,
void
*
,
unsigned
,
unsigned
,
unsigned
);
void
__visc__push
(
void
*
,
void
*
);
void
*
__visc__pop
(
void
*
);
void
*
__visc__launch
(
unsigned
,
...);
void
__visc__wait
(
void
*
);
void
__visc__return
(...);
void
*
__visc__getNode
();
void
*
__visc__getParentNode
(
void
*
);
...
...
@@ -53,6 +60,11 @@ int __visc__atomic_max(int*, int);
int
__visc__atomic_and
(
int
*
,
int
);
int
__visc__atomic_or
(
int
*
,
int
);
int
__visc__atomic_xor
(
int
*
,
int
);
// Special Func
float
__visc__floor
(
float
);
float
__visc__rsqrt
(
float
);
float
__visc__sqrt
(
float
);
// unsigned int
//unsigned __visc__atomic_cmpxchg(unsigned*, unsigned, unsigned);
//unsigned __visc__atomic_add(unsigned*, unsigned);
...
...
@@ -67,8 +79,6 @@ int __visc__atomic_xor(int*, int);
//unsigned __visc__atomic_xor(unsigned*, unsigned);
#endif
#include
<unistd.h>
int
get_global_id
(
int
);
...
...
@@ -76,6 +86,7 @@ int get_group_id(int);
int
get_local_id
(
int
);
int
get_local_size
(
int
);
void
llvm_visc_track_mem
(
void
*
,
size_t
);
void
llvm_visc_untrack_mem
(
void
*
);
void
llvm_visc_request_mem
(
void
*
,
size_t
);
...
...
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