| Files | Last commit | Last update |
|---|---|---|
feat(IR): Add core infrastructure and IRNode base class for new IR Co-authored-by: guhuangxing<guhuangxing@hisilicon.com> # message auto-generated for no-merge-commit merge: !1538 merge new-pr1 into master feat(IR): Add core infrastructure and IRNode base class for new IR Created-by: guhuangxing Commit-by: guhuangxing Merged-by: cann-robot Description: Add the foundational core library and IRNode base class as the first step of the new IR system. This PR provides error handling, logging, data types, and the core IRNode hierarchy that all subsequent IR PRs depend on. Changes: - Add core utility headers: common.h (macros), dtype.h (data types), logging.h (logging system), any_cast.h (type-safe any cast) - Add error handling framework: error.h/error.cpp with InternalError, TypeError, and diagnostic infrastructure - Add stack trace support: backtrace.cpp via execinfo + addr2line - Add IR base types: span.h (source location), core.h (IRNode base class, ObjectKind enum), reflection/field_traits.h (field reflection traits) - Add ir/core.cpp with Span method implementations (ToString, IsValid, Unknown) - Add unit tests for all new components (5 test files) - Update CMakeLists.txt to include core/*.cpp and ir/*.cpp in build This is PR 1 of 6 in the new IR series. No external dependencies. Commits: - feat(ir): Add core infrastructure headers and implementations (16 files) - build(ir): Add core and ir source directories to tile_fwk_interface See merge request: cann/pypto!1538 | 8 months ago | |
feat(IR): Add IR core type system - type/expr/stmt/function/program Co-authored-by: guhuangxing<guhuangxing@hisilicon.com> # message auto-generated for no-merge-commit merge: !1553 merge new-pr2 into master feat(IR): Add IR core type system - type/expr/stmt/function/program Created-by: guhuangxing Commit-by: guhuangxing Merged-by: cann-robot Description: Add the complete IR type hierarchy, expression/statement nodes, function and program containers, and kind_traits for type dispatch. Headers (10): - ir/type.h: type system (ScalarType, TensorType, ShapedType, TupleType) - ir/expr.h: expression nodes (Var, Op, Call, MakeTuple, GlobalVar, etc.) - ir/scalar_expr.h: scalar expression node definitions (ConstInt, ConstFloat, BinaryExpr, UnaryExpr) - ir/scalar_expr_ops.h: higher-level scalar expression construction functions (Make*, type promotion helpers) - ir/stmt.h: statement nodes (AssignStmt, EvalStmt, ForStmt, IfStmt, SeqStmt, OpStmts) - ir/function.h: function definition container - ir/program.h: program container with GlobalVar-Function mapping - ir/memref.h: memory reference type with MemorySpace enum - ir/pipe.h: Pipe enum definition - ir/kind_traits.h: IRNode kind traits for type dispatch (moved from PR3) - ir/reflection/field_visitor.h: field accessor for IR node reflection Source files (5): - ir/expr.cpp: MakeTuple and TupleGetItemExpr constructors - ir/type.cpp: ShapedType convenience constructor (int64_t shape) - ir/stmt.cpp: OpStmts constructor with statement validation - ir/memref.cpp: MemRef constructor and MemorySpaceToString - ir/program.cpp: Program constructor, GetFunction, GetGlobalVar Unit tests (10): - test_common, test_span_irnode, test_memref, test_expr, test_expr_basic - test_scalar_expr_basic, test_stmt, test_type, test_program - test_program_stmt_error Depends-on: PR1 (core infrastructure + IRNode base class) See merge request: cann/pypto!1553 | 8 months ago | |
feat(frontend): Pypto frontend support parallel loop Co-authored-by: HuangYuqian<huangyuqian2@huawei.com> # message auto-generated for no-merge-commit merge: !1765 merge parallel_loop_new into master feat(frontend): Pypto frontend support parallel loop Created-by: huangyuqian Commit-by: HuangYuqian Merged-by: cann-robot Description: Related Issue: https://gitcode.com/cann/pypto/issues/486 See merge request: cann/pypto!1765 | 8 months ago |