[llvm] [NFC][llvm-exegesis] Disable CFI-icall for JIT-executed function (#202472) (PR #202682)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 9 08:09:40 PDT 2026
https://github.com/vitalybuka updated https://github.com/llvm/llvm-project/pull/202682
>From e71b154d022f60f4c28dcf711792c48eda2f3a88 Mon Sep 17 00:00:00 2001
From: Vitaly Buka <vitalybuka at google.com>
Date: Tue, 9 Jun 2026 08:03:12 -0700
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?=
=?UTF-8?q?l=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Created using spr 1.3.7
---
llvm/tools/llvm-exegesis/lib/Assembler.h | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/llvm/tools/llvm-exegesis/lib/Assembler.h b/llvm/tools/llvm-exegesis/lib/Assembler.h
index 1c8854c21b9a7..da358d19fb0f7 100644
--- a/llvm/tools/llvm-exegesis/lib/Assembler.h
+++ b/llvm/tools/llvm-exegesis/lib/Assembler.h
@@ -29,6 +29,7 @@
#include "llvm/MC/MCInst.h"
#include "llvm/Object/Binary.h"
#include "llvm/Object/ObjectFile.h"
+#include "llvm/Support/Compiler.h"
#include "llvm/Support/raw_ostream.h"
#include "llvm/Target/TargetMachine.h"
@@ -114,7 +115,8 @@ class ExecutableFunction {
StringRef getFunctionBytes() const { return FunctionBytes; }
// Executes the function.
- void operator()(char *Memory) const {
+ void operator()(char *Memory) const
+ LLVM_NO_SANITIZE("cfi-icall") /* Incompatible with JIT */ {
((void (*)(char *))(uintptr_t)FunctionBytes.data())(Memory);
}
More information about the llvm-commits
mailing list