Open SchrodingerZhu opened 3 weeks ago
Hi!
This issue may be a good introductory issue for people new to working on LLVM. If you would like to work on this issue, your first steps are:
test/
create fine-grained testing targets, so you can e.g. use make check-clang-ast
to only run Clang's AST tests.git clang-format HEAD~1
to format your changes.If you have any further questions about this issue, don't hesitate to ask via a comment in the thread below.
@llvm/issue-subscribers-good-first-issue
Author: Schrodinger ZHU Yifan (SchrodingerZhu)
I would like to take this if possible :)
Sure. go ahead.
We need to create a
process_mrelease
wrapper for linux targets, see https://lwn.net/Articles/865341/. This is already inside glibc.This requires:
libc/include/sys/syscall.h.def
libc/src/sys/mman/mmap.h
libc/src/sys/mman/CMakeLists.txt
accordinglylibc/src/sys/mman/linux/mmap.cpp
libc/src/sys/mman/linux/CMakeLists.txt
accordinglyfunctions
section inlibc/newhdrgen/yaml/sys/mman.yaml
SysMMan
section inlibc/spec/linux.td
libc/test/src/sys/mman/linux/mmap_test.cpp
libc/test/src/sys/mman/linux/CMakeLists.txt
accordinglyMisc:
If you use vscode, sample settings are as the following (optional settings are useful in speeding up the compilation):