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
f9ce70d0
Commit
f9ce70d0
authored
9 years ago
by
Prakalp Srivastava
Browse files
Options
Downloads
Patches
Plain Diff
Changes to DFG2LLVM.h
parent
cfff1f52
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/SupportVISC/DFG2LLVM.h
+6
-0
6 additions, 0 deletions
llvm/include/llvm/SupportVISC/DFG2LLVM.h
llvm/include/llvm/SupportVISC/VISCHint.h
+1
-0
1 addition, 0 deletions
llvm/include/llvm/SupportVISC/VISCHint.h
with
7 additions
and
0 deletions
llvm/include/llvm/SupportVISC/DFG2LLVM.h
+
6
−
0
View file @
f9ce70d0
...
...
@@ -15,6 +15,7 @@
#include
"llvm/IR/Value.h"
#include
"llvm/Pass.h"
#include
"llvm/BuildDFG/BuildDFG.h"
#include
"llvm/SupportVISC/VISCHint.h"
#include
"llvm/SupportVISC/VISCTimer.h"
using
namespace
llvm
;
...
...
@@ -28,6 +29,7 @@ using namespace builddfg;
namespace
dfg2llvm
{
// Helper Functions
static
inline
ConstantInt
*
getTimerID
(
Module
&
,
enum
visc_TimerID
);
static
inline
ConstantInt
*
getTimerID
(
Module
&
,
enum
visc
::
Target
);
// DFG2LLVM abstract class implementation
class
DFG2LLVM
:
public
ModulePass
{
...
...
@@ -233,5 +235,9 @@ static inline ConstantInt* getTimerID(Module& M, enum visc_TimerID timer) {
return
ConstantInt
::
get
(
Type
::
getInt32Ty
(
M
.
getContext
()),
timer
);
}
static
inline
ConstantInt
*
getTargetID
(
Module
&
M
,
enum
visc
::
Target
T
)
{
return
ConstantInt
::
get
(
Type
::
getInt32Ty
(
M
.
getContext
()),
T
);
}
}
// End of namespace
This diff is collapsed.
Click to expand it.
llvm/include/llvm/SupportVISC/VISCHint.h
+
1
−
0
View file @
f9ce70d0
...
...
@@ -18,6 +18,7 @@ namespace visc {
None
,
CPU_TARGET
,
GPU_TARGET
,
SPIR_TARGET
,
NUM_TARGETS
};
...
...
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