Chore Type
Code Refactoring / Cleanup
Task Description
CastExpr-tpl.cpp defines its own set of types in a enum called PrimitiveKind which is already covered by Type.h there is a lot of duplicated code here that could be just rolled into Type.h. We should refactor CastExpr-tpl.cpp to use the Type.h types instead.
Motivation / Benefit
Less duplicated code, easier to add new types.
Related Files (Optional)
bolt/expression/CastExpr-tpl.cpp, bolt/type/Type.h
Implementation Plan (Optional)
No response
Additional Context
No response
Chore Type
Code Refactoring / Cleanup
Task Description
CastExpr-tpl.cpp defines its own set of types in a enum called
PrimitiveKindwhich is already covered byType.hthere is a lot of duplicated code here that could be just rolled into Type.h. We should refactor CastExpr-tpl.cpp to use theType.htypes instead.Motivation / Benefit
Less duplicated code, easier to add new types.
Related Files (Optional)
bolt/expression/CastExpr-tpl.cpp, bolt/type/Type.h
Implementation Plan (Optional)
No response
Additional Context
No response