Implement codegen for address operands of the load operations
L8UI/L16UI/L16SI/L32I and store operations S8I/S16I/S32I.
Details
Diff Detail
Unit Tests
Event Timeline
I just realized that this patch along with nearly all other patches in the series don't have tests, what's your plan on that?
Also, it might be a good idea to add more reviewers, potentially backend maintainers.
Hi @myhsu, thank you for your comment. We have plans to add also some tests to the current functionality.
@andreisfr I believe every patch should stand on its own and have tests for its own functionality. Even if the backend won't be fully functional without all parts included, each commit should still have the ability to be tested as it is added.
Added minimal support for stack operations like storeRegToStackSlot/loadRegFromStackSlot/eliminateFrameIndex functions to make possible implement different tests. Added test for load/store operations on stack.
Basically lgtm with some nits
llvm/lib/Target/Xtensa/XtensaISelDAGToDAG.cpp | ||
---|---|---|
55 | s/is not/are not/ Can you make this a DiagnosticInfoUnsupported instead? | |
67–81 | Move this to a separate util function | |
llvm/lib/Target/Xtensa/XtensaRegisterInfo.cpp | ||
67–68 | define and init on same line? | |
80 | init on definition | |
86–100 | Move to separate util function |
llvm/test/CodeGen/Xtensa/stack-access.ll | ||
---|---|---|
21–22 | weird indent |
s/is not/are not/
Can you make this a DiagnosticInfoUnsupported instead?