[PATCH] D26743: Expandload and Compressing store - documentation update

Elena Demikhovsky via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Dec 11 13:38:47 PST 2016


delena marked 3 inline comments as done.
delena added a comment.





================
Comment at: ../docs/LangRef.rst:11901
+
+    ; Load several elements from array B and expand them in a vector.
+    ; The number of loaded elements is equal to the number of '1' elements in the mask.
----------------
mkuper wrote:
> This example is slightly confusing to me, because it's not clear "what happens to Bptr" - we need to advance it to the next iteration by adding the popcount of %mask, right?
> 
> Do we have a good way to represent that right now? It seems like "llvm.ctpop" for a <k x i1> type does the wrong thing (it's basically a nop).
I extended the code to show popcnt operation. Mask should be converted to integer, otherwise llvm.ctpop does not help.


Repository:
  rL LLVM

https://reviews.llvm.org/D26743





More information about the llvm-commits mailing list