[llvm] [AArch64][PAC] Expand blend(reg, imm) operation in aarch64-pauth pass (PR #74729)

Anatoly Trosinenko via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 1 06:12:08 PST 2024


================
@@ -359,6 +366,32 @@ bool AArch64PointerAuth::checkAuthenticatedLR(
   return true;
 }
 
+void AArch64PointerAuth::emitBlend(MachineBasicBlock::iterator MBBI,
+                                   Register Result, Register AddrDisc,
+                                   unsigned IntDisc) const {
+  MachineBasicBlock &MBB = *MBBI->getParent();
+  DebugLoc DL = MBBI->getDebugLoc();
+
+  if (Result != AddrDisc)
+    BuildMI(MBB, MBBI, DL, TII->get(AArch64::ORRXrs), Result)
----------------
atrosinenko wrote:

Added a MIR-based test file, thank you.

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


More information about the llvm-commits mailing list