We usually access array elements in the same pattern, which uses narrow(). Add an extra opcode for this. This saves us quite some instructions and makes the bytecode easier to read.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D140805
[clang][Interp] Add ArrayElemPtr{,Pop} opcode ClosedPublic Authored by tbaeder on Dec 31 2022, 8:08 AM.
Details Summary We usually access array elements in the same pattern, which uses narrow(). Add an extra opcode for this. This saves us quite some instructions and makes the bytecode easier to read.
Diff Detail Event TimelineThis revision is now accepted and ready to land.Jan 20 2023, 7:49 AM This revision was landed with ongoing or failed builds.Mar 2 2023, 12:45 AM Closed by commit rG6b5afda61c4a: [clang][Interp] Add ArrayElemPtr{,Pop} opcode (authored by tbaeder). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 485777 clang/lib/AST/Interp/ByteCodeExprGen.cpp
clang/lib/AST/Interp/Interp.h
clang/lib/AST/Interp/Opcodes.td
|