[llvm] [llubi] Implement memory manipulation intrinsics (PR #204932)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 20 08:05:09 PDT 2026
================
@@ -698,6 +699,120 @@ class InstExecutor : public InstVisitor<InstExecutor, void>,
return V.asInteger();
}
+ AnyValue callMemTransferIntrinsic(ArrayRef<AnyValue> Args,
+ Intrinsic::ID IID) {
+ if (Args[2].isPoison()) {
+ reportImmediateUB() << "Memory transfer intrinsic with poison length.";
+ return AnyValue::poison();
+ }
+
+ const APInt &Length = Args[2].asInteger();
+ if (Length.getActiveBits() > 64) {
+ reportImmediateUB()
+ << "Memory transfer intrinsic length overflows uint64_t.";
----------------
dtcxzyw wrote:
Missing test coverage.
https://github.com/llvm/llvm-project/pull/204932
More information about the llvm-commits
mailing list