This patch forms part of the ARMv8-M Baseline/Mainline support, adding support for new system registers in ARMv8-M Baseline/Mainline.
Details
Diff Detail
- Repository
- rL LLVM
Event Timeline
One nit here...
lib/Target/ARM/ARMISelDAGToDAG.cpp | ||
---|---|---|
3765 | Won't this allow "basepri_maxns"? Seems a bit inconsistent with the others. |
lib/Target/ARM/ARMISelDAGToDAG.cpp | ||
---|---|---|
3765 | It will reconstruct Reg = basepri, Flags = max{_ns,} into Reg = basepri_max, Flags = {ns,}, the call to getMClassRegisterMask afterwards will check whether or not the ns flags are allowed. |
lib/Target/ARM/ARMISelDAGToDAG.cpp | ||
---|---|---|
3765 | But what if the second '_' is skipped? It looks like we'd treat Flags == "max_ns" and Flags == "maxns" equivalently, which seems like an unnecessary quirk. |
lib/Target/ARM/ARMISelDAGToDAG.cpp | ||
---|---|---|
3765 | Ah, I see what you meant now, I'll fix it. |
Fixup logic handling basepri_max{_ns,} field splitting so as to not allow basepri_maxns.
Won't this allow "basepri_maxns"? Seems a bit inconsistent with the others.