archivesOfToyLang/tshunhue/雜七雜八/example-精簡版.ll

21 lines
319 B
LLVM
Raw Permalink Normal View History

2023-09-30 22:30:08 +08:00
; ModuleID = 'example.c'
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
target triple = "x86_64-pc-linux-gnu"
; Function Attrs: nounwind uwtable
define i32 @main() #0 {
%1 = alloca i32, align 4
store i32 0, i32* %1, align 4
%2 = call i32 @function()
ret i32 0
}
declare i32 @function() #1