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

Replace DataType with const Type* throughout the codebase #7850

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Ris-Bali
Copy link

@Ris-Bali Ris-Bali commented Apr 19, 2023

Issue: #5167

Brief Summary

This PR aims to replace Type with const* type as types are not modified after creation.

🤖 Generated by Copilot at f905901

This pull request refactors the Type system in the taichi/ir module to improve const correctness and avoid unnecessary copies. It changes the TypeFactory class and its methods to use const Type * pointers, and adds const qualifiers to various members and parameters of the Type class and its subclasses. It also updates some files in taichi/ir to match the new type system.

Walkthrough

🤖 Generated by Copilot at f905901

@netlify
Copy link

netlify bot commented Apr 19, 2023

Deploy Preview for docsite-preview canceled.

Name Link
🔨 Latest commit 0865910
🔍 Latest deploy log https://app.netlify.com/sites/docsite-preview/deploys/643fd69dfb4f9c00077e13d3

@Ris-Bali Ris-Bali changed the title Replace Type* with const Type* throughout the codebase Replace DataType with const Type* throughout the codebase Apr 19, 2023
@CLAassistant
Copy link

CLAassistant commented Apr 19, 2023

CLA assistant check
All committers have signed the CLA.

@ailzhang
Copy link
Contributor

Hey @Ris-Bali, are you still working on this PR?

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.

None yet

3 participants