Skip to content

Extract ConstExpr Information from AST #193

@isVoid

Description

@isVoid

Contexpr are evaluated at the time when AST is built. In templated C++ library, we depend on the compiler to evaluate the information at compile time before lowering into machine code. For python bindings, often times there lacks a measure to extract information to query specifc values from the AST. astcanopy can provide an API that helps quering specific value from the API. Alternatively, astcanopy can perform certain codegen, transforming C++ constexpr code into python code so that they can be evaluated on host.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions