search for: ifchecker

Displaying 3 results from an estimated 3 matches for "ifchecker".

Did you mean: checker
2012 Dec 21
0
[LLVMdev] llvm segfault Instruction::getOpcode
Hello, I get a segfault and I cannot find the reason. The main computation is done in " `struct patternDC : public FunctionPass` " but I also have class ifChecker { public: virtual bool operEquiv(Instruction *I1, Instruction *I2); }; I have in bool patternDC::runOnFunction(Function &F) { ... ifChecker* CC=new ifChecker(); if ( CC->operEquiv(ifsInstrArray[i], ifsInstrArray[j]) ) ... and bool ifCheck...
2013 Jan 08
1
[LLVMdev] LLVM seg fault : dereference an uninitialized pointer Instruction*
...ion. Can you please tell me how can I initialize the ifsInstrArray array? And for its elements I should use the constructor of Instruction* (I cannot find it in Instruction.h)? I cannot initialize the elements by assigning NULL. Thank you for your answer ! PS: i,j are boundary-ok in my for loops; ifChecker* CC=new ifChecker(); in ifChecker class there is: virtual bool operEquiv(Instruction *I1, Instruction *I2); -- Best regards, Alexandru Ionut Diaconescu -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/2013010...
2013 Jan 10
1
[LLVMdev] LLVM Instruction to ICmpInst conversion
...ular problem is: There is a method bool patternDC::runOnFunction(Function &F) { ... if ( CC->operEquiv(icmpInstrArray[i], icmpInstrArray[j]) ) {...} ... } having the array elements of type Instruction* : http://llvm.org/doxygen/classllvm_1_1Instruction.html The called method is bool ifChecker::operEquiv(Instruction *I1, Instruction *I2) { ... } BUT I want to use the methods from class ICmpInst : clasa http://llvm.org/doxygen/classllvm_1_1ICmpInst.html inside operEquiv. I cannot do something like ICmpInst** II1 = dyn_cast<ICmpInst*>(I1); (a kind of instanceOf() from Java), havi...