[RFC] Dynamic Vector Support (#4200)
Introduce a new concept in the IR that allows a producer to create dynamic vector types. An IR function can now contain global value(s) that represent a dynamic scaling factor, for a given fixed-width vector type. A dynamic type is then created by 'multiplying' the corresponding global value with a fixed-width type. These new types can be used just like the existing types and the type system has a set of hard-coded dynamic types, such as I32X4XN, which the user defined types map onto. The dynamic types are also used explicitly to create dynamic stack slots, which have no set size like their existing counterparts. New IR instructions are added to access these new stack entities. Currently, during codegen, the dynamic scaling factor has to be lowered to a constant so the dynamic slots do eventually have a compile-time known size, as do spill slots. The current lowering for aarch64 just targets Neon, using a dynamic scale of 1. Copyright (c) 2022, Arm Limited.
This commit is contained in:
@@ -1158,9 +1158,6 @@
|
||||
|
||||
;; Helpers for stack-slot addresses ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
(decl abi_stackslot_addr (WritableReg StackSlot Offset32) MInst)
|
||||
(extern constructor abi_stackslot_addr abi_stackslot_addr)
|
||||
|
||||
(decl stack_addr_impl (Type StackSlot Offset32) Reg)
|
||||
(rule (stack_addr_impl ty stack_slot offset)
|
||||
(let ((dst WritableReg (temp_writable_reg ty))
|
||||
|
||||
Reference in New Issue
Block a user