[ARM] Add Thumb Attributes for thumb thunks created in SLSHarding
authorDavid Green <david.green@arm.com>
Fri, 24 Mar 2023 18:11:54 +0000 (18:11 +0000)
committerDavid Green <david.green@arm.com>
Fri, 24 Mar 2023 18:11:54 +0000 (18:11 +0000)
commit3ac5a123d95c4caa194b2f0b54ad963ce3034ca8
treeb82953d3080014a7fe02450d0df9c41cb6ffa01b
parent70511e61761eb7d1c4fb5ff1a8383ced18843753
[ARM] Add Thumb Attributes for thumb thunks created in SLSHarding

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

Differential Revision: https://reviews.llvm.org/D144733
llvm/include/llvm/CodeGen/IndirectThunks.h
llvm/lib/Target/ARM/ARMSLSHardening.cpp
llvm/test/CodeGen/ARM/speculation-hardening-sls-boththunks.ll