Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
W
warm_up
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
compiler_staff
warm_up
Commits
7bc9d0e9
Commit
7bc9d0e9
authored
Sep 06, 2023
by
user
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add Test.ll
parent
b7b52e03
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
74 additions
and
0 deletions
+74
-0
Test.ll
Test.ll
+74
-0
No files found.
Test.ll
0 → 100644
View file @
7bc9d0e9
; ModuleID = 'Test.c'
source_filename
=
"Test.c"
target
datalayout
=
"e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16:32:64-S128"
target
triple
=
"x86_64-unknown-linux-gnu"
@grade_mul
=
common
dso_local
global
i32
0
,
align
4
@degree_mul
=
common
dso_local
global
i32
0
,
align
4
@.str
=
private
unnamed_addr
constant
[
6
x
i8
]
c"PB%d\0A\00"
,
align
1
@Grade
=
common
dso_local
global
[
1
x
i32
]
zeroinitializer
,
align
4
@Degree
=
common
dso_local
global
[
1
x
i32
]
zeroinitializer
,
align
4
@Number
=
common
dso_local
global
[
1
x
i32
]
zeroinitializer
,
align
4
; Function Attrs: noinline nounwind optnone uwtable
define
dso_local
void
@StudentNumber
(
i32
*
%0
,
i32
*
%1
,
i32
*
%2
)
#0
{
%4
=
alloca
i32
*,
align
8
%5
=
alloca
i32
*,
align
8
%6
=
alloca
i32
*,
align
8
%7
=
alloca
i32
,
align
4
%8
=
alloca
i32
,
align
4
%9
=
alloca
i32
,
align
4
%10
=
alloca
i32
,
align
4
store
i32
*
%0
,
i32
**
%4
,
align
8
store
i32
*
%1
,
i32
**
%5
,
align
8
store
i32
*
%2
,
i32
**
%6
,
align
8
%11
=
load
i32
*,
i32
**
%4
,
align
8
%12
=
getelementptr
inbounds
i32
,
i32
*
%11
,
i64
0
%13
=
load
i32
,
i32
*
%12
,
align
4
store
i32
%13
,
i32
*
%7
,
align
4
%14
=
load
i32
*,
i32
**
%5
,
align
8
%15
=
getelementptr
inbounds
i32
,
i32
*
%14
,
i64
0
%16
=
load
i32
,
i32
*
%15
,
align
4
store
i32
%16
,
i32
*
%8
,
align
4
%17
=
load
i32
*,
i32
**
%6
,
align
8
%18
=
getelementptr
inbounds
i32
,
i32
*
%17
,
i64
0
%19
=
load
i32
,
i32
*
%18
,
align
4
store
i32
%19
,
i32
*
%9
,
align
4
%20
=
load
i32
,
i32
*
%7
,
align
4
%21
=
load
i32
,
i32
*
@grade_mul
,
align
4
%22
=
mul
nsw
i32
%20
,
%21
%23
=
load
i32
,
i32
*
%8
,
align
4
%24
=
load
i32
,
i32
*
@degree_mul
,
align
4
%25
=
mul
nsw
i32
%23
,
%24
%26
=
add
nsw
i32
%22
,
%25
%27
=
load
i32
,
i32
*
%9
,
align
4
%28
=
add
nsw
i32
%26
,
%27
store
i32
%28
,
i32
*
%10
,
align
4
%29
=
load
i32
,
i32
*
%10
,
align
4
%30
=
call
i32
(
i8
*,
...)
@printf
(
i8
*
getelementptr
inbounds
([
6
x
i8
],
[
6
x
i8
]*
@.str
,
i64
0
,
i64
0
),
i32
%29
)
ret
void
}
declare
dso_local
i32
@printf
(
i8
*,
...)
#1
; Function Attrs: noinline nounwind optnone uwtable
define
dso_local
i32
@main
()
#0
{
%1
=
alloca
i32
,
align
4
store
i32
0
,
i32
*
%1
,
align
4
store
i32
20
,
i32
*
getelementptr
inbounds
([
1
x
i32
],
[
1
x
i32
]*
@Grade
,
i64
0
,
i64
0
),
align
4
store
i32
11
,
i32
*
getelementptr
inbounds
([
1
x
i32
],
[
1
x
i32
]*
@Degree
,
i64
0
,
i64
0
),
align
4
store
i32
1626
,
i32
*
getelementptr
inbounds
([
1
x
i32
],
[
1
x
i32
]*
@Number
,
i64
0
,
i64
0
),
align
4
store
i32
1000000
,
i32
*
@grade_mul
,
align
4
store
i32
10000
,
i32
*
@degree_mul
,
align
4
call
void
@StudentNumber
(
i32
*
getelementptr
inbounds
([
1
x
i32
],
[
1
x
i32
]*
@Grade
,
i64
0
,
i64
0
),
i32
*
getelementptr
inbounds
([
1
x
i32
],
[
1
x
i32
]*
@Degree
,
i64
0
,
i64
0
),
i32
*
getelementptr
inbounds
([
1
x
i32
],
[
1
x
i32
]*
@Number
,
i64
0
,
i64
0
))
ret
i32
0
}
attributes
#0
=
{
noinline
nounwind
optnone
uwtable
"correctly-rounded-divide-sqrt-fp-math"
=
"false"
"disable-tail-calls"
=
"false"
"frame-pointer"
=
"all"
"less-precise-fpmad"
=
"false"
"min-legal-vector-width"
=
"0"
"no-infs-fp-math"
=
"false"
"no-jump-tables"
=
"false"
"no-nans-fp-math"
=
"false"
"no-signed-zeros-fp-math"
=
"false"
"no-trapping-math"
=
"false"
"stack-protector-buffer-size"
=
"8"
"target-cpu"
=
"x86-64"
"target-features"
=
"+cx8,+fxsr,+mmx,+sse,+sse2,+x87"
"unsafe-fp-math"
=
"false"
"use-soft-float"
=
"false"
}
attributes
#1
=
{
"correctly-rounded-divide-sqrt-fp-math"
=
"false"
"disable-tail-calls"
=
"false"
"frame-pointer"
=
"all"
"less-precise-fpmad"
=
"false"
"no-infs-fp-math"
=
"false"
"no-nans-fp-math"
=
"false"
"no-signed-zeros-fp-math"
=
"false"
"no-trapping-math"
=
"false"
"stack-protector-buffer-size"
=
"8"
"target-cpu"
=
"x86-64"
"target-features"
=
"+cx8,+fxsr,+mmx,+sse,+sse2,+x87"
"unsafe-fp-math"
=
"false"
"use-soft-float"
=
"false"
}
!llvm.module.flags
=
!{
!0
}
!llvm.ident
=
!{
!1
}
!0
=
!{
i32
1
,
!"wchar_size"
,
i32
4
}
!1
=
!{
!"clang version 10.0.1 "
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment