From 1fb00b9841bdc6707000aafdd412092104cd6574 Mon Sep 17 00:00:00 2001 From: sech1p Date: Mon, 16 Aug 2021 00:42:31 +0200 Subject: [PATCH] Add uwu in LLVM IR --- README.md | 3 ++- uwu.ll | 8 ++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 uwu.ll diff --git a/README.md b/README.md index eb28456..2bc03ad 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # uwu -uwu in every (soon™️) programming language in the world (71 languages and keeps growing) +uwu in every (soon™️) programming language in the world (72 languages and keeps growing) ## Languages @@ -67,6 +67,7 @@ uwu in every (soon™️) programming language in the world (71 languages and ke ## Assemblers - [High Level Assembly](uwu.hla) +- [LLVM IR](uwu.ll) ## Esoteric Languages diff --git a/uwu.ll b/uwu.ll new file mode 100644 index 0000000..7d0d5f7 --- /dev/null +++ b/uwu.ll @@ -0,0 +1,8 @@ +declare i32 @puts(i8*) + +@uwu = internal constant [4 x i8] c"uwu\00" +define i32 @main() +{ + call i32 @puts(i8* getelementptr ([4 x i8], [4 x i8]* @uwu, i32 0, i32 0)) + ret i32 0 +}