Commit 571c7d8f authored by David Spickett's avatar David Spickett Committed by Tom Stellard
Browse files

Reland "[llvm][AArch64] Insert "bti j" after call to setjmp"

Cherry-picked from c3b98194
which was originally reviewed as https://reviews.llvm.org/D121707.

This reverts commit edb7ba71.

This changes BLR_BTI to take variable_ops meaning that we can accept
a register or a label. The pattern still expects one argument so we'll
never get more than one. Then later we can check the type of the operand
to choose BL or BLR to emit.

(this is what BLR_RVMARKER does but I missed this detail of it first time around)

Also require NoSLSBLRMitigation which I missed in the first version.
parent 0f56ce0f
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment