Add support for custom user patterns written in C
Adds a header for defining custom C patterns, pass for preprocessing them into valid LLVM pattern format, and creates new interface for these passes. Includes tests for the C patterns.
C patterns can be compiled using compile-pattern CLI option, or used directly during comparison using the -p pattern.c option.
Handwritten tests aren't integrated into the pytest infrastructure, they only serve as examples of patterns.
CMake installation for the pattern header is not implemented, I'm not sure what's the proper way of handling that. Currently the Python script responsible for compiling patterns automatically includes the header from the source code folder (see the relevant line). Otherwise, the pull request is ready.
Hello, I started working full time in July last year and afterwards completely forgot about the diffkemp at the time. Right now, I just pushed the changes I had locally on my PC. I could maybe take a look at the remaining issues, though I'm not sure if it's still relevant to the project.
Hello, I started working full time in July last year and afterwards completely forgot about the diffkemp at the time. Right now, I just pushed the changes I had locally on my PC. I could maybe take a look at the remaining issues, though I'm not sure if it's still relevant to the project.
Thanks for the info @TomasKucma!
I'll have a look into the current state of this PR and will let you know what the next steps should be.