Skip to content

Commit 4e9f77c

Browse files
committed
Move codegen source files to codegen directory
1 parent 500fd4d commit 4e9f77c

71 files changed

Lines changed: 44 additions & 39 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎src/engine/CMakeLists.txt‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,6 @@ target_sources(scratchcpp
2929
thread_p.h
3030
internal/engine.cpp
3131
internal/engine.h
32-
internal/icodebuilder.h
33-
internal/icodebuilderfactory.h
34-
internal/codebuilderfactory.cpp
35-
internal/codebuilderfactory.h
3632
internal/clock.cpp
3733
internal/clock.h
3834
internal/iclock.h
@@ -44,4 +40,4 @@ target_sources(scratchcpp
4440
internal/randomgenerator.cpp
4541
)
4642

47-
add_subdirectory(internal/llvm)
43+
add_subdirectory(internal/codegen)

‎src/engine/compiler.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
#include <scratchcpp/inputvalue.h>
99

1010
#include "compiler_p.h"
11-
#include "internal/icodebuilderfactory.h"
12-
#include "internal/icodebuilder.h"
11+
#include "internal/codegen/icodebuilderfactory.h"
12+
#include "internal/codegen/icodebuilder.h"
1313

1414
using namespace libscratchcpp;
1515

‎src/engine/compiler_p.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66
#include "compiler_p.h"
77

8-
#include "internal/codebuilderfactory.h"
9-
#include "internal/icodebuilder.h"
8+
#include "internal/codegen/codebuilderfactory.h"
9+
#include "internal/codegen/icodebuilder.h"
1010

1111
using namespace libscratchcpp;
1212

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
target_sources(scratchcpp
2+
PRIVATE
3+
icodebuilder.h
4+
icodebuilderfactory.h
5+
codebuilderfactory.cpp
6+
codebuilderfactory.h
7+
)
8+
9+
add_subdirectory(llvm)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

src/engine/internal/llvm/instructions/CMakeLists.txt renamed to src/engine/internal/codegen/llvm/instructions/CMakeLists.txt

File renamed without changes.

0 commit comments

Comments
 (0)