search for: memset_patternx

Displaying 1 result from an estimated 1 matches for "memset_patternx".

Did you mean: memset_pattern
2016 Nov 10
5
array fill idioms
I am asking for some collective wisdom/guidance. What sort of IR construct should one use to implement filling each element in an array (or vector) with the same value? In C++, this might arise in "std:fill" or "std:fill_n", when the element values in the vector are identical. In the D language, one can fill an array or a slice of an array by an assignment, e.g.