From 14c5ba320cc82b88175ff944fcf5ea94a318182c Mon Sep 17 00:00:00 2001 From: servostar Date: Tue, 4 Jun 2024 15:34:47 +0200 Subject: [PATCH] moved modules for llvm-ir generation into subfolder --- src/llvm/{ => llvm-ir}/expr.c | 4 ++-- src/llvm/{ => llvm-ir}/expr.h | 2 +- src/llvm/{ => llvm-ir}/func.c | 4 ++-- src/llvm/{ => llvm-ir}/func.h | 0 src/llvm/{ => llvm-ir}/stmt.c | 8 ++++---- src/llvm/{ => llvm-ir}/stmt.h | 0 src/llvm/{ => llvm-ir}/types.c | 8 ++++---- src/llvm/{ => llvm-ir}/types.h | 0 src/llvm/{ => llvm-ir}/variables.c | 8 ++++---- src/llvm/{ => llvm-ir}/variables.h | 0 src/llvm/parser.c | 6 +++--- 11 files changed, 20 insertions(+), 20 deletions(-) rename src/llvm/{ => llvm-ir}/expr.c (99%) rename src/llvm/{ => llvm-ir}/expr.h (92%) rename src/llvm/{ => llvm-ir}/func.c (98%) rename src/llvm/{ => llvm-ir}/func.h (100%) rename src/llvm/{ => llvm-ir}/stmt.c (98%) rename src/llvm/{ => llvm-ir}/stmt.h (100%) rename src/llvm/{ => llvm-ir}/types.c (99%) rename src/llvm/{ => llvm-ir}/types.h (100%) rename src/llvm/{ => llvm-ir}/variables.c (98%) rename src/llvm/{ => llvm-ir}/variables.h (100%) diff --git a/src/llvm/expr.c b/src/llvm/llvm-ir/expr.c similarity index 99% rename from src/llvm/expr.c rename to src/llvm/llvm-ir/expr.c index beee0d3..6896ce1 100644 --- a/src/llvm/expr.c +++ b/src/llvm/llvm-ir/expr.c @@ -2,8 +2,8 @@ // Created by servostar on 5/28/24. // -#include -#include +#include +#include #include BackendError impl_bitwise_operation([[maybe_unused]] LLVMBackendCompileUnit *unit, diff --git a/src/llvm/expr.h b/src/llvm/llvm-ir/expr.h similarity index 92% rename from src/llvm/expr.h rename to src/llvm/llvm-ir/expr.h index c0c8d47..15df434 100644 --- a/src/llvm/expr.h +++ b/src/llvm/llvm-ir/expr.h @@ -7,7 +7,7 @@ #include #include -#include +#include #include BackendError impl_expr(LLVMBackendCompileUnit *unit, LLVMLocalScope *scope, diff --git a/src/llvm/func.c b/src/llvm/llvm-ir/func.c similarity index 98% rename from src/llvm/func.c rename to src/llvm/llvm-ir/func.c index fc21f27..107b697 100644 --- a/src/llvm/func.c +++ b/src/llvm/llvm-ir/func.c @@ -3,9 +3,9 @@ #include #include #include -#include +#include #include -#include +#include #include #include diff --git a/src/llvm/func.h b/src/llvm/llvm-ir/func.h similarity index 100% rename from src/llvm/func.h rename to src/llvm/llvm-ir/func.h diff --git a/src/llvm/stmt.c b/src/llvm/llvm-ir/stmt.c similarity index 98% rename from src/llvm/stmt.c rename to src/llvm/llvm-ir/stmt.c index 0e1b470..8692168 100644 --- a/src/llvm/stmt.c +++ b/src/llvm/llvm-ir/stmt.c @@ -3,11 +3,11 @@ // #include -#include -#include -#include -#include #include +#include +#include +#include +#include BackendError impl_assign_stmt([[maybe_unused]] LLVMBackendCompileUnit *unit, const LLVMBuilderRef builder, const LLVMLocalScope *scope, diff --git a/src/llvm/stmt.h b/src/llvm/llvm-ir/stmt.h similarity index 100% rename from src/llvm/stmt.h rename to src/llvm/llvm-ir/stmt.h diff --git a/src/llvm/types.c b/src/llvm/llvm-ir/types.c similarity index 99% rename from src/llvm/types.c rename to src/llvm/llvm-ir/types.c index 65fd661..76dcce1 100644 --- a/src/llvm/types.c +++ b/src/llvm/llvm-ir/types.c @@ -1,10 +1,10 @@ #include -#include -#include -#include -#include #include #include +#include +#include +#include +#include #define BASE_BYTES 4 #define BITS_PER_BYTE 8 diff --git a/src/llvm/types.h b/src/llvm/llvm-ir/types.h similarity index 100% rename from src/llvm/types.h rename to src/llvm/llvm-ir/types.h diff --git a/src/llvm/variables.c b/src/llvm/llvm-ir/variables.c similarity index 98% rename from src/llvm/variables.c rename to src/llvm/llvm-ir/variables.c index 5519313..595dd35 100644 --- a/src/llvm/variables.c +++ b/src/llvm/llvm-ir/variables.c @@ -1,11 +1,11 @@ #include -#include -#include -#include -#include #include #include +#include +#include +#include +#include BackendError impl_global_declaration(LLVMBackendCompileUnit* unit, LLVMGlobalScope* scope, diff --git a/src/llvm/variables.h b/src/llvm/llvm-ir/variables.h similarity index 100% rename from src/llvm/variables.h rename to src/llvm/llvm-ir/variables.h diff --git a/src/llvm/parser.c b/src/llvm/parser.c index dbe914b..57c989e 100644 --- a/src/llvm/parser.c +++ b/src/llvm/parser.c @@ -6,9 +6,9 @@ #include #include #include -#include -#include -#include +#include +#include +#include #include #include #include