Commit d8ae4d5
authored
RuntimeLibcalls: Add __memcpy_chk, __memmove_chk, __memset_chk (#167053)
These were in TargetLibraryInfo, but missing from RuntimeLibcalls.
This only adds the cases that already have the non-chk variants
already. Copies the enabled-by-default logic from TargetLibraryInfo,
which is probably overly permissive. Only isPS opts-out.1 parent 7f8c43a commit d8ae4d5
File tree
3 files changed
+25
-2
lines changed- llvm
- include/llvm/IR
- test/Transforms/Util/DeclareRuntimeLibcalls
3 files changed
+25
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
38 | 41 | | |
39 | 42 | | |
40 | 43 | | |
| |||
374 | 377 | | |
375 | 378 | | |
376 | 379 | | |
| 380 | + | |
377 | 381 | | |
| 382 | + | |
378 | 383 | | |
| 384 | + | |
379 | 385 | | |
380 | 386 | | |
381 | 387 | | |
| |||
1091 | 1097 | | |
1092 | 1098 | | |
1093 | 1099 | | |
| 1100 | + | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
1094 | 1104 | | |
1095 | 1105 | | |
1096 | 1106 | | |
| |||
2624 | 2634 | | |
2625 | 2635 | | |
2626 | 2636 | | |
| 2637 | + | |
| 2638 | + | |
2627 | 2639 | | |
2628 | | - | |
| 2640 | + | |
2629 | 2641 | | |
2630 | 2642 | | |
2631 | 2643 | | |
| |||
2641 | 2653 | | |
2642 | 2654 | | |
2643 | 2655 | | |
2644 | | - | |
| 2656 | + | |
| 2657 | + | |
2645 | 2658 | | |
2646 | 2659 | | |
2647 | 2660 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
0 commit comments