aboutsummaryrefslogtreecommitdiff
path: root/include/cps/StringHandler.h
diff options
context:
space:
mode:
author_ov4 <ov4@ov4.org>2026-10-13 05:25:09 +0000
committer_ov4 <ov4@ov4.org>2026-10-13 05:25:09 +0000
commit38ff4e782ef844a21512eb2ca0e491387ae89ec5 (patch)
treed9097aa5c8c5989b7dd4f9ee1c34dbcf28750fcb /include/cps/StringHandler.h
parenta6fc1625ea8f825a7161354eb9167a281542fa29 (diff)
fix: compare strings by content
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Diffstat (limited to 'include/cps/StringHandler.h')
-rw-r--r--include/cps/StringHandler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/cps/StringHandler.h b/include/cps/StringHandler.h
index e9a8752..0b2447c 100644
--- a/include/cps/StringHandler.h
+++ b/include/cps/StringHandler.h
@@ -16,6 +16,7 @@ class StringHandler {
llvm::FunctionCallee MemCpyFunc;
llvm::FunctionCallee StrCpyFunc;
llvm::FunctionCallee StrCatFunc;
+ llvm::FunctionCallee StrCmpFunc;
llvm::FunctionCallee ToUpperFunc;
llvm::FunctionCallee ToLowerFunc;
@@ -30,6 +31,7 @@ public:
llvm::Value *emitLength(llvm::Value *Str);
llvm::Value *emitConcat(llvm::Value *LHS, llvm::Value *RHS);
+ llvm::Value *emitCompare(int Op, llvm::Value *LHS, llvm::Value *RHS);
llvm::Value *emitMid(llvm::Value *Str, llvm::Value *Start, llvm::Value *Len);
llvm::Value *emitRight(llvm::Value *Str, llvm::Value *Len);
llvm::Value *emitLeft(llvm::Value *Str, llvm::Value *Len);