[PATCH] D140805: [clang][Interp] Add ArrayElemPtr{,Pop} opcode

Timm Bäder via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Sat Dec 31 08:08:46 PST 2022


tbaeder created this revision.
tbaeder added reviewers: aaron.ballman, erichkeane, tahonermann, shafik.
Herald added a project: All.
tbaeder requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.

  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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D140805

Files:
  clang/lib/AST/Interp/ByteCodeExprGen.cpp
  clang/lib/AST/Interp/Interp.h
  clang/lib/AST/Interp/Opcodes.td

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140805.485777.patch
Type: text/x-patch
Size: 4949 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221231/96dc0f5e/attachment.bin>


More information about the cfe-commits mailing list