mirror of https://github.com/exaloop/codon.git
More .h -> .hpp conversions and removal of dead code
parent
db1dd724ec
commit
1937183cd1
153
CMakeLists.txt
153
CMakeLists.txt
|
@ -122,96 +122,95 @@ add_custom_command(
|
|||
include_directories(${LLVM_INCLUDE_DIRS})
|
||||
add_definitions(${LLVM_DEFINITIONS})
|
||||
set(CODON_HPPFILES
|
||||
codon/compiler/compiler.h
|
||||
codon/compiler/debug_listener.h
|
||||
codon/compiler/engine.h
|
||||
codon/compiler/compiler.hpp
|
||||
codon/compiler/debug_listener.hpp
|
||||
codon/compiler/engine.hpp
|
||||
codon/compiler/error.hpp
|
||||
codon/compiler/jit.h
|
||||
codon/compiler/memory_manager.h
|
||||
codon/dsl/dsl.h
|
||||
codon/dsl/plugins.h
|
||||
codon/compiler/jit.hpp
|
||||
codon/compiler/memory_manager.hpp
|
||||
codon/dsl/dsl.hpp
|
||||
codon/dsl/plugins.hpp
|
||||
codon/parser/ast.hpp
|
||||
codon/parser/ast/expr.h
|
||||
codon/parser/ast/stmt.h
|
||||
codon/parser/ast/expr.hpp
|
||||
codon/parser/ast/stmt.hpp
|
||||
codon/parser/ast/types.h
|
||||
codon/parser/ast/types/type.h
|
||||
codon/parser/ast/types/link.h
|
||||
codon/parser/ast/types/class.h
|
||||
codon/parser/ast/types/function.h
|
||||
codon/parser/ast/types/union.h
|
||||
codon/parser/ast/types/static.h
|
||||
codon/parser/ast/types/traits.h
|
||||
codon/parser/ast/types/type.hpp
|
||||
codon/parser/ast/types/link.hpp
|
||||
codon/parser/ast/types/class.hpp
|
||||
codon/parser/ast/types/function.hpp
|
||||
codon/parser/ast/types/union.hpp
|
||||
codon/parser/ast/types/static.hpp
|
||||
codon/parser/ast/types/traits.hpp
|
||||
codon/parser/cache.hpp
|
||||
codon/parser/common.hpp
|
||||
codon/parser/ctx.hpp
|
||||
codon/parser/peg/peg.h
|
||||
codon/parser/peg/rules.h
|
||||
codon/parser/visitors/doc/doc.h
|
||||
codon/parser/visitors/format/format.h
|
||||
codon/parser/visitors/simplify/simplify.h
|
||||
codon/parser/peg/peg.hpp
|
||||
codon/parser/peg/rules.hpp
|
||||
codon/parser/visitors/doc/doc.hpp
|
||||
codon/parser/visitors/format/format.hpp
|
||||
codon/parser/visitors/simplify/simplify.hpp
|
||||
codon/parser/visitors/simplify/ctx.hpp
|
||||
codon/parser/visitors/translate/translate.h
|
||||
codon/parser/visitors/translate/translate_ctx.hpp
|
||||
codon/parser/visitors/typecheck/typecheck.h
|
||||
codon/parser/visitors/typecheck/ctx.hpp
|
||||
codon/parser/visitors/visitor.h
|
||||
codon/cir/analyze/analysis.h
|
||||
codon/cir/analyze/dataflow/capture.h
|
||||
codon/cir/analyze/dataflow/cfg.h
|
||||
codon/cir/analyze/dataflow/dominator.h
|
||||
codon/cir/analyze/dataflow/reaching.h
|
||||
codon/cir/analyze/module/global_vars.h
|
||||
codon/cir/analyze/module/side_effect.h
|
||||
codon/cir/attribute.h
|
||||
codon/cir/base.h
|
||||
codon/cir/const.h
|
||||
codon/cir/dsl/codegen.h
|
||||
codon/cir/dsl/nodes.h
|
||||
codon/cir/flow.h
|
||||
codon/cir/func.h
|
||||
codon/cir/instr.h
|
||||
codon/cir/llvm/gpu.h
|
||||
codon/cir/llvm/llvisitor.h
|
||||
codon/cir/llvm/llvm.h
|
||||
codon/cir/llvm/optimize.h
|
||||
codon/cir/module.h
|
||||
codon/cir/pyextension.h
|
||||
codon/cir/cir.h
|
||||
codon/cir/transform/cleanup/canonical.h
|
||||
codon/cir/transform/cleanup/dead_code.h
|
||||
codon/cir/transform/cleanup/global_demote.h
|
||||
codon/cir/transform/cleanup/replacer.h
|
||||
codon/cir/transform/folding/const_fold.h
|
||||
codon/cir/transform/folding/const_prop.h
|
||||
codon/cir/transform/folding/folding.h
|
||||
codon/cir/transform/folding/rule.h
|
||||
codon/cir/transform/lowering/imperative.h
|
||||
codon/cir/transform/lowering/pipeline.h
|
||||
codon/cir/analyze/analysis.hpp
|
||||
codon/cir/analyze/dataflow/capture.hpp
|
||||
codon/cir/analyze/dataflow/cfg.hpp
|
||||
codon/cir/analyze/dataflow/dominator.hpp
|
||||
codon/cir/analyze/dataflow/reaching.hpp
|
||||
codon/cir/analyze/module/global_vars.hpp
|
||||
codon/cir/analyze/module/side_effect.hpp
|
||||
codon/cir/attribute.hpp
|
||||
codon/cir/base.hpp
|
||||
codon/cir/const.hpp
|
||||
codon/cir/dsl/codegen.hpp
|
||||
codon/cir/dsl/nodes.hpp
|
||||
codon/cir/flow.hpp
|
||||
codon/cir/func.hpp
|
||||
codon/cir/instr.hpp
|
||||
codon/cir/llvm/gpu.hpp
|
||||
codon/cir/llvm/llvisitor.hpp
|
||||
codon/cir/llvm/llvm.hpp
|
||||
codon/cir/llvm/optimize.hpp
|
||||
codon/cir/module.hpp
|
||||
codon/cir/pyextension.hpp
|
||||
codon/cir/cir.hpp
|
||||
codon/cir/transform/cleanup/canonical.hpp
|
||||
codon/cir/transform/cleanup/dead_code.hpp
|
||||
codon/cir/transform/cleanup/global_demote.hpp
|
||||
codon/cir/transform/cleanup/replacer.hpp
|
||||
codon/cir/transform/folding/const_fold.hpp
|
||||
codon/cir/transform/folding/const_prop.hpp
|
||||
codon/cir/transform/folding/folding.hpp
|
||||
codon/cir/transform/folding/rule.hpp
|
||||
codon/cir/transform/lowering/imperative.hpp
|
||||
codon/cir/transform/lowering/pipeline.hpp
|
||||
codon/cir/transform/manager.h
|
||||
codon/cir/transform/parallel/openmp.h
|
||||
codon/cir/transform/parallel/schedule.h
|
||||
codon/cir/transform/pass.h
|
||||
codon/cir/transform/pythonic/dict.h
|
||||
codon/cir/transform/pythonic/generator.h
|
||||
codon/cir/transform/pythonic/io.h
|
||||
codon/cir/transform/pythonic/list.h
|
||||
codon/cir/transform/pythonic/str.h
|
||||
codon/cir/transform/rewrite.h
|
||||
codon/cir/types/types.h
|
||||
codon/cir/util/cloning.h
|
||||
codon/cir/util/context.h
|
||||
codon/cir/util/format.h
|
||||
codon/cir/util/inlining.h
|
||||
codon/cir/util/irtools.h
|
||||
codon/cir/util/iterators.h
|
||||
codon/cir/util/matching.h
|
||||
codon/cir/util/operator.h
|
||||
codon/cir/util/outlining.h
|
||||
codon/cir/util/packs.h
|
||||
codon/cir/util/side_effect.h
|
||||
codon/cir/util/visitor.h
|
||||
codon/cir/value.h
|
||||
codon/cir/var.h
|
||||
codon/cir/transform/parallel/openmp.hpp
|
||||
codon/cir/transform/parallel/schedule.hpp
|
||||
codon/cir/transform/pass.hpp
|
||||
codon/cir/transform/pythonic/dict.hpp
|
||||
codon/cir/transform/pythonic/generator.hpp
|
||||
codon/cir/transform/pythonic/io.hpp
|
||||
codon/cir/transform/pythonic/list.hpp
|
||||
codon/cir/transform/pythonic/str.hpp
|
||||
codon/cir/transform/rewrite.hpp
|
||||
codon/cir/types/types.hpp
|
||||
codon/cir/util/cloning.hpp
|
||||
codon/cir/util/format.hpp
|
||||
codon/cir/util/inlining.hpp
|
||||
codon/cir/util/irtools.hpp
|
||||
codon/cir/util/iterators.hpp
|
||||
codon/cir/util/matching.hpp
|
||||
codon/cir/util/operator.hpp
|
||||
codon/cir/util/outlining.hpp
|
||||
codon/cir/util/packs.hpp
|
||||
codon/cir/util/side_effect.hpp
|
||||
codon/cir/util/visitor.hpp
|
||||
codon/cir/value.hpp
|
||||
codon/cir/var.hpp
|
||||
codon/util/common.hpp
|
||||
codon/compiler/jit_extern.h
|
||||
)
|
||||
|
|
|
@ -11,9 +11,9 @@
|
|||
#include <unordered_map>
|
||||
#include <vector>
|
||||
|
||||
#include "codon/compiler/compiler.h"
|
||||
#include "codon/compiler/compiler.hpp"
|
||||
#include "codon/compiler/error.hpp"
|
||||
#include "codon/compiler/jit.h"
|
||||
#include "codon/compiler/jit.hpp"
|
||||
#include "codon/parser/common.hpp"
|
||||
#include "codon/util/common.hpp"
|
||||
#include "codon/util/jupyter.h"
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "analysis.h"
|
||||
#include "analysis.hpp"
|
||||
|
||||
#include "codon/cir/transform/manager.h"
|
||||
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
#include <memory>
|
||||
|
||||
#include "codon/cir/module.h"
|
||||
#include "codon/cir/transform/pass.h"
|
||||
#include "codon/cir/module.hpp"
|
||||
#include "codon/cir/transform/pass.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,14 +1,14 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "capture.h"
|
||||
#include "capture.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
#include <iterator>
|
||||
#include <utility>
|
||||
|
||||
#include "codon/cir/analyze/dataflow/reaching.h"
|
||||
#include "codon/cir/util/irtools.h"
|
||||
#include "codon/cir/util/side_effect.h"
|
||||
#include "codon/cir/analyze/dataflow/reaching.hpp"
|
||||
#include "codon/cir/util/irtools.hpp"
|
||||
#include "codon/cir/util/side_effect.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
||||
|
|
|
@ -6,10 +6,10 @@
|
|||
#include <unordered_map>
|
||||
#include <vector>
|
||||
|
||||
#include "codon/cir/analyze/analysis.h"
|
||||
#include "codon/cir/analyze/dataflow/dominator.h"
|
||||
#include "codon/cir/analyze/dataflow/reaching.h"
|
||||
#include "codon/cir/cir.h"
|
||||
#include "codon/cir/analyze/analysis.hpp"
|
||||
#include "codon/cir/analyze/dataflow/dominator.hpp"
|
||||
#include "codon/cir/analyze/dataflow/reaching.hpp"
|
||||
#include "codon/cir/cir.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,11 +1,11 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "cfg.h"
|
||||
#include "cfg.hpp"
|
||||
|
||||
#include <vector>
|
||||
|
||||
#include "codon/cir/dsl/codegen.h"
|
||||
#include "codon/cir/dsl/nodes.h"
|
||||
#include "codon/cir/dsl/codegen.hpp"
|
||||
#include "codon/cir/dsl/nodes.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
#include <unordered_map>
|
||||
#include <unordered_set>
|
||||
|
||||
#include "codon/cir/analyze/analysis.h"
|
||||
#include "codon/cir/cir.h"
|
||||
#include "codon/cir/util/iterators.h"
|
||||
#include "codon/cir/analyze/analysis.hpp"
|
||||
#include "codon/cir/cir.hpp"
|
||||
#include "codon/cir/util/iterators.hpp"
|
||||
|
||||
#define DEFAULT_VISIT(x) \
|
||||
void visit(const x *v) override { defaultInsert(v); }
|
|
@ -1,6 +1,6 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "dominator.h"
|
||||
#include "dominator.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
||||
|
|
|
@ -6,8 +6,8 @@
|
|||
#include <unordered_map>
|
||||
#include <utility>
|
||||
|
||||
#include "codon/cir/analyze/analysis.h"
|
||||
#include "codon/cir/analyze/dataflow/cfg.h"
|
||||
#include "codon/cir/analyze/analysis.hpp"
|
||||
#include "codon/cir/analyze/dataflow/cfg.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,6 +1,6 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "reaching.h"
|
||||
#include "reaching.hpp"
|
||||
|
||||
#include <deque>
|
||||
#include <tuple>
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
#include <utility>
|
||||
|
||||
#include "codon/cir/analyze/analysis.h"
|
||||
#include "codon/cir/analyze/dataflow/cfg.h"
|
||||
#include "codon/cir/analyze/analysis.hpp"
|
||||
#include "codon/cir/analyze/dataflow/cfg.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,8 +1,8 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "global_vars.h"
|
||||
#include "global_vars.hpp"
|
||||
|
||||
#include "codon/cir/util/operator.h"
|
||||
#include "codon/cir/util/operator.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
#include <unordered_map>
|
||||
|
||||
#include "codon/cir/analyze/analysis.h"
|
||||
#include "codon/cir/analyze/analysis.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,13 +1,13 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "side_effect.h"
|
||||
#include "side_effect.hpp"
|
||||
|
||||
#include <type_traits>
|
||||
#include <utility>
|
||||
|
||||
#include "codon/cir/analyze/dataflow/capture.h"
|
||||
#include "codon/cir/util/irtools.h"
|
||||
#include "codon/cir/util/operator.h"
|
||||
#include "codon/cir/analyze/dataflow/capture.hpp"
|
||||
#include "codon/cir/util/irtools.hpp"
|
||||
#include "codon/cir/util/operator.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
#include <unordered_map>
|
||||
|
||||
#include "codon/cir/analyze/analysis.h"
|
||||
#include "codon/cir/util/side_effect.h"
|
||||
#include "codon/cir/analyze/analysis.hpp"
|
||||
#include "codon/cir/util/side_effect.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,10 +1,10 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "attribute.h"
|
||||
#include "attribute.hpp"
|
||||
|
||||
#include "codon/cir/func.h"
|
||||
#include "codon/cir/util/cloning.h"
|
||||
#include "codon/cir/value.h"
|
||||
#include "codon/cir/func.hpp"
|
||||
#include "codon/cir/util/cloning.hpp"
|
||||
#include "codon/cir/value.hpp"
|
||||
#include <fmt/ostream.h>
|
||||
|
||||
namespace codon {
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "base.h"
|
||||
#include "base.hpp"
|
||||
|
||||
#include "codon/cir/types/types.h"
|
||||
#include "codon/cir/util/format.h"
|
||||
#include "codon/cir/value.h"
|
||||
#include "codon/cir/var.h"
|
||||
#include "codon/cir/types/types.hpp"
|
||||
#include "codon/cir/util/format.hpp"
|
||||
#include "codon/cir/value.hpp"
|
||||
#include "codon/cir/var.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
#include <unordered_map>
|
||||
#include <utility>
|
||||
|
||||
#include "codon/cir/attribute.h"
|
||||
#include "codon/cir/util/iterators.h"
|
||||
#include "codon/cir/util/visitor.h"
|
||||
#include "codon/cir/attribute.hpp"
|
||||
#include "codon/cir/util/iterators.hpp"
|
||||
#include "codon/cir/util/visitor.hpp"
|
||||
#include "codon/util/common.hpp"
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/ostream.h>
|
|
@ -1,13 +0,0 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "codon/cir/const.h"
|
||||
#include "codon/cir/dsl/nodes.h"
|
||||
#include "codon/cir/flow.h"
|
||||
#include "codon/cir/func.h"
|
||||
#include "codon/cir/instr.h"
|
||||
#include "codon/cir/module.h"
|
||||
#include "codon/cir/types/types.h"
|
||||
#include "codon/cir/value.h"
|
||||
#include "codon/cir/var.h"
|
|
@ -0,0 +1,13 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "codon/cir/const.hpp"
|
||||
#include "codon/cir/dsl/nodes.hpp"
|
||||
#include "codon/cir/flow.hpp"
|
||||
#include "codon/cir/func.hpp"
|
||||
#include "codon/cir/instr.hpp"
|
||||
#include "codon/cir/module.hpp"
|
||||
#include "codon/cir/types/types.hpp"
|
||||
#include "codon/cir/value.hpp"
|
||||
#include "codon/cir/var.hpp"
|
|
@ -1,6 +1,6 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "const.h"
|
||||
#include "const.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "codon/cir/module.h"
|
||||
#include "codon/cir/value.h"
|
||||
#include "codon/cir/module.hpp"
|
||||
#include "codon/cir/value.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
#include <unordered_map>
|
||||
|
||||
#include "codon/cir/llvm/llvm.h"
|
||||
#include "codon/cir/types/types.h"
|
||||
#include "codon/cir/llvm/llvm.hpp"
|
||||
#include "codon/cir/types/types.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,6 +1,6 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "nodes.h"
|
||||
#include "nodes.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
|
||||
#include <memory>
|
||||
|
||||
#include "codon/cir/base.h"
|
||||
#include "codon/cir/const.h"
|
||||
#include "codon/cir/instr.h"
|
||||
#include "codon/cir/util/side_effect.h"
|
||||
#include "codon/cir/base.hpp"
|
||||
#include "codon/cir/const.hpp"
|
||||
#include "codon/cir/instr.hpp"
|
||||
#include "codon/cir/util/side_effect.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,9 +1,9 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "flow.h"
|
||||
#include "flow.hpp"
|
||||
|
||||
#include "codon/cir/module.h"
|
||||
#include "codon/cir/util/iterators.h"
|
||||
#include "codon/cir/module.hpp"
|
||||
#include "codon/cir/util/iterators.hpp"
|
||||
#include <fmt/ostream.h>
|
||||
|
||||
namespace codon {
|
||||
|
|
|
@ -5,10 +5,10 @@
|
|||
#include <list>
|
||||
#include <vector>
|
||||
|
||||
#include "codon/cir/base.h"
|
||||
#include "codon/cir/transform/parallel/schedule.h"
|
||||
#include "codon/cir/value.h"
|
||||
#include "codon/cir/var.h"
|
||||
#include "codon/cir/base.hpp"
|
||||
#include "codon/cir/transform/parallel/schedule.hpp"
|
||||
#include "codon/cir/value.hpp"
|
||||
#include "codon/cir/var.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,14 +1,14 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "func.h"
|
||||
#include "func.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "codon/cir/module.h"
|
||||
#include "codon/cir/util/iterators.h"
|
||||
#include "codon/cir/util/operator.h"
|
||||
#include "codon/cir/util/visitor.h"
|
||||
#include "codon/cir/var.h"
|
||||
#include "codon/cir/module.hpp"
|
||||
#include "codon/cir/util/iterators.hpp"
|
||||
#include "codon/cir/util/operator.hpp"
|
||||
#include "codon/cir/util/visitor.hpp"
|
||||
#include "codon/cir/var.hpp"
|
||||
#include "codon/parser/common.hpp"
|
||||
|
||||
namespace codon {
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "codon/cir/flow.h"
|
||||
#include "codon/cir/util/iterators.h"
|
||||
#include "codon/cir/var.h"
|
||||
#include "codon/cir/flow.hpp"
|
||||
#include "codon/cir/util/iterators.hpp"
|
||||
#include "codon/cir/var.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,9 +1,9 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "instr.h"
|
||||
#include "instr.hpp"
|
||||
|
||||
#include "codon/cir/module.h"
|
||||
#include "codon/cir/util/iterators.h"
|
||||
#include "codon/cir/module.hpp"
|
||||
#include "codon/cir/util/iterators.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
||||
|
|
|
@ -5,11 +5,11 @@
|
|||
#include <memory>
|
||||
#include <string>
|
||||
|
||||
#include "codon/cir/flow.h"
|
||||
#include "codon/cir/types/types.h"
|
||||
#include "codon/cir/util/iterators.h"
|
||||
#include "codon/cir/value.h"
|
||||
#include "codon/cir/var.h"
|
||||
#include "codon/cir/flow.hpp"
|
||||
#include "codon/cir/types/types.hpp"
|
||||
#include "codon/cir/util/iterators.hpp"
|
||||
#include "codon/cir/value.hpp"
|
||||
#include "codon/cir/var.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,6 +1,6 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "gpu.h"
|
||||
#include "gpu.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
#include <memory>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
#include <string>
|
||||
|
||||
#include "codon/cir/llvm/llvm.h"
|
||||
#include "codon/cir/llvm/llvm.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,6 +1,6 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "llvisitor.h"
|
||||
#include "llvisitor.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
#include <cctype>
|
||||
|
@ -10,11 +10,11 @@
|
|||
#include <unistd.h>
|
||||
#include <utility>
|
||||
|
||||
#include "codon/cir/dsl/codegen.h"
|
||||
#include "codon/cir/llvm/optimize.h"
|
||||
#include "codon/cir/util/irtools.h"
|
||||
#include "codon/compiler/debug_listener.h"
|
||||
#include "codon/compiler/memory_manager.h"
|
||||
#include "codon/cir/dsl/codegen.hpp"
|
||||
#include "codon/cir/llvm/optimize.hpp"
|
||||
#include "codon/cir/util/irtools.hpp"
|
||||
#include "codon/compiler/debug_listener.hpp"
|
||||
#include "codon/compiler/memory_manager.hpp"
|
||||
#include "codon/parser/common.hpp"
|
||||
#include "codon/runtime/lib.hpp"
|
||||
#include "codon/util/common.hpp"
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "codon/cir/cir.h"
|
||||
#include "codon/cir/llvm/llvm.h"
|
||||
#include "codon/cir/pyextension.h"
|
||||
#include "codon/dsl/plugins.h"
|
||||
#include "codon/cir/cir.hpp"
|
||||
#include "codon/cir/llvm/llvm.hpp"
|
||||
#include "codon/cir/pyextension.hpp"
|
||||
#include "codon/dsl/plugins.hpp"
|
||||
#include "codon/util/common.hpp"
|
||||
|
||||
#include <string>
|
|
@ -1,11 +1,11 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "optimize.h"
|
||||
#include "optimize.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
#include <deque>
|
||||
|
||||
#include "codon/cir/llvm/gpu.h"
|
||||
#include "codon/cir/llvm/gpu.hpp"
|
||||
#include "codon/util/common.hpp"
|
||||
|
||||
static llvm::codegen::RegisterCodeGenFlags CFG;
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
#include <memory>
|
||||
|
||||
#include "codon/cir/llvm/llvm.h"
|
||||
#include "codon/dsl/plugins.h"
|
||||
#include "codon/cir/llvm/llvm.hpp"
|
||||
#include "codon/dsl/plugins.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,11 +1,11 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "module.h"
|
||||
#include "module.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
#include <memory>
|
||||
|
||||
#include "codon/cir/func.h"
|
||||
#include "codon/cir/func.hpp"
|
||||
#include "codon/parser/cache.hpp"
|
||||
|
||||
namespace codon {
|
||||
|
|
|
@ -7,10 +7,10 @@
|
|||
#include <string>
|
||||
#include <unordered_map>
|
||||
|
||||
#include "codon/cir/func.h"
|
||||
#include "codon/cir/util/iterators.h"
|
||||
#include "codon/cir/value.h"
|
||||
#include "codon/cir/var.h"
|
||||
#include "codon/cir/func.hpp"
|
||||
#include "codon/cir/util/iterators.hpp"
|
||||
#include "codon/cir/value.hpp"
|
||||
#include "codon/cir/var.hpp"
|
||||
#include "codon/util/common.hpp"
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/ostream.h>
|
|
@ -5,8 +5,8 @@
|
|||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "codon/cir/func.h"
|
||||
#include "codon/cir/types/types.h"
|
||||
#include "codon/cir/func.hpp"
|
||||
#include "codon/cir/types/types.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,6 +1,6 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "canonical.h"
|
||||
#include "canonical.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
#include <functional>
|
||||
|
@ -8,10 +8,10 @@
|
|||
#include <unordered_set>
|
||||
#include <utility>
|
||||
|
||||
#include "codon/cir/analyze/module/side_effect.h"
|
||||
#include "codon/cir/transform/rewrite.h"
|
||||
#include "codon/cir/util/irtools.h"
|
||||
#include "codon/cir/util/matching.h"
|
||||
#include "codon/cir/analyze/module/side_effect.hpp"
|
||||
#include "codon/cir/transform/rewrite.hpp"
|
||||
#include "codon/cir/util/irtools.hpp"
|
||||
#include "codon/cir/util/matching.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "codon/cir/transform/pass.h"
|
||||
#include "codon/cir/transform/rewrite.h"
|
||||
#include "codon/cir/transform/pass.hpp"
|
||||
#include "codon/cir/transform/rewrite.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,9 +1,9 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "dead_code.h"
|
||||
#include "dead_code.hpp"
|
||||
|
||||
#include "codon/cir/analyze/module/side_effect.h"
|
||||
#include "codon/cir/util/cloning.h"
|
||||
#include "codon/cir/analyze/module/side_effect.hpp"
|
||||
#include "codon/cir/util/cloning.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "codon/cir/transform/pass.h"
|
||||
#include "codon/cir/transform/pass.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,6 +1,6 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "global_demote.h"
|
||||
#include "global_demote.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "codon/cir/transform/pass.h"
|
||||
#include "codon/cir/transform/pass.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,12 +1,12 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "replacer.h"
|
||||
#include "replacer.hpp"
|
||||
|
||||
#include <unordered_set>
|
||||
|
||||
#include "codon/cir/types/types.h"
|
||||
#include "codon/cir/value.h"
|
||||
#include "codon/cir/var.h"
|
||||
#include "codon/cir/types/types.hpp"
|
||||
#include "codon/cir/value.hpp"
|
||||
#include "codon/cir/var.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "codon/cir/transform/pass.h"
|
||||
#include "codon/cir/transform/pass.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,12 +1,12 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "const_fold.h"
|
||||
#include "const_fold.hpp"
|
||||
|
||||
#include <cmath>
|
||||
#include <utility>
|
||||
|
||||
#include "codon/cir/util/cloning.h"
|
||||
#include "codon/cir/util/irtools.h"
|
||||
#include "codon/cir/util/cloning.hpp"
|
||||
#include "codon/cir/util/irtools.hpp"
|
||||
|
||||
#define BINOP(o) [](auto x, auto y) -> auto { return x o y; }
|
||||
#define UNOP(o) [](auto x) -> auto { return o x; }
|
||||
|
|
|
@ -5,8 +5,8 @@
|
|||
#include <memory>
|
||||
#include <unordered_map>
|
||||
|
||||
#include "codon/cir/transform/folding/rule.h"
|
||||
#include "codon/cir/transform/pass.h"
|
||||
#include "codon/cir/transform/folding/rule.hpp"
|
||||
#include "codon/cir/transform/pass.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,10 +1,10 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "const_prop.h"
|
||||
#include "const_prop.hpp"
|
||||
|
||||
#include "codon/cir/analyze/dataflow/reaching.h"
|
||||
#include "codon/cir/analyze/module/global_vars.h"
|
||||
#include "codon/cir/util/cloning.h"
|
||||
#include "codon/cir/analyze/dataflow/reaching.hpp"
|
||||
#include "codon/cir/analyze/module/global_vars.hpp"
|
||||
#include "codon/cir/util/cloning.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "codon/cir/transform/pass.h"
|
||||
#include "codon/cir/transform/pass.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,9 +1,9 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "folding.h"
|
||||
#include "folding.hpp"
|
||||
|
||||
#include "codon/cir/transform/folding/const_fold.h"
|
||||
#include "codon/cir/transform/folding/const_prop.h"
|
||||
#include "codon/cir/transform/folding/const_fold.hpp"
|
||||
#include "codon/cir/transform/folding/const_prop.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "codon/cir/transform/cleanup/canonical.h"
|
||||
#include "codon/cir/transform/cleanup/dead_code.h"
|
||||
#include "codon/cir/transform/cleanup/global_demote.h"
|
||||
#include "codon/cir/transform/pass.h"
|
||||
#include "codon/cir/transform/cleanup/canonical.hpp"
|
||||
#include "codon/cir/transform/cleanup/dead_code.hpp"
|
||||
#include "codon/cir/transform/cleanup/global_demote.hpp"
|
||||
#include "codon/cir/transform/pass.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -5,9 +5,9 @@
|
|||
#include <algorithm>
|
||||
#include <utility>
|
||||
|
||||
#include "codon/cir/transform/pass.h"
|
||||
#include "codon/cir/transform/rewrite.h"
|
||||
#include "codon/cir/util/irtools.h"
|
||||
#include "codon/cir/transform/pass.hpp"
|
||||
#include "codon/cir/transform/rewrite.hpp"
|
||||
#include "codon/cir/util/irtools.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,12 +1,12 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "imperative.h"
|
||||
#include "imperative.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "codon/cir/util/cloning.h"
|
||||
#include "codon/cir/util/irtools.h"
|
||||
#include "codon/cir/util/matching.h"
|
||||
#include "codon/cir/util/cloning.hpp"
|
||||
#include "codon/cir/util/irtools.hpp"
|
||||
#include "codon/cir/util/matching.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "codon/cir/transform/pass.h"
|
||||
#include "codon/cir/transform/pass.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,12 +1,12 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "pipeline.h"
|
||||
#include "pipeline.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "codon/cir/util/cloning.h"
|
||||
#include "codon/cir/util/irtools.h"
|
||||
#include "codon/cir/util/matching.h"
|
||||
#include "codon/cir/util/cloning.hpp"
|
||||
#include "codon/cir/util/irtools.hpp"
|
||||
#include "codon/cir/util/matching.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "codon/cir/transform/pass.h"
|
||||
#include "codon/cir/transform/pass.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -4,24 +4,24 @@
|
|||
|
||||
#include <unordered_set>
|
||||
|
||||
#include "codon/cir/analyze/analysis.h"
|
||||
#include "codon/cir/analyze/dataflow/capture.h"
|
||||
#include "codon/cir/analyze/dataflow/cfg.h"
|
||||
#include "codon/cir/analyze/dataflow/dominator.h"
|
||||
#include "codon/cir/analyze/dataflow/reaching.h"
|
||||
#include "codon/cir/analyze/module/global_vars.h"
|
||||
#include "codon/cir/analyze/module/side_effect.h"
|
||||
#include "codon/cir/transform/folding/folding.h"
|
||||
#include "codon/cir/transform/lowering/imperative.h"
|
||||
#include "codon/cir/transform/lowering/pipeline.h"
|
||||
#include "codon/cir/analyze/analysis.hpp"
|
||||
#include "codon/cir/analyze/dataflow/capture.hpp"
|
||||
#include "codon/cir/analyze/dataflow/cfg.hpp"
|
||||
#include "codon/cir/analyze/dataflow/dominator.hpp"
|
||||
#include "codon/cir/analyze/dataflow/reaching.hpp"
|
||||
#include "codon/cir/analyze/module/global_vars.hpp"
|
||||
#include "codon/cir/analyze/module/side_effect.hpp"
|
||||
#include "codon/cir/transform/folding/folding.hpp"
|
||||
#include "codon/cir/transform/lowering/imperative.hpp"
|
||||
#include "codon/cir/transform/lowering/pipeline.hpp"
|
||||
#include "codon/cir/transform/manager.h"
|
||||
#include "codon/cir/transform/parallel/openmp.h"
|
||||
#include "codon/cir/transform/pass.h"
|
||||
#include "codon/cir/transform/pythonic/dict.h"
|
||||
#include "codon/cir/transform/pythonic/generator.h"
|
||||
#include "codon/cir/transform/pythonic/io.h"
|
||||
#include "codon/cir/transform/pythonic/list.h"
|
||||
#include "codon/cir/transform/pythonic/str.h"
|
||||
#include "codon/cir/transform/parallel/openmp.hpp"
|
||||
#include "codon/cir/transform/pass.hpp"
|
||||
#include "codon/cir/transform/pythonic/dict.hpp"
|
||||
#include "codon/cir/transform/pythonic/generator.hpp"
|
||||
#include "codon/cir/transform/pythonic/io.hpp"
|
||||
#include "codon/cir/transform/pythonic/list.hpp"
|
||||
#include "codon/cir/transform/pythonic/str.hpp"
|
||||
#include "codon/util/common.hpp"
|
||||
|
||||
namespace codon {
|
||||
|
|
|
@ -9,9 +9,9 @@
|
|||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "codon/cir/analyze/analysis.h"
|
||||
#include "codon/cir/module.h"
|
||||
#include "codon/cir/transform/pass.h"
|
||||
#include "codon/cir/analyze/analysis.hpp"
|
||||
#include "codon/cir/module.hpp"
|
||||
#include "codon/cir/transform/pass.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
||||
|
|
|
@ -1,16 +1,16 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "openmp.h"
|
||||
#include "openmp.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
#include <iterator>
|
||||
#include <limits>
|
||||
#include <unordered_set>
|
||||
|
||||
#include "codon/cir/transform/parallel/schedule.h"
|
||||
#include "codon/cir/util/cloning.h"
|
||||
#include "codon/cir/util/irtools.h"
|
||||
#include "codon/cir/util/outlining.h"
|
||||
#include "codon/cir/transform/parallel/schedule.hpp"
|
||||
#include "codon/cir/util/cloning.hpp"
|
||||
#include "codon/cir/util/irtools.hpp"
|
||||
#include "codon/cir/util/outlining.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "codon/cir/transform/pass.h"
|
||||
#include "codon/cir/transform/pass.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,9 +1,9 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "schedule.h"
|
||||
#include "schedule.hpp"
|
||||
|
||||
#include "codon/cir/cir.h"
|
||||
#include "codon/cir/util/irtools.h"
|
||||
#include "codon/cir/cir.hpp"
|
||||
#include "codon/cir/util/irtools.hpp"
|
||||
|
||||
#include <cctype>
|
||||
#include <sstream>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "codon/cir/value.h"
|
||||
#include "codon/cir/value.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,6 +1,6 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "pass.h"
|
||||
#include "pass.hpp"
|
||||
|
||||
#include "codon/cir/transform/manager.h"
|
||||
|
||||
|
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "codon/cir/module.h"
|
||||
#include "codon/cir/util/operator.h"
|
||||
#include "codon/cir/module.hpp"
|
||||
#include "codon/cir/util/operator.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,12 +1,12 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "dict.h"
|
||||
#include "dict.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "codon/cir/util/cloning.h"
|
||||
#include "codon/cir/util/irtools.h"
|
||||
#include "codon/cir/util/matching.h"
|
||||
#include "codon/cir/util/cloning.hpp"
|
||||
#include "codon/cir/util/irtools.hpp"
|
||||
#include "codon/cir/util/matching.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "codon/cir/transform/pass.h"
|
||||
#include "codon/cir/transform/pass.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,12 +1,12 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "generator.h"
|
||||
#include "generator.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "codon/cir/util/cloning.h"
|
||||
#include "codon/cir/util/irtools.h"
|
||||
#include "codon/cir/util/matching.h"
|
||||
#include "codon/cir/util/cloning.hpp"
|
||||
#include "codon/cir/util/irtools.hpp"
|
||||
#include "codon/cir/util/matching.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "codon/cir/transform/pass.h"
|
||||
#include "codon/cir/transform/pass.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,11 +1,11 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "io.h"
|
||||
#include "io.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "codon/cir/util/cloning.h"
|
||||
#include "codon/cir/util/irtools.h"
|
||||
#include "codon/cir/util/cloning.hpp"
|
||||
#include "codon/cir/util/irtools.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "codon/cir/transform/pass.h"
|
||||
#include "codon/cir/transform/pass.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,11 +1,11 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "list.h"
|
||||
#include "list.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "codon/cir/util/cloning.h"
|
||||
#include "codon/cir/util/irtools.h"
|
||||
#include "codon/cir/util/cloning.hpp"
|
||||
#include "codon/cir/util/irtools.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "codon/cir/transform/pass.h"
|
||||
#include "codon/cir/transform/pass.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,11 +1,11 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "str.h"
|
||||
#include "str.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "codon/cir/util/cloning.h"
|
||||
#include "codon/cir/util/irtools.h"
|
||||
#include "codon/cir/util/cloning.hpp"
|
||||
#include "codon/cir/util/irtools.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "codon/cir/transform/pass.h"
|
||||
#include "codon/cir/transform/pass.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -2,8 +2,8 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "codon/cir/transform/pass.h"
|
||||
#include "codon/cir/util/visitor.h"
|
||||
#include "codon/cir/transform/pass.hpp"
|
||||
#include "codon/cir/util/visitor.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,16 +1,16 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "types.h"
|
||||
#include "types.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
#include <memory>
|
||||
#include <utility>
|
||||
|
||||
#include "codon/cir/module.h"
|
||||
#include "codon/cir/util/irtools.h"
|
||||
#include "codon/cir/util/iterators.h"
|
||||
#include "codon/cir/util/visitor.h"
|
||||
#include "codon/cir/value.h"
|
||||
#include "codon/cir/module.hpp"
|
||||
#include "codon/cir/util/irtools.hpp"
|
||||
#include "codon/cir/util/iterators.hpp"
|
||||
#include "codon/cir/util/visitor.hpp"
|
||||
#include "codon/cir/value.hpp"
|
||||
#include "codon/parser/cache.hpp"
|
||||
#include <fmt/format.h>
|
||||
|
||||
|
|
|
@ -8,9 +8,9 @@
|
|||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
#include "codon/cir/base.h"
|
||||
#include "codon/cir/util/packs.h"
|
||||
#include "codon/cir/util/visitor.h"
|
||||
#include "codon/cir/base.hpp"
|
||||
#include "codon/cir/util/packs.hpp"
|
||||
#include "codon/cir/util/visitor.hpp"
|
||||
#include "codon/parser/ast.hpp"
|
||||
#include <fmt/format.h>
|
||||
#include <fmt/ostream.h>
|
|
@ -1,8 +1,8 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "cloning.h"
|
||||
#include "cloning.hpp"
|
||||
|
||||
#include "codon/cir/util/operator.h"
|
||||
#include "codon/cir/util/operator.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
||||
|
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
#include <unordered_map>
|
||||
|
||||
#include "codon/cir/cir.h"
|
||||
#include "codon/cir/util/visitor.h"
|
||||
#include "codon/cir/cir.hpp"
|
||||
#include "codon/cir/util/visitor.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,38 +0,0 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <vector>
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
||||
namespace util {
|
||||
|
||||
/// Base for CIR visitor contexts.
|
||||
template <typename Frame> class CIRContext {
|
||||
private:
|
||||
std::vector<Frame> frames;
|
||||
|
||||
public:
|
||||
/// Emplaces a frame onto the stack.
|
||||
/// @param args a parameter pack of the arguments
|
||||
template <typename... Args> void emplaceFrame(Args... args) {
|
||||
frames.emplace_back(args...);
|
||||
}
|
||||
/// Replaces a frame.
|
||||
/// @param newFrame the new frame
|
||||
void replaceFrame(Frame newFrame) {
|
||||
frames.pop_back();
|
||||
frames.push_back(newFrame);
|
||||
}
|
||||
/// @return all frames
|
||||
std::vector<Frame> &getFrames() { return frames; }
|
||||
/// @return the current frame
|
||||
Frame &getFrame() { return frames.back(); }
|
||||
/// Pops a frame.
|
||||
void popFrame() { return frames.pop_back(); }
|
||||
};
|
||||
|
||||
} // namespace util
|
||||
} // namespace ir
|
||||
} // namespace codon
|
|
@ -6,8 +6,8 @@
|
|||
#include <sstream>
|
||||
#include <unordered_set>
|
||||
|
||||
#include "codon/cir/util/format.h"
|
||||
#include "codon/cir/util/visitor.h"
|
||||
#include "codon/cir/util/format.hpp"
|
||||
#include "codon/cir/util/visitor.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
#include <iostream>
|
||||
|
||||
#include "codon/cir/cir.h"
|
||||
#include "codon/cir/cir.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,12 +1,12 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "inlining.h"
|
||||
#include "inlining.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "codon/cir/util/cloning.h"
|
||||
#include "codon/cir/util/irtools.h"
|
||||
#include "codon/cir/util/operator.h"
|
||||
#include "codon/cir/util/cloning.hpp"
|
||||
#include "codon/cir/util/irtools.hpp"
|
||||
#include "codon/cir/util/operator.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "codon/cir/cir.h"
|
||||
#include "codon/cir/cir.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,6 +1,6 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "irtools.h"
|
||||
#include "irtools.hpp"
|
||||
|
||||
#include <iterator>
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "codon/cir/cir.h"
|
||||
#include "codon/cir/cir.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,11 +1,11 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "matching.h"
|
||||
#include "matching.hpp"
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
#include "codon/cir/cir.h"
|
||||
#include "codon/cir/util/visitor.h"
|
||||
#include "codon/cir/cir.hpp"
|
||||
#include "codon/cir/util/visitor.hpp"
|
||||
|
||||
#define VISIT(x) \
|
||||
void visit(const x *v) override { \
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "codon/cir/cir.h"
|
||||
#include "codon/cir/cir.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -4,8 +4,8 @@
|
|||
|
||||
#include <unordered_set>
|
||||
|
||||
#include "codon/cir/cir.h"
|
||||
#include "codon/cir/util/visitor.h"
|
||||
#include "codon/cir/cir.hpp"
|
||||
#include "codon/cir/util/visitor.hpp"
|
||||
|
||||
#define LAMBDA_VISIT(x) \
|
||||
virtual void handle(codon::ir::x *v) {} \
|
|
@ -1,14 +1,14 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "outlining.h"
|
||||
#include "outlining.hpp"
|
||||
|
||||
#include <iterator>
|
||||
#include <unordered_set>
|
||||
#include <utility>
|
||||
|
||||
#include "codon/cir/util/cloning.h"
|
||||
#include "codon/cir/util/irtools.h"
|
||||
#include "codon/cir/util/operator.h"
|
||||
#include "codon/cir/util/cloning.hpp"
|
||||
#include "codon/cir/util/irtools.hpp"
|
||||
#include "codon/cir/util/operator.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include "codon/cir/cir.h"
|
||||
#include "codon/cir/cir.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
|
@ -1,6 +1,6 @@
|
|||
// Copyright (C) 2022-2024 Exaloop Inc. <https://exaloop.io>
|
||||
|
||||
#include "side_effect.h"
|
||||
#include "side_effect.hpp"
|
||||
|
||||
namespace codon {
|
||||
namespace ir {
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue