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
c5d7c730
Commit
c5d7c730
authored
9 years ago
by
Prakalp Srivastava
Browse files
Options
Downloads
Patches
Plain Diff
Test benchmark for pipeline: twoNodeStream.ll
parent
795bfa8b
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/unitTests/twoNodeStream.ll
+106
-0
106 additions, 0 deletions
llvm/test/VISC/unitTests/twoNodeStream.ll
with
106 additions
and
0 deletions
llvm/test/VISC/unitTests/twoNodeStream.ll
0 → 100644
+
106
−
0
View file @
c5d7c730
; RUN: opt -load LLVMBuildDFG.so -load LLVMDFG2LLVM_X86.so -load LLVMClearDFG.so -dfg2llvm-x86 -clearDFG -o %t.ll -S < %s
; RUN: llvm-link %t.ll ~/current-src/projects/visc-rt/visc-rt.ll -S -o %t.linked.ll
; RUN: clang++ -O3 %t.linked.ll -lpthread -lOpenCL -lrt -o %t.bin
; RUN: %t.bin 5
; ModuleID = '/home/psrivas2/current-test/unitTests/twoNodeConnect.ll'
target
datalayout
=
"e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f32:32:32-f64:64:64-v64:64:64-v128:128:128-a0:0:64-s0:64:64-f80:128:128-n8:16:32:64-S128"
target
triple
=
"x86_64-unknown-linux-gnu"
%rptype
=
type
<{
i32
*,
i64
}>
%rctype
=
type
<{
i32
*,
i64
}>
%struct.arg
=
type
<{
i32
*,
i64
,
%rctype
}>
@.str
=
private
unnamed_addr
constant
[
4
x
i8
]
c"%d\0A\00"
,
align
1
; Function Attrs: nounwind
declare
void
@llvm.visc.init
()
#1
; Function Attrs: nounwind
declare
void
@llvm.visc.cleanup
()
#1
; Function Attrs: nounwind
declare
i8
*
@llvm.visc.createNode
(
i8
*)
#0
; Function Attrs: nounwind
declare
i8
*
@llvm.visc.createEdge
(
i8
*,
i8
*,
i1
,
i32
,
i32
)
#0
; Function Attrs: nounwind
declare
i8
*
@llvm.visc.launch
(
i8
*,
i8
*)
#0
; Function Attrs: nounwind
declare
void
@llvm.visc.wait
(
i8
*)
#0
; Function Attrs: nounwind
declare
void
@llvm.visc.bind.input
(
i8
*,
i32
,
i32
)
; Function Attrs: nounwind
declare
void
@llvm.visc.bind.output
(
i8
*,
i32
,
i32
)
; Function Attrs: nounwind uwtable
define
i32
@main
(
i32
%argc
,
i8
**
nocapture
%argv
)
#1
{
entry:
call
void
@llvm.visc.init
()
%in.addr
=
alloca
%struct.arg
%num
=
alloca
i32
%arrayidx
=
getelementptr
inbounds
i8
**
%argv
,
i64
1
%0
=
load
i8
**
%arrayidx
,
align
8
,
!tbaa
!0
%call.i
=
tail
call
i64
@strtol
(
i8
*
nocapture
%0
,
i8
**
null
,
i32
10
)
#0
%conv.i
=
trunc
i64
%call.i
to
i32
%1
=
bitcast
%struct.arg
*
%in.addr
to
i32
**
store
i32
%conv.i
,
i32
*
%num
store
i32
*
%num
,
i32
**
%1
%args
=
bitcast
%struct.arg
*
%in.addr
to
i8
*
%graphID
=
call
i8
*
@llvm.visc.launch
(
i8
*
bitcast
(
%rctype
(
i32
*,
i64
)*
@Root
to
i8
*),
i8
*
%args
)
%call1
=
tail
call
i32
(
i8
*,
...)*
@printf
(
i8
*
getelementptr
inbounds
([
4
x
i8
]*
@.str
,
i64
0
,
i64
0
),
i32
%conv.i
)
#0
call
void
@llvm.visc.wait
(
i8
*
%graphID
)
%2
=
getelementptr
%struct.arg
*
%in.addr
,
i32
0
,
i32
2
%outputstruct
=
load
%rctype
*
%2
%output
=
extractvalue
%rctype
%outputstruct
,
0
%output_val
=
load
i32
*
%output
%call2
=
tail
call
i32
(
i8
*,
...)*
@printf
(
i8
*
getelementptr
inbounds
([
4
x
i8
]*
@.str
,
i64
0
,
i64
0
),
i32
%output_val
)
#0
call
void
@llvm.visc.cleanup
()
ret
i32
0
}
define
%rptype
@producer
(
i32
*
%id
,
i64
%size
)
{
%val
=
load
i32
*
%id
%sum
=
add
i32
2
,
%val
store
i32
%sum
,
i32
*
%id
%temp
=
insertvalue
%rptype
undef
,
i32
*
%id
,
0
%output
=
insertvalue
%rptype
%temp
,
i64
%size
,
1
ret
%rptype
%output
}
define
%rctype
@consumer
(
i32
*
%id
,
i64
%size
)
{
%val
=
load
i32
*
%id
%sum
=
add
i32
3
,
%val
store
i32
%sum
,
i32
*
%id
%temp
=
insertvalue
%rctype
undef
,
i32
*
%id
,
0
%output
=
insertvalue
%rctype
%temp
,
i64
%size
,
1
ret
%rctype
%output
}
define
%rctype
@Root
(
i32
*
%id
,
i64
%size
)
{
%p_node
=
call
i8
*
@llvm.visc.createNode
(
i8
*
bitcast
(
%rptype
(
i32
*,
i64
)*
@producer
to
i8
*))
%c_node
=
call
i8
*
@llvm.visc.createNode
(
i8
*
bitcast
(
%rctype
(
i32
*,
i64
)*
@consumer
to
i8
*))
%edge
=
call
i8
*
@llvm.visc.createEdge
(
i8
*
%p_node
,
i8
*
%c_node
,
i1
false
,
i32
0
,
i32
0
)
%edge2
=
call
i8
*
@llvm.visc.createEdge
(
i8
*
%p_node
,
i8
*
%c_node
,
i1
false
,
i32
1
,
i32
1
)
call
void
@llvm.visc.bind.input
(
i8
*
%p_node
,
i32
0
,
i32
0
)
call
void
@llvm.visc.bind.input
(
i8
*
%p_node
,
i32
1
,
i32
1
)
call
void
@llvm.visc.bind.output
(
i8
*
%c_node
,
i32
0
,
i32
0
)
call
void
@llvm.visc.bind.output
(
i8
*
%c_node
,
i32
1
,
i32
1
)
ret
%rctype
zeroinitializer
}
; Function Attrs: nounwind
declare
i32
@printf
(
i8
*
nocapture
,
...)
#2
; Function Attrs: nounwind
declare
i64
@strtol
(
i8
*,
i8
**
nocapture
,
i32
)
#2
attributes
#0
=
{
nounwind
}
attributes
#1
=
{
nounwind
uwtable
"less-precise-fpmad"
=
"false"
"no-frame-pointer-elim"
=
"false"
"no-frame-pointer-elim-non-leaf"
=
"false"
"no-infs-fp-math"
=
"false"
"no-nans-fp-math"
=
"false"
"unsafe-fp-math"
=
"false"
"use-soft-float"
=
"false"
}
attributes
#2
=
{
nounwind
"less-precise-fpmad"
=
"false"
"no-frame-pointer-elim"
=
"false"
"no-frame-pointer-elim-non-leaf"
=
"false"
"no-infs-fp-math"
=
"false"
"no-nans-fp-math"
=
"false"
"unsafe-fp-math"
=
"false"
"use-soft-float"
=
"false"
}
!0
=
metadata
!{
metadata
!"any pointer"
,
metadata
!1
}
!1
=
metadata
!{
metadata
!"omnipotent char"
,
metadata
!2
}
!2
=
metadata
!{
metadata
!"Simple C/C++ TBAA"
}
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