This is an archive of the discontinued LLVM Phabricator instance.

[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 Timeline

tbaeder created this revision.Dec 31 2022, 8:08 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 31 2022, 8:08 AM
tbaeder requested review of this revision.Dec 31 2022, 8:08 AM
Herald added a project: Restricted Project. · View Herald TranscriptDec 31 2022, 8:08 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
This revision is now accepted and ready to land.Jan 20 2023, 7:49 AM
shafik accepted this revision.Feb 16 2023, 2:58 PM
This revision was landed with ongoing or failed builds.Mar 2 2023, 12:45 AM
This revision was automatically updated to reflect the committed changes.