This patch adds support for the micromips and nomicromips attributes for MIPS targets.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
include/clang/Basic/AttrDocs.td | ||
---|---|---|
1277–1278 |
I think we can improve this to: "instructs the backend to generate or not to generate microMIPS code for that function." | |
lib/Sema/SemaDeclAttr.cpp | ||
5945 | This is incorrect. microMIPS can be used to support interrupt handlers as the instruction set supports returning from an exception with 'eret'. MIPS16e lacks the 'eret' instruction, so it cannot be used with an interrupt handler function. Aside: it is implementation dependant which ISAmode is used when an interrupt occurs on a processor supporting microMIPS and MIPS32R3 from my reading of the specification. |
Thanks for review.
This changes:
- Allow simultaneous using of micromips and interrupt attributes.
- Fix wording of micromips attribute description.
I think we can improve this to:
"instructs the backend to generate or not to generate microMIPS code for that function."