Commit ff7fa3a
committed
RuntimeLibcalls: Add __memcpy_chk, __memmove_chk, __memset_chk
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 1dadec1 commit ff7fa3a
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 | | |
| |||
375 | 378 | | |
376 | 379 | | |
377 | 380 | | |
| 381 | + | |
378 | 382 | | |
| 383 | + | |
379 | 384 | | |
| 385 | + | |
380 | 386 | | |
381 | 387 | | |
382 | 388 | | |
| |||
1092 | 1098 | | |
1093 | 1099 | | |
1094 | 1100 | | |
| 1101 | + | |
| 1102 | + | |
| 1103 | + | |
| 1104 | + | |
1095 | 1105 | | |
1096 | 1106 | | |
1097 | 1107 | | |
| |||
2625 | 2635 | | |
2626 | 2636 | | |
2627 | 2637 | | |
| 2638 | + | |
| 2639 | + | |
2628 | 2640 | | |
2629 | | - | |
| 2641 | + | |
2630 | 2642 | | |
2631 | 2643 | | |
2632 | 2644 | | |
| |||
2642 | 2654 | | |
2643 | 2655 | | |
2644 | 2656 | | |
2645 | | - | |
| 2657 | + | |
| 2658 | + | |
2646 | 2659 | | |
2647 | 2660 | | |
2648 | 2661 | | |
| |||
| 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