VE uses identical names "%s0-63" to all generic registers. Change to use
alternative name mechanism among all generic registers instead of hard-
coding them.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
This time, I am using new feature so I would like to add reviewers who know about it.
Makes sense.
One thing i noted, which should not go into this patch and is more of a cleanup thing: we probably want register name aliases also on the c++ side (eg something like VE::SP to refer to the stack pointer instead of using its SX register number).
llvm/lib/Target/VE/MCTargetDesc/VEInstPrinter.cpp | ||
---|---|---|
41 | You should be able to directly use the output of getRegisterName without the lower now? |
llvm/lib/Target/VE/MCTargetDesc/VEInstPrinter.cpp | ||
---|---|---|
41 | That's true. I haven't noticed it. Thank you for very useful comments to reduce computation time. I really appreciate it. |
Remove lower() by lowering register name defined in VERegisterInfo.td.
Following an @arsenm suggesntion. Thanks!
llvm/lib/Target/VE/MCTargetDesc/VEInstPrinter.cpp | ||
---|---|---|
41 | You don't need to construct a stringref either |
Removed StringRef constructor by following arsenm suggestion. Thanks!
Rebased to the latest master.
Typo regitster