piston/packages/llvm_ir/12.0.1/test.ll

11 lines
236 B
LLVM
Raw Permalink Normal View History

2021-10-06 15:00:58 +02:00
@.str = private unnamed_addr constant [2 x i8] c"OK"
declare i32 @puts(i8* nocapture) nounwind
define i32 @main() {
2021-10-06 15:00:58 +02:00
%cast210 = getelementptr [2 x i8],[2 x i8]* @.str, i64 0, i64 0
call i32 @puts(i8* %cast210)
ret i32 0
}