[PATCH] D48411: [RISCV] Add support for _interrupt attribute
Ana Pazos via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 22 17:38:55 PDT 2018
apazos updated this revision to Diff 152565.
apazos retitled this revision from "[RISCV] Support for __attribute__((interrupt))" to "[RISCV] Add support for _interrupt attribute".
apazos edited the summary of this revision.
apazos added a comment.
Herald added subscribers: brucehoult, MartinMosbeck.
Initial code was saving all registers.
Modified it to save only the ones used, or all registers if there is a call.
Still needs some fixes and tests update.
Sharing the WIP to collect feedback.
https://reviews.llvm.org/D48411
Files:
lib/Target/RISCV/RISCVCallingConv.td
lib/Target/RISCV/RISCVFrameLowering.cpp
lib/Target/RISCV/RISCVISelLowering.cpp
lib/Target/RISCV/RISCVISelLowering.h
lib/Target/RISCV/RISCVInstrInfo.cpp
lib/Target/RISCV/RISCVInstrInfo.td
lib/Target/RISCV/RISCVRegisterInfo.cpp
lib/Target/RISCV/RISCVSubtarget.cpp
test/CodeGen/RISCV/interrupt-attr-args-error.ll
test/CodeGen/RISCV/interrupt-attr-invalid.ll
test/CodeGen/RISCV/interrupt-attr-ret-error.ll
test/CodeGen/RISCV/interrupt-attr.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48411.152565.patch
Type: text/x-patch
Size: 14751 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180623/f777f433/attachment.bin>
More information about the llvm-commits
mailing list