742ed6c653e5 — Fabio Krapohl 5 years ago
core.sc: readd vector element accessor using `@`
1 files changed, 3 insertions(+), 0 deletions(-)

M lib/scopes/core.sc
M lib/scopes/core.sc +3 -0
@@ 4376,6 4376,9 @@ inline vector-binary-op-dispatch (symbol
                 `(shufflevector self self mask)
     __unpack = `[(make-unpack-function extractelement)]
     __countof = __countof-aggregate
+    __@ =
+        inline (self index)
+            extractvalue self index
     # dynamic vector type constructor
     type =
         inline "vector.type" (element-type size)