[PATCH] D113890: [RISCV] Add new ELF attribute to track reserved registers
Kito Cheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 7 04:06:18 PST 2022
kito-cheng added inline comments.
Herald added a subscriber: pcwang-thead.
Herald added a project: All.
================
Comment at: llvm/include/llvm/MC/MCELFStreamer.h:95
unsigned Tag;
- unsigned IntValue;
+ uint64_t IntValue;
std::string StringValue;
----------------
I would suggest change this into `APInt`, since we might also use more than 64 bits, e.g. vector register.
================
Comment at: llvm/test/MC/RISCV/attribute-reserved-regs.s:21
+
+.attribute reserved_registers, { x0, x1, x2, x3, x29-x30, x31 }
+# CHECK: attribute 14, 3758096399
----------------
Do you mind add few more testcase for floating point register or even vector register?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D113890/new/
https://reviews.llvm.org/D113890
More information about the llvm-commits
mailing list