Hi,
I wanted to maybe work on the new experimental constant interpreter in clang. I took last week to get to know the code a little and implement some basic functionality.
New in this patch are:
- Simple function calls
- array initializers and subscript expressions
- pointer reference and dereference
- local and global variables
Some tests for the functionality is in test/AST/Interp/interp.cpp.
As far as I know the interpreter has been abandoned quite some time ago, so I was just looking for some basic feedback about whether this is worth it to pursue. If the feedback is positive, I will continue working on it.