search for: patterndc

Displaying 7 results from an estimated 7 matches for "patterndc".

Did you mean: pattern
2012 Dec 17
4
[LLVMdev] BasicBlock back()
Hello, I am a beginner of LLVM. I am trying to move among the instructions of a BasicBlock and I cannot. In this particular example, I try to get the previous instruction of the end instruction. I am trying 2 methods: 1. I have the following sequence of code: bool patternDC::runOnBasicBlock(BasicBlock &BB) { ... if (BB.getTerminator()) { Instruction* current = BB.getTerminator(); errs() << "\n LAST: "<<*current<<"\n"; Instruction* prev = &BB.back(); errs() << "\...
2012 Dec 17
0
[LLVMdev] BasicBlock back()
...I am a beginner of LLVM. I am trying to move among the instructions of > a BasicBlock and I cannot. In this particular example, I try to get > the previous instruction of the end instruction. I am trying 2 methods: > > > > 1. I have the following sequence of code: > > bool patternDC::runOnBasicBlock(BasicBlock &BB) { > ... > if (BB.getTerminator()) > { > Instruction* current = BB.getTerminator(); > errs() << "\n LAST: "<<*current<<"\n"; > > Instruction* prev = &BB.back(); &...
2012 Dec 18
1
[LLVMdev] BasicBlock back()
...; I am a beginner of LLVM. I am trying to move among the instructions of a > BasicBlock and I cannot. In this particular example, I try to get the > previous instruction of the end instruction. I am trying 2 methods: > > > > 1. I have the following sequence of code: > > bool patternDC::runOnBasicBlock(BasicBlock &BB) { > ... > if (BB.getTerminator()) > { > Instruction* current = BB.getTerminator(); > errs() << "\n LAST: "<<*current<<"\n"; > > Instruction* prev = &BB.back(); &...
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(ifsI...
2012 Feb 20
0
[LLVMdev] stack dump
Hi Vahid, I suggest you use a more recent version. The latest version is 3.0. Ciao, Duncan. On 20/02/12 09:27, vahid eslami wrote: > > 0 down vote favorite > <http://stackoverflow.com/questions/9354312/llvm-2-8-dswp-core-dump-linux#> > share [g+] share [fb] share [tw] > > i new in llvm.i just compile google code and got this error. " Stack dump: 0. > Program
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 *...
2012 Feb 20
2
[LLVMdev] stack dump
0 down vote favorite [http://stackoverflow.com/questions/9354312/llvm-2-8-dswp-core-dump-linux#] share [g+] share [fb] share [tw] i new in llvm.i just compile google code and got this error. " Stack dump: 0. Program arguments: opt -load /home/vahid/mywork/llvm-2.8/Release/lib/DSWP.so -dswp obj.o -o out.o 1. Running pass 'Function Pass Manager'