Displaying 5 results from an estimated 5 matches for "createextractel".
2009 Nov 20
1
[LLVMdev] NoFolder class problem
Hi all,
while I was playing a little bit with IRBuilder I ended up with something
like this when included NoFolder.h
/work/llvm/include/llvm/User.h: In member function ‘llvm::Value*
llvm::NoFolder::CreateExtractElement(llvm::Constant*, llvm::Constant*)
const’:
/work/llvm/include/llvm/User.h:48: error: ‘static void* llvm::User::operator
new(size_t)’ is private
/work/llvm/include/llvm/Support/NoFolder.h:177: error: within this context
/work/llvm/include/llvm/Instructions.h:1177: error:
‘llvm::ExtractElementIns...
2007 Dec 17
0
[LLVMdev] Elsa and LLVM and LLVM submissions
...tant>(C))
> + if (Constant *TC = dyn_cast<Constant>(True))
> + if (Constant *FC = dyn_cast<Constant>(False))
> + return ConstantExpr::getSelect(CC, TC, FC);
> + return LLVMBuilder::CreateSelect(C, True, False, Name);
> + }
> +
> + Value *CreateExtractElement(Value *Vec, Value *Idx,
> + const char *Name = "") {
> + if (Constant *VC = dyn_cast<Constant>(Vec))
> + if (Constant *IC = dyn_cast<Constant>(Idx))
> + return ConstantExpr::getExtractElement(VC, IC);
&...
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
2011 Nov 07
1
[LLVMdev] Get a vector value.
Hello
I have a pointer to llvm::Value *,I know its a pointer to some
llvm::CompositeType (vector)
Could you please tell me how can I get a value of specific index in the
vector.
Thank you.
Yakov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20111107/0b475afd/attachment.html>
2015 Jul 28
2
[LLVMdev] RFC: LoopEditor, a high-level loop transform toolkit
...t with a
> vector variant. So the entire main body of the vectorizer would look
> something like this:
>
> struct Delegate : public LoopEditor::Delegate {
> Value *hookCloneInstruction(Instruction *OldI, IRBuilder<> &IRB) {
> if (isControlFlowInst(OldI)) return IRB.CreateExtractElement; // Don't
> vectorize branches
> return createVectorVersionOfInstruction(OldI, VF, IRB); // Defined
> somewhere in LoopVectorize
> }
> };
> BasicBlock *PredBB;
> Delegate D;
> LoopEditor LE(L, DT, SE, LI);
> LoopEditor VectorLE = LE.versionWidenAndInterleav...