This patch adds handling of the long_call, far, and near attributes passed by front-end. The patch depends on D35479.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
Some minor nits. Also, see my question inline.
lib/Target/Mips/MipsISelLowering.cpp | ||
---|---|---|
3156 | Restore the comment from lines 3156-3157 to an appropriate place. Question (I haven't looked throughly yet): Can an ExternalSymbolSDNode have the long-call/near-call attribute? If it can, then this expansion code is missing the portions that check the attributes of the ExternalSymbolSDNode. | |
test/CodeGen/Mips/long-call-attr.ll | ||
5 | Also requires testing for mips64. | |
15 | ; CHECK-LABEL: foo: before this. |
lib/Target/Mips/MipsISelLowering.cpp | ||
---|---|---|
3156 |
As far as I understand the IR, ExternalSymbolSDNode cannot contains any attribute. |
Restore the comment from lines 3156-3157 to an appropriate place.
Question (I haven't looked throughly yet): Can an ExternalSymbolSDNode have the long-call/near-call attribute?
If it can, then this expansion code is missing the portions that check the attributes of the ExternalSymbolSDNode.