Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add initial version of evaluator #1158

Merged
merged 1 commit into from
Mar 25, 2024
Merged

Conversation

Peefy
Copy link
Contributor

@Peefy Peefy commented Mar 25, 2024

1. Does this PR affect any open issues?(Y/N) and add issue references (e.g. "fix #123", "re #123".):

  • N
  • Y

re #291

  • feat: add initial version of evaluator

2. What is the scope of this PR (e.g. component or file name):

  • kclvm/compiler/src/codegen/llvm/context.rs
  • kclvm/compiler/src/codegen/llvm/node.rs
  • kclvm/evaluator/Cargo.toml
  • kclvm/evaluator/src/error.rs
  • kclvm/evaluator/src/node.rs

3. Provide a description of the PR(e.g. more details, effects, motivations or doc link):

  • Affects user behaviors
  • Contains syntax changes
  • Contains variable changes
  • Contains experimental features
  • Performance regression: Consumes more CPU
  • Performance regression: Consumes more Memory
  • Other

4. Are there any breaking changes?(Y/N) and describe the breaking changes(e.g. more details, motivations or doc link):

  • N
  • Y

5. Are there test cases for these changes?(Y/N) select and add more details, references or doc links:

  • Unit test
  • Integration test
  • Benchmark (add benchmark stats below)
  • Manual test (add detailed scripts or steps below)
  • Other
  • kclvm/evaluator/src/tests.rs

Signed-off-by: peefy <xpf6677@163.com>
@coveralls
Copy link
Collaborator

Pull Request Test Coverage Report for Build 8417973412

Details

  • 367 of 1545 (23.75%) changed or added relevant lines in 7 files are covered.
  • 39 unchanged lines in 2 files lost coverage.
  • Overall coverage decreased (-1.0%) to 71.243%

Changes Missing Coverage Covered Lines Changed/Added Lines %
kclvm/runtime/src/value/api.rs 0 2 0.0%
kclvm/runtime/src/value/val_dict.rs 0 20 0.0%
kclvm/runtime/src/value/val_attr.rs 0 58 0.0%
kclvm/evaluator/src/lib.rs 248 740 33.51%
kclvm/evaluator/src/node.rs 98 704 13.92%
Files with Coverage Reduction New Missed Lines %
kclvm/runtime/src/value/api.rs 1 0.0%
kclvm/runtime/src/manifests/mod.rs 38 2.56%
Totals Coverage Status
Change from base Build 8414900581: -1.0%
Covered Lines: 45527
Relevant Lines: 63904

💛 - Coveralls

@Peefy Peefy merged commit 2d55f46 into kcl-lang:main Mar 25, 2024
7 of 8 checks passed
@Peefy Peefy deleted the feat-evaluator branch March 25, 2024 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants