forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit7ced1d1
committed
Add FIELDNO_* macro designating offset into structs required for JIT.
For any interesting JIT target, fields inside structs need to beaccessed.b96d550 contains infrastructure for syncing the definitionof types between postgres C code and runtime code generation withLLVM. But that doesn't sync the number or names of fields insidestructs, just the types (including padding etc).One option would be to hardcode the offset numbers in the JIT code,but that'd be hard to keep in sync. Instead add macros indicating thefield offset to the fields that need to be accessed. Not pretty, butmanageable.Author: Andres FreundDiscussion:https://postgr.es/m/20170901064131.tazjxwus3k2w3ybh@alap3.anarazel.de1 parentfb46ac2 commit7ced1d1
File tree
6 files changed
+34
-0
lines changed- src/include
- access
- executor
- nodes
6 files changed
+34
-0
lines changedLines changed: 1 addition & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
64 | 64 |
| |
65 | 65 |
| |
66 | 66 |
| |
| 67 | + | |
67 | 68 |
| |
68 | 69 |
| |
69 | 70 |
| |
|
Lines changed: 4 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
157 | 157 |
| |
158 | 158 |
| |
159 | 159 |
| |
| 160 | + | |
160 | 161 |
| |
161 | 162 |
| |
| 163 | + | |
162 | 164 |
| |
163 | 165 |
| |
| 166 | + | |
164 | 167 |
| |
165 | 168 |
| |
166 | 169 |
| |
167 | 170 |
| |
| 171 | + | |
168 | 172 |
| |
169 | 173 |
| |
170 | 174 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
240 | 240 |
| |
241 | 241 |
| |
242 | 242 |
| |
| 243 | + | |
243 | 244 |
| |
| 245 | + | |
244 | 246 |
| |
245 | 247 |
| |
| 248 | + | |
246 | 249 |
| |
247 | 250 |
| |
248 | 251 |
| |
|
Lines changed: 7 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
116 | 116 |
| |
117 | 117 |
| |
118 | 118 |
| |
| 119 | + | |
119 | 120 |
| |
| 121 | + | |
120 | 122 |
| |
| 123 | + | |
121 | 124 |
| |
122 | 125 |
| |
123 | 126 |
| |
| 127 | + | |
124 | 128 |
| |
| 129 | + | |
125 | 130 |
| |
| 131 | + | |
126 | 132 |
| |
127 | 133 |
| |
128 | 134 |
| |
| 135 | + | |
129 | 136 |
| |
130 | 137 |
| |
131 | 138 |
| |
|
Lines changed: 3 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
80 | 80 |
| |
81 | 81 |
| |
82 | 82 |
| |
| 83 | + | |
83 | 84 |
| |
84 | 85 |
| |
| 86 | + | |
85 | 87 |
| |
| 88 | + | |
86 | 89 |
| |
87 | 90 |
| |
88 | 91 |
| |
|
Lines changed: 16 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
64 | 64 |
| |
65 | 65 |
| |
66 | 66 |
| |
| 67 | + | |
67 | 68 |
| |
| 69 | + | |
68 | 70 |
| |
69 | 71 |
| |
70 | 72 |
| |
71 | 73 |
| |
72 | 74 |
| |
| 75 | + | |
73 | 76 |
| |
74 | 77 |
| |
75 | 78 |
| |
| |||
208 | 211 |
| |
209 | 212 |
| |
210 | 213 |
| |
| 214 | + | |
211 | 215 |
| |
| 216 | + | |
212 | 217 |
| |
| 218 | + | |
213 | 219 |
| |
214 | 220 |
| |
215 | 221 |
| |
| |||
224 | 230 |
| |
225 | 231 |
| |
226 | 232 |
| |
| 233 | + | |
227 | 234 |
| |
| 235 | + | |
228 | 236 |
| |
229 | 237 |
| |
230 | 238 |
| |
| 239 | + | |
231 | 240 |
| |
| 241 | + | |
232 | 242 |
| |
233 | 243 |
| |
234 | 244 |
| |
| 245 | + | |
235 | 246 |
| |
| 247 | + | |
236 | 248 |
| |
237 | 249 |
| |
238 | 250 |
| |
| |||
1847 | 1859 |
| |
1848 | 1860 |
| |
1849 | 1861 |
| |
| 1862 | + | |
1850 | 1863 |
| |
1851 | 1864 |
| |
| 1865 | + | |
1852 | 1866 |
| |
1853 | 1867 |
| |
1854 | 1868 |
| |
1855 | 1869 |
| |
| 1870 | + | |
1856 | 1871 |
| |
1857 | 1872 |
| |
1858 | 1873 |
| |
| |||
1874 | 1889 |
| |
1875 | 1890 |
| |
1876 | 1891 |
| |
| 1892 | + | |
1877 | 1893 |
| |
1878 | 1894 |
| |
1879 | 1895 |
| |
|
0 commit comments
Comments
(0)