-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 修复Error不应该是panic * 限制并行数量避免占用过高 * 更改原生字符串为string view * 改进代码生成 * update llvm backend * 修复codegen的bug * 改进诊断输出 * 更新子模块
- Loading branch information
1 parent
e82e306
commit e0c4eb6
Showing
12 changed files
with
422 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#pragma once | ||
|
||
#include <memory> | ||
|
||
#include "BoundStatement.h" | ||
#include "MambaCore.h" | ||
|
||
namespace Mamba | ||
{ | ||
struct BasicBlock | ||
{ | ||
std::span<const BoundStatement*> Statements; | ||
|
||
std::unique_ptr<Nullable<BasicBlock>> Successor; | ||
std::unique_ptr<Nullable<BasicBlock>> Predecessor; | ||
}; | ||
} // namespace Mamba |
12 changes: 12 additions & 0 deletions
12
Mamba/src/Code Analysis/Binding/ControlFlow/BasicBlockBranch.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#pragma once | ||
|
||
#include "BasicBlock.h" | ||
#include "BoundExpression.h" | ||
|
||
namespace Mamba | ||
{ | ||
struct BasicBlockBranch : public BasicBlock | ||
{ | ||
const BoundExpression* Condition; | ||
}; | ||
} // namespace Mamba |
12 changes: 12 additions & 0 deletions
12
Mamba/src/Code Analysis/Binding/ControlFlow/ControlFlowGraph.h
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#pragma once | ||
|
||
#include "BasicBlock.h" | ||
|
||
namespace Mamba | ||
{ | ||
struct ControlFlowGraph | ||
{ | ||
BasicBlock Entry; | ||
BasicBlock Exit; | ||
}; | ||
} // namespace Mamba |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#pragma once | ||
|
||
namespace Mamba | ||
{ | ||
enum class CompareKind | ||
{ | ||
Ordered, | ||
Unordered, | ||
Signed, | ||
Unsigned | ||
}; | ||
} // namespace Mamba |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.