Rust seems to be a popular request, and a colleague of mine from outside these forums has also requested that Rust be added. Maybe it's time I finally learn it...
The C++ unit tests are not something I've looked into yet, only the LIT tests for lowering IR to assembly. My guess is they are relatively straight forward, as (I THINK) it only needs to test invoking the p2 toolchain correctly and that the special attributes (cogmain and cogtext) get used correctly (and cogtext is a placeholder that does nothing right now). I have some very basic tests written here, as well as a test for every P2 instruction (that I support) autogenerated to test encoding, parsing, and disassembly. ...
Thanks, I'll think about it when I get deep enough to understand things. Maybe the docs and other targets have tests to give ideas too.
I appreciate the offer to help, I'll take anything I can get!
Comments
Rust seems to be a popular request, and a colleague of mine from outside these forums has also requested that Rust be added. Maybe it's time I finally learn it...
The C++ unit tests are not something I've looked into yet, only the LIT tests for lowering IR to assembly. My guess is they are relatively straight forward, as (I THINK) it only needs to test invoking the p2 toolchain correctly and that the special attributes (cogmain and cogtext) get used correctly (and cogtext is a placeholder that does nothing right now). I have some very basic tests written here, as well as a test for every P2 instruction (that I support) autogenerated to test encoding, parsing, and dissassembly. see here: https://github.com/ne75/llvm-project/tree/08dbbbe7cae294c764a04fd6aebd4aad4bcec149/llvm/test/MC/P2 and here: https://github.com/ne75/llvm-project/tree/08dbbbe7cae294c764a04fd6aebd4aad4bcec149/llvm/test/CodeGen/P2
I appreciate the offer to help, I'll take anything I can get!
Thanks, I'll think about it when I get deep enough to understand things. Maybe the docs and other targets have tests to give ideas too.
It's a lot to learn! We'll see how things go.![:smile: :smile:](https://forums.parallax.com/resources/emoji/smile.png)