Displaying 1 result from an estimated 1 matches for "d11124".
Did you mean:
11124
2015 Jul 09
2
[LLVMdev] Extracting a splat value from vector instruction.
Hi,
We have a function in IRBuilder.h
Value *CreateVectorSplat(unsigned NumElts, Value *V, const Twine &Name = "") {
..
}
This function creates 2 instructions - "insertelement" and "shuffle" with all-zero mask.
Now I want to add
Value *getSplatValue(Value *Val). This function will try to recognize the pattern - insertelement+shuffle and return the splat value