Skip to content

llvm.memmove not implemented #45

Description

@newgpudev

I am encountering code where Clang generates llvm.memmove, and this intrinsic is not implemented. As a workaround, I've temporarily handled llvm.memmove using the same lowering logic as llvm.memcpy, via COPY_BYTES. This isn't semantically correct for overlapping memory regions, but it unblocks compilation for now.

if (shd_string_starts_with(intrinsic, "llvm.memcpy")) {

I added || shd_string_starts_with(intrinsic, "llvm.memmove") inside the if branch.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions