Files
Plasma/ir.ll

27 lines
730 B
LLVM
Raw Normal View History

2025-10-18 19:28:54 +11:00
; ModuleID = "main"
target triple = "x86_64-pc-windows-msvc"
target datalayout = ""
declare i32 @"printf"(i8* %".1", ...)
declare double @"sqrt"(double %".1")
@"true" = constant i1 1
@"false" = constant i1 0
define i32 @"main"()
{
main_entry:
%".2" = alloca double
store double 0x4010000000000000, double* %".2"
%".4" = call double @"sqrt"(double 0x4010000000000000)
%".5" = alloca double
store double %".4", double* %".5"
%".7" = load double, double* %".5"
%".8" = alloca [5 x i8]*
store [5 x i8]* @"__str_1", [5 x i8]** %".8"
%".10" = bitcast [5 x i8]* @"__str_1" to i8*
%".11" = call i32 (i8*, ...) @"printf"(i8* %".10", double %".7")
ret i32 0
}
@"__str_1" = internal constant [5 x i8] c"%f\0a\00\00"