search for: getintvector

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

2012 Apr 12
0
[LLVMdev] detection of constant diagonal matrix * vector
...imized to a * [2 3] I have implemented this for float. I know that this assumes x * 0 = 0 which is not ieee compliant but i post it here in case it is interesting for someone. on my wish list there is still an option for target independent optimizations to have x * 0 = 0. -Jochen static void getIntVector(Value* value, SmallVector<int, 8>& values) { if (llvm::ConstantVector* constantVector = llvm::dyn_cast<llvm::ConstantVector>(value)) { // get components llvm::SmallVector<llvm::Constant*, 8> elements; constantVector->getVectorElements(e...