Repository navigation
Commit c6da141
committed
Phase 5.B c10: lir_c_api.cpp jit_lir_opcode_guard -> static inline
Last trivial inline-conversion in lir_c_api.cpp BasicBlock/Function/
Instruction/Operand class. Closes c8-c10 mini-batch.
Files:
M Python/jit/lir/lir_c_api.h +6 / -2 (1 static inline)
M Python/jit/lir/lir_c_api.cpp +2 / -5 (1 wrapper body removed)
Net: -7 / +8 = +1 LOC.
Inlined: jit_lir_opcode_guard -> JIT_LIR_OP_GUARD constant
(lir_types_c.h:192 = 6, matches kGuard enum value at C++ side via static_assert
indirectly — Instruction.opcode_ field offset cross-validated in
lir_instr_c_verify.cpp).
Caller audit: jit_lir_opcode_guard called from .c files for opcode
comparison; inline preserves exact return value.
Comprehensive .h-decl <-> .cpp-defn enumeration: 1 declaration mapped to
1 definition; 1 inlined; 0 missed. Strict 1-wrapper scope per supervisor
20:46:45Z (no expansion despite escape clauses in prior dispatches).
PRE-COMMIT BUILD VERIFIED via pre-commit hook a2e8808.
POST-c10 PIVOT decision pending per theologian 20:45:53Z + supervisor
20:46:45Z: lir_c_api.cpp inline-conversion class diminishing returns;
remaining 45 wrappers are substantive codegen::Environ + arch::*
bridges, not byte-equivalent C-validated. Recommend pivot to Phase 5.E
InstrProperty C-port OR Phase 5.B-extension to generator.cpp/regalloc.cpp.
Supervisor decides at c10 close.1 parent f938c22 commit c6da141
2 files changed
Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
| 68 | + | |
| 69 | + | |
73 | 70 | | |
74 | 71 | | |
75 | 72 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
187 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
188 | 192 | | |
189 | 193 | | |
190 | 194 | | |
| |||
0 commit comments