[llvm] [NFC] add LLVM_ABI to function getMemcmp declaration (PR #166192)
zhijian lin via llvm-commits
llvm-commits at lists.llvm.org
Mon Nov 3 09:09:15 PST 2025
https://github.com/diggerlin created https://github.com/llvm/llvm-project/pull/166192
According to discussion of https://github.com/llvm/llvm-project/pull/153600#discussion_r2356071934
add LLVM_ABI to function getMemcmp declaration
>From 270140a4f0bc2d986fc14849b428d25a8a323cbb Mon Sep 17 00:00:00 2001
From: zhijian <zhijian at ca.ibm.com>
Date: Mon, 3 Nov 2025 17:14:33 +0000
Subject: [PATCH] add LLVM_ABI to function getMemcmp declare
---
llvm/include/llvm/CodeGen/SelectionDAG.h | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/llvm/include/llvm/CodeGen/SelectionDAG.h b/llvm/include/llvm/CodeGen/SelectionDAG.h
index df6ce0fe1b037..569f9cbbe3a2a 100644
--- a/llvm/include/llvm/CodeGen/SelectionDAG.h
+++ b/llvm/include/llvm/CodeGen/SelectionDAG.h
@@ -1256,9 +1256,10 @@ class SelectionDAG {
/// stack arguments from being clobbered.
LLVM_ABI SDValue getStackArgumentTokenFactor(SDValue Chain);
- std::pair<SDValue, SDValue> getMemcmp(SDValue Chain, const SDLoc &dl,
- SDValue Dst, SDValue Src, SDValue Size,
- const CallInst *CI);
+ LLVM_ABI std::pair<SDValue, SDValue> getMemcmp(SDValue Chain, const SDLoc &dl,
+ SDValue Dst, SDValue Src,
+ SDValue Size,
+ const CallInst *CI);
LLVM_ABI std::pair<SDValue, SDValue>
getStrlen(SDValue Chain, const SDLoc &dl, SDValue Src, const CallInst *CI);
More information about the llvm-commits
mailing list