Skip to content

Commit

Permalink
Update mono to support shuffle for constant inputs (#105299)
Browse files Browse the repository at this point in the history
* Support mono creating xconst in a few more places

* Update mono to support shuffle for constant inputs

* Ensure that arm64 also accelerates shuffle for non-constant inputs

* Ensure OP_XZERO and OP_XONES are recognized as being constant

* Ensure shuffle creates a correct instruction when the fsig doesn't match the necessary parameter count

* Ensure that getting the index for floating-point shuffle is possible

* Ensure the right class handle is passed down to LLVM so overload resolution can function

* Make sure we update the original xconst if we mutate it

* Return a new constant and instead of mutating the existing one

* Insert relevant xcast nodes

* Add some asserts around the ecount

* Ensure we get the right element type

* Ensure we don't create nodes unnecessarily for create_elementwise

* Ensure that create_elementwise still works for other vector sizes

* Ensure indentation of switch cases is correct for Mono
  • Loading branch information
tannergooding authored Jul 25, 2024
1 parent 1d27457 commit 4fbd498
Showing 1 changed file with 585 additions and 43 deletions.
Loading

0 comments on commit 4fbd498

Please sign in to comment.