search for: createshufflevector

Displaying 4 results from an estimated 4 matches for "createshufflevector".

2007 Dec 17
0
[LLVMdev] Elsa and LLVM and LLVM submissions
...; + if (Constant *NC = dyn_cast<Constant>(NewElt)) > + if (Constant *IC = dyn_cast<Constant>(Idx)) > + return ConstantExpr::getInsertElement(VC, NC, IC); > + return LLVMBuilder::CreateInsertElement(Vec, NewElt, Idx, Name); > + } > + > + Value *CreateShuffleVector(Value *V1, Value *V2, Value *Mask, > + const char *Name = "") { > + if (Constant *V1C = dyn_cast<Constant>(V1)) > + if (Constant *V2C = dyn_cast<Constant>(V2)) > + if (Constant *MC = dyn_cast<Constant>(Ma...
2007 Dec 17
2
[LLVMdev] Elsa and LLVM and LLVM submissions
Devang Patel wrote: > On Dec 15, 2007, at 12:15 PM, Richard Pennington wrote: > >> I got the current version of LLVM via svn yesterday and modified my >> code to >> use the LLVMFoldingBuilder. Very nice! >> >> My question is this: I noticed that the folding builder doesn't fold >> some >> operations, e.g. casts. Is there some reason why? If
2012 Apr 12
0
[LLVMdev] detection of constant diagonal matrix * vector
...x); newConst[i] = constant; noShuffle &= index == i; } // check if we made it through if (i == numElements) { Value* newShuffle = noShuffle ? value : Builder->CreateShuffleVector( value, leftShuffle->getOperand(1), ConstantVector::get(newShuffleMask), "shuffle"); return BinaryOperator::CreateFMul(newShuffle, ConstantVector::get(newConst), "mul"); } } } } }
2016 Nov 04
2
[RFC] Supporting ARM's SVE in LLVM
...tMaskValue(Constant *Mask, unsigned i); // [new] Returns true when Result contains the mask value, false otherwise. static bool getMaskValue(Value *Mask, unsigned i, int &Result); ``` Similar changes are made to related interfaces and their users. ### IRBuilder Interface: ```cpp Value *CreateShuffleVector(Value *V1, Value *V2, Value *Mask, const Twine &Name = ""); ``` ### Fixed-Width Behaviour: No change. ### SelectionDAG: See [*ISD::VECTOR\_SHUFFLE\_VAR*](#isdvectorshufflevar). # Constants Scalable vectors of known constants cannot be represented wit...