Commit 8950f02
committed
[BOLT] Introduce BinaryFunction::canClone()
In some scenarios, we want to allow execution of the original function
code together with its rewritten (optimized) copy. We used to limit such
capability when the function uses C++ exceptions, since we cannot
duplicate exception tables. There's more metadata that cannot be
duplicated, and this PR adds more checks via the introduction of
canClone() function that checks all such limitations.1 parent dbe070e commit 8950f02
File tree
3 files changed
+16
-1
lines changed- bolt
- include/bolt/Core
- lib
- Core
- Passes
3 files changed
+16
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1375 | 1375 | | |
1376 | 1376 | | |
1377 | 1377 | | |
| 1378 | + | |
| 1379 | + | |
| 1380 | + | |
| 1381 | + | |
| 1382 | + | |
1378 | 1383 | | |
1379 | 1384 | | |
1380 | 1385 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3744 | 3744 | | |
3745 | 3745 | | |
3746 | 3746 | | |
| 3747 | + | |
| 3748 | + | |
| 3749 | + | |
| 3750 | + | |
| 3751 | + | |
| 3752 | + | |
| 3753 | + | |
| 3754 | + | |
| 3755 | + | |
| 3756 | + | |
3747 | 3757 | | |
3748 | 3758 | | |
3749 | 3759 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
| |||
0 commit comments