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

[Type] [refactor] Remove LegacyVectorType #1967

Merged
merged 4 commits into from
Oct 17, 2020

Conversation

Hanke98
Copy link
Contributor

@Hanke98 Hanke98 commented Oct 17, 2020

Related issue = #1905

In this pr, we remove the class LegacyVectorType and use a static function TypeFactory::create_vector_or_scalar_type instead.

[Click here for the format server]


@@ -36,4 +36,16 @@ Type *TypeFactory::get_pointer_type(Type *element) {
TypeFactory::TypeFactory() {
}

DataType TypeFactory::create_vector_or_scalar_type(int width,
DataType element,
bool element_is_pointer) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the core change, we use this function to replace the LegacyVectorType

@Hanke98 Hanke98 requested review from taichi-gardener and yuanming-hu and removed request for taichi-gardener October 17, 2020 02:38
@codecov
Copy link

codecov bot commented Oct 17, 2020

Codecov Report

Merging #1967 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1967   +/-   ##
=======================================
  Coverage   43.64%   43.64%           
=======================================
  Files          45       45           
  Lines        6225     6225           
  Branches     1106     1106           
=======================================
  Hits         2717     2717           
  Misses       3334     3334           
  Partials      174      174           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ceea597...6e25a4b. Read the comment docs.

Copy link
Member

@yuanming-hu yuanming-hu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM.

@yuanming-hu yuanming-hu merged commit f648538 into taichi-dev:master Oct 17, 2020
@yuanming-hu yuanming-hu mentioned this pull request Oct 17, 2020
@Hanke98 Hanke98 deleted the remove-LegacyVectorType branch November 27, 2020 06:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants