Mercurial > hg > CbC > CbC_llvm
comparison llvm/test/Feature/attributes.ll @ 252:1f2b6ac9f198 llvm-original
LLVM16-1
author | Shinji KONO <kono@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 18 Aug 2023 09:04:13 +0900 |
parents | 1d019706d866 |
children |
comparison
equal
deleted
inserted
replaced
237:c80f45b162ad | 252:1f2b6ac9f198 |
---|---|
4 | 4 |
5 @.str = private unnamed_addr constant [14 x i8] c"hello world!\0A\00", align 1 | 5 @.str = private unnamed_addr constant [14 x i8] c"hello world!\0A\00", align 1 |
6 | 6 |
7 define void @foo() #0 { | 7 define void @foo() #0 { |
8 entry: | 8 entry: |
9 %call = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i32 0, i32 0)) | 9 %call = call i32 (ptr, ...) @printf(ptr @.str) |
10 ret void | 10 ret void |
11 } | 11 } |
12 | 12 |
13 declare i32 @printf(i8*, ...) | 13 declare i32 @printf(ptr, ...) |
14 | 14 |
15 attributes #0 = { nounwind ssp uwtable } | 15 attributes #0 = { nounwind ssp uwtable } |