Add IR ops and helpers to make struct arraysnightly-2021.03.18
commit6dda63a545a8402af7aef574dda2b03917d0cfa2
authorShaunak Kishore <kshaunak@fb.com>
Thu, 18 Mar 2021 01:09:45 +0000 (17 18:09 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Thu, 18 Mar 2021 01:11:52 +0000 (17 18:11 -0700)
tree32d44db61a1dd2be3a9dd186d1af932903e3e350
parent01d0f4127e80831765b410fc4000b3512212a771
Add IR ops and helpers to make struct arrays

Summary:
Add an IR op to allocate and return a new struct array with a given layout.

In the future we may want some variant of AllocStructDict for bespoke structs, but it's not needed right now.

Reviewed By: colavitam

Differential Revision: D27132096

fbshipit-source-id: ad341dfa48690b34b2a855f990009fe93514f110
hphp/doc/ir.specification
hphp/runtime/base/bespoke/struct-array.cpp
hphp/runtime/base/bespoke/struct-array.h
hphp/runtime/vm/jit/dce.cpp
hphp/runtime/vm/jit/extra-data.cpp
hphp/runtime/vm/jit/extra-data.h
hphp/runtime/vm/jit/ir-opcode.cpp
hphp/runtime/vm/jit/irlower-bespoke.cpp
hphp/runtime/vm/jit/memory-effects.cpp