Skip to content

Commit

Permalink
Concentrate memref descriptor manipulation logic in one place
Browse files Browse the repository at this point in the history
Memref descriptor is becoming increasingly complex. Memrefs are manipulated by
multiple standard instructions, each of which has a non-trivial lowering to the
LLVM dialect. This leads to verbose code that manipulates the descriptors
exposing the internals of insert/extractelement opreations. Implement a wrapper
class that contains a memref descriptor and provides semantically named methods
that build the primitive IR operations instead.

PiperOrigin-RevId: 280371225
  • Loading branch information
ftynse authored and tensorflower-gardener committed Nov 14, 2019
1 parent d1c99e1 commit ee5c225
Showing 1 changed file with 174 additions and 165 deletions.

0 comments on commit ee5c225

Please sign in to comment.