diff options
author | David Green <david.green@arm.com> | 2023-01-23 11:22:11 +0000 |
---|---|---|
committer | David Green <david.green@arm.com> | 2023-01-23 11:22:11 +0000 |
commit | 3770b4aa3c5a06efbf43b5c22b2b641794a41dca (patch) | |
tree | 08b4456dc30a60646baceb00f299d1a5e155cbf0 /llvm/lib/CodeGen/MachineInstr.cpp | |
parent | 6469281100e654f690af8d5bcf0123e4105cafbe (diff) | |
download | llvm-3770b4aa3c5a06efbf43b5c22b2b641794a41dca.zip llvm-3770b4aa3c5a06efbf43b5c22b2b641794a41dca.tar.gz llvm-3770b4aa3c5a06efbf43b5c22b2b641794a41dca.tar.bz2 |
[ARM] Don't emit Arm speculation hardening thunks under Thumb and vice-versa
Given a patch like D129506, using instructions not valid for the current
target feature set becomes an error. This means that emitting Arm
instructions in a Thumb target (or vice versa) becomes an error. When
running in Thumb mode only thumb thunks will be needed, and in Arm mode
only arm thunks are needed. This patch limits the emitted thunks to just
the ones valid for the current architecture.
Differential Revision: https://reviews.llvm.org/D129693
Diffstat (limited to 'llvm/lib/CodeGen/MachineInstr.cpp')
0 files changed, 0 insertions, 0 deletions