[clang] [llvm] [ARM][KCFI] Add backend support for Kernel Control-Flow Integrity (PR #163698)

Kees Cook via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 21 10:09:59 PDT 2025


================
@@ -6535,6 +6535,15 @@ def CMP_SWAP_64 : PseudoInst<(outs GPRPair:$Rd, GPRPair:$addr_temp_out),
 
 def : Pat<(atomic_fence (timm), 0), (MEMBARRIER)>;
 
+//===----------------------------------------------------------------------===//
+// KCFI check pseudo-instruction.
+//===----------------------------------------------------------------------===//
+let isPseudo = 1 in {
----------------
kees wrote:

Ah! Yes, quite true. I was looking too hard at the SEH stuff below, which does this differently. Fixed.

https://github.com/llvm/llvm-project/pull/163698


More information about the llvm-commits mailing list