Commit 223a95f
[AddressSanitizer] Split out memory intrinsic handling
Summary:
In both AddressSanitizer and HWAddressSanitizer, we first collect
instructions whose operands should be instrumented and memory intrinsics,
then instrument them. Both during collection and when inserting
instrumentation, they are handled separately.
Collect them separately and instrument them separately. This is a bit
more straightforward, and prepares for collecting operands instead of
instructions in a future patch.
This is patch 2/4 of a patch series:
https://reviews.llvm.org/D77616 [PATCH 1/4] [AddressSanitizer] Refactor ClDebug{Min,Max} handling
https://reviews.llvm.org/D77617 [PATCH 2/4] [AddressSanitizer] Split out memory intrinsic handling
https://reviews.llvm.org/D77618 [PATCH 3/4] [AddressSanitizer] Refactor: Permit >1 interesting operands per instruction
https://reviews.llvm.org/D77619 [PATCH 4/4] [AddressSanitizer] Instrument byval call arguments
Reviewers: kcc, glider
Reviewed By: glider
Subscribers: hiraditya, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D776171 parent e29996c commit 223a95f
2 files changed
Lines changed: 25 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2652 | 2652 | | |
2653 | 2653 | | |
2654 | 2654 | | |
| 2655 | + | |
2655 | 2656 | | |
2656 | 2657 | | |
2657 | 2658 | | |
| |||
2688 | 2689 | | |
2689 | 2690 | | |
2690 | 2691 | | |
2691 | | - | |
| 2692 | + | |
2692 | 2693 | | |
| 2694 | + | |
| 2695 | + | |
| 2696 | + | |
2693 | 2697 | | |
2694 | 2698 | | |
2695 | 2699 | | |
| |||
2708 | 2712 | | |
2709 | 2713 | | |
2710 | 2714 | | |
2711 | | - | |
2712 | | - | |
2713 | | - | |
| 2715 | + | |
| 2716 | + | |
| 2717 | + | |
2714 | 2718 | | |
2715 | 2719 | | |
2716 | 2720 | | |
| |||
2723 | 2727 | | |
2724 | 2728 | | |
2725 | 2729 | | |
2726 | | - | |
2727 | | - | |
2728 | 2730 | | |
| 2731 | + | |
| 2732 | + | |
| 2733 | + | |
| 2734 | + | |
2729 | 2735 | | |
2730 | 2736 | | |
2731 | 2737 | | |
| |||
Lines changed: 13 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
720 | 720 | | |
721 | 721 | | |
722 | 722 | | |
723 | | - | |
724 | | - | |
725 | | - | |
726 | | - | |
727 | | - | |
728 | 723 | | |
729 | 724 | | |
730 | 725 | | |
| |||
1090 | 1085 | | |
1091 | 1086 | | |
1092 | 1087 | | |
| 1088 | + | |
1093 | 1089 | | |
1094 | 1090 | | |
1095 | 1091 | | |
| |||
1121 | 1117 | | |
1122 | 1118 | | |
1123 | 1119 | | |
1124 | | - | |
| 1120 | + | |
1125 | 1121 | | |
| 1122 | + | |
| 1123 | + | |
| 1124 | + | |
1126 | 1125 | | |
1127 | 1126 | | |
1128 | 1127 | | |
| |||
1138 | 1137 | | |
1139 | 1138 | | |
1140 | 1139 | | |
1141 | | - | |
| 1140 | + | |
| 1141 | + | |
1142 | 1142 | | |
1143 | 1143 | | |
1144 | 1144 | | |
| |||
1219 | 1219 | | |
1220 | 1220 | | |
1221 | 1221 | | |
| 1222 | + | |
| 1223 | + | |
| 1224 | + | |
| 1225 | + | |
| 1226 | + | |
| 1227 | + | |
1222 | 1228 | | |
1223 | 1229 | | |
1224 | 1230 | | |
| |||
0 commit comments