Commit 29b51ee
committed
[AOTI] Update cpp wrapper codegen to use v2 C shim
Summary: To use the torchgen-ed v2 C shim interface, cpp wrapper codegen needs to update its rule for generating the right parameter and function call. Because changing the emitted code will cause a FC breakage, we add a flag to control the behavior.
ghstack-source-id: 0bcec4e
Pull Request resolved: #1207141 parent 10c096b commit 29b51ee
File tree
4 files changed
+38
-8
lines changed- torch/_inductor
- codegen
4 files changed
+38
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | | - | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
148 | 149 | | |
149 | 150 | | |
150 | 151 | | |
151 | | - | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
152 | 158 | | |
153 | 159 | | |
154 | 160 | | |
| |||
915 | 921 | | |
916 | 922 | | |
917 | 923 | | |
918 | | - | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
919 | 929 | | |
920 | 930 | | |
921 | 931 | | |
| |||
1664 | 1674 | | |
1665 | 1675 | | |
1666 | 1676 | | |
1667 | | - | |
| 1677 | + | |
1668 | 1678 | | |
1669 | 1679 | | |
1670 | 1680 | | |
1671 | | - | |
1672 | | - | |
| 1681 | + | |
| 1682 | + | |
| 1683 | + | |
| 1684 | + | |
| 1685 | + | |
| 1686 | + | |
| 1687 | + | |
1673 | 1688 | | |
1674 | 1689 | | |
1675 | 1690 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| 46 | + | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
35 | 39 | | |
36 | 40 | | |
37 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4812 | 4812 | | |
4813 | 4813 | | |
4814 | 4814 | | |
4815 | | - | |
| 4815 | + | |
| 4816 | + | |
| 4817 | + | |
| 4818 | + | |
4816 | 4819 | | |
4817 | 4820 | | |
4818 | 4821 | | |
| |||
4865 | 4868 | | |
4866 | 4869 | | |
4867 | 4870 | | |
| 4871 | + | |
4868 | 4872 | | |
4869 | 4873 | | |
4870 | 4874 | | |
| |||
5022 | 5026 | | |
5023 | 5027 | | |
5024 | 5028 | | |
5025 | | - | |
| 5029 | + | |
| 5030 | + | |
| 5031 | + | |
| 5032 | + | |
| 5033 | + | |
| 5034 | + | |
| 5035 | + | |
5026 | 5036 | | |
5027 | 5037 | | |
5028 | 5038 | | |
| |||
0 commit comments