Skip to content

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.

3 participants