mirror of
https://github.com/exaloop/codon.git
synced 2025-06-03 15:03:52 +08:00
clang-format
This commit is contained in:
parent
c8b757859a
commit
f40d27836b
@ -673,15 +673,7 @@ struct StackAllocExpr : Expr {
|
|||||||
|
|
||||||
#undef ACCEPT
|
#undef ACCEPT
|
||||||
|
|
||||||
enum ExprAttr {
|
enum ExprAttr { SequenceItem, StarSequenceItem, List, Set, Dict, Partial, __LAST__ };
|
||||||
SequenceItem,
|
|
||||||
StarSequenceItem,
|
|
||||||
List,
|
|
||||||
Set,
|
|
||||||
Dict,
|
|
||||||
Partial,
|
|
||||||
__LAST__
|
|
||||||
};
|
|
||||||
|
|
||||||
} // namespace ast
|
} // namespace ast
|
||||||
} // namespace codon
|
} // namespace codon
|
||||||
|
@ -51,7 +51,7 @@ struct TranslateContext : public Context<TranslateItem> {
|
|||||||
/// Stack of IR series (blocks).
|
/// Stack of IR series (blocks).
|
||||||
std::vector<codon::ir::SeriesFlow *> series;
|
std::vector<codon::ir::SeriesFlow *> series;
|
||||||
/// Stack of sequence items for attribute initialization.
|
/// Stack of sequence items for attribute initialization.
|
||||||
std::vector<std::vector<std::pair<ExprAttr, ir::Value*>>> seqItems;
|
std::vector<std::vector<std::pair<ExprAttr, ir::Value *>>> seqItems;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
TranslateContext(Cache *cache);
|
TranslateContext(Cache *cache);
|
||||||
|
@ -481,7 +481,8 @@ public:
|
|||||||
void visit(const dsl::CustomInstr *v) override;
|
void visit(const dsl::CustomInstr *v) override;
|
||||||
|
|
||||||
template <typename NodeType> void process(const NodeType *v) {
|
template <typename NodeType> void process(const NodeType *v) {
|
||||||
if (!v) return;
|
if (!v)
|
||||||
|
return;
|
||||||
if (seenIds.find(v->getId()) != seenIds.end())
|
if (seenIds.find(v->getId()) != seenIds.end())
|
||||||
return;
|
return;
|
||||||
seenIds.insert(v->getId());
|
seenIds.insert(v->getId());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user