This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Add Thumb Attributes for thumb thunks created in SLSHarding
ClosedPublic

Authored by dmgreen on Feb 24 2023, 7:06 AM.

Details

Summary

Without this the function will be use an Arm subtarget, meaning the instructions in it will be invalid for the current subtarget.

Diff Detail

Event Timeline

dmgreen created this revision.Feb 24 2023, 7:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 24 2023, 7:06 AM
Herald added a subscriber: hiraditya. · View Herald Transcript
dmgreen requested review of this revision.Feb 24 2023, 7:06 AM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 24 2023, 7:06 AM

Looks good but where are the tests?

Looks good but where are the tests?

Oh. The test is that we turn on ARM_MC::verifyInstructionPredicates and it doesn't it asserts in the existing tests, especially llvm/test/CodeGen/ARM/speculation-hardening-sls-boththunks.ll. I think this is the last piece that is missing from the llvm-tests. I can try and see if I can make something more specific to this change.

DavidSpickett accepted this revision.Feb 27 2023, 2:45 AM

I see, LGTM then.

This revision is now accepted and ready to land.Feb 27 2023, 2:45 AM