Displaying 5 results from an estimated 5 matches for "edvard_gh".
2012 Jul 25
2
[LLVMdev] regarding opt -indvars
Hello .
opt -indvars pass does not generate canonical induction variable.
(NULL == loop->getCanonicalInductionVariable();)
PLEASE explain why? and how can I fix it?
Thanks in advance,
Edvard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120724/92a28ed5/attachment.html>
2012 Jul 13
4
[LLVMdev] adding new data types to llvm
Hello .
I would like to add new custom data type to llvm C parser, I use LLVM/Clang version 3.1.
Adding new type instructions from llvm.org site are out of date (http://llvm.org/docs/ExtendingLLVM.html#type).
Could you please provide me with guidance?
Thanks in advance,
Edvard
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2012 Jul 24
4
[LLVMdev] loop detection
Hello .
I'm trying to implement FunctionPass for detecting loops in llvm IR.
How can I get <condition> for loop from llvm::Loop object.?
Is there any example?
Thanks in advance,
Edvard
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20120723/85e7f2f9/attachment.html>
2012 Jul 23
0
[LLVMdev] llvm::LoopPass
Hello .
I'm trying to implement LoopPass.
Here is simple code :
class LoopParser: public llvm::LoopPass
{
public:
static char ID;
public:
virtual void getAnalysisUsage(llvm::AnalysisUsage &AU) const
{
AU.addRequiredID(llvm::LoopSimplifyID);
AU.addPreservedID(llvm::LoopSimplifyID);
AU.addRequired<llvm::LoopInfo>();
}
2012 Jul 24
0
[LLVMdev] regarding opt -indvars
Hello .
I ran opt with -indvars options , got wrong result.
This is my example:
test.cc :
int test(int a)
{
for (int i = 2; i < a; ++i) {
a += ;
}
return a;
}
clang -O3 -emit-llvm -S test.cc -o test.ll
opt -indvards -S test.ll -o indvars.ll > /dev/null
indvars.ll :
; ModuleID = 'test.ll'
target datalayout =