[PATCH] D151979: [RISCV] Handle "o" inline asm memory constraint
Wang Pengcheng via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 6 00:38:53 PDT 2023
pcwang-thead added a comment.
I just dug into the crash.
The key point here is that these packages are using `DTrace`(_SDT_ASM_BODY <https://github.com/torvalds/linux/blob/f8dba31b0a826e691949cd4fdfa5c30defaac8c5/tools/testing/selftests/bpf/sdt.h#L287>) and some inline assemblies like below will be generated:
define ptr @simple_key_cache_read(ptr %0) {
call void asm sideeffect "990: nop\0A.pushsection .note.stapsdt,\22?\22,\22note\22\0A.balign 4\0A.4byte 992f-991f,994f-993f,3\0A991: .asciz \22stapsdt\22\0A992: .balign 4\0A993: .8byte 990b\0A.8byte _.stapsdt.base\0A.8byte mysql_keycache__read__start_semaphore\0A.asciz \22mysql\22\0A.asciz \22keycache__read__start\22\0A.asciz \22${0:n}@$1 ${2:n}@$3 ${4:n}@$5 ${6:n}@$7\22\0A994: .balign 4\0A.popsection\0A", "n,nor,n,nor,n,nor,n,nor"(i32 0, ptr %0, i32 0, i32 0, i32 0, i64 0, i32 0, i64 0)
ret ptr null
}
There are several usages of constraint "o".
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D151979/new/
https://reviews.llvm.org/D151979
More information about the llvm-commits
mailing list