Add documentation about how to add a math function to LLVM-libc.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| libc/src/math/docs/add_math_function.md | ||
|---|---|---|
| 2 | We should talk about the why of this document. For example, something like: This document is to serve as a cookbook for adding a new math function implementation to LLVM libc. To add a new function, apart from the actual implementation, one has to follow a few other steps to setup proper registration and shipping of the new function. This documents describes each of these steps in detail. | |
| 6 | Explain a little about what this registration is for. Ditto for all sections. | |
LGTM with a few nits
| libc/src/math/docs/add_math_function.md | ||
|---|---|---|
| 46 | I think you mean "preferred to be included: as opposed to "preferable to be implemented" | |
| 59 | I think adding the word "link" between "corresponding" and "between" makes the sentence clearer. | |
| 75 | "Add an exhaustive test to:" | |
| 182 | fix the missing newline at the end of the file. | |
| libc/src/math/docs/add_math_function.md | ||
|---|---|---|
| 29 | In the below example, put func in angle brackets like <func> to indicate that it is the variable. | |
| 71 | Line length. | |
| 117 | s/default implementation (glibc)/system libc implementation (which very often is glibc). | |
| 122 | s/func_perf.cpp/<func>_perf.cpp | |
| 153 | We don't do libm anymore. | |
| 164 | Replace func_test with <func>_test below. | |
| 171 | This does not run the test. | |
[libc] Add documentation about how to add a math function to LLVM-libc.
| libc/src/math/docs/add_math_function.md | ||
|---|---|---|
| 171 | Somehow it actually does for exhaustive tests. I'll update the doc when we change that behavior. | |
| libc/src/math/docs/add_math_function.md | ||
|---|---|---|
| 143 | If you don't specify the full build option, you don't need clang and clang-tools-extra. | |
We should talk about the why of this document. For example, something like: