Implement codegen for address operands of the load operations
L8UI/L16UI/L16SI/L32I and store operations S8I/S16I/S32I.
Details
Diff Detail
- Build Status
Buildable 258157
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 | ||
---|---|---|
57 | s/is not/are not/ Can you make this a DiagnosticInfoUnsupported instead? | |
69–83 | Move this to a separate util function | |
llvm/lib/Target/Xtensa/XtensaRegisterInfo.cpp | ||
68–69 | define and init on same line? | |
81 | init on definition | |
87–101 | Move to separate util function |
llvm/test/CodeGen/Xtensa/stack-access.ll | ||
---|---|---|
22–23 | weird indent |
s/is not/are not/
Can you make this a DiagnosticInfoUnsupported instead?