search for: operequiv

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

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 ifChecker::operEquiv(Instruction *I1, Instruction *I...
2013 Jan 08
1
[LLVMdev] LLVM seg fault : dereference an uninitialized pointer Instruction*
...y for *ifsInstrArray[1] the segfault appears. I already checked if ifsInstrArray[1] is not NULL. Please note that the above is only a test for my primary segfault problem. The primary segfault problem is : More precisely, I am trying to check if two instructions are equivalent by using if ( CC->operEquiv(ifsInstrArray[i], ifsInstrArray[j]) ) where CC and operEquiv are defined by me. If extra code is needed, please let me know. The seg fault appears here. I think that the problem is related with the "test problem" defined at the beginning of the question. Can you please tell me how can I...
2013 Jan 10
1
[LLVMdev] LLVM Instruction to ICmpInst conversion
Hello ! I want some piece of advice regarding a LLVM pass. My particular 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 :...