search for: extractloop

Displaying 12 results from an estimated 12 matches for "extractloop".

2008 Nov 17
1
[LLVMdev] Question about ExtractLoop
Hi, I have a question about ExtractLoop() in CodeExtractor.cpp. The sample code is a simple list traversal, as attached. The generated bitcode (from llvm-gcc -O1) is shown below. -------------------------------------------------------------------------------------------------------------------------------- define i32 @walk(%struct.node...
2012 Jan 12
4
[LLVMdev] Extract Loop Failing
...eas? On Thu, Jan 12, 2012 at 11:44 AM, Ryan Taylor <ryta1203 at gmail.com> wrote: > Is it not a good idea to try and extract loops that have multiple exits? > > > On Thu, Jan 12, 2012 at 10:44 AM, Ryan Taylor <ryta1203 at gmail.com> wrote: > >> I am trying to use ExtractLoop() but I am getting segFaults: >> >> 0 opt 0x00000000008edc2f >> 1 opt 0x00000000008edfda >> 2 libpthread.so.0 0x00007ffe21203c60 >> 3 opt 0x0000000000895ed9 llvm::Value::getName() const + 9 >> 4 LLVMEXITCDFG.so 0x00007ffe2...
2008 Dec 07
2
[LLVMdev] How to extract loop body into a new function?
Hi All, I am having trouble extracting loop body into a new function. The ExtractLoop() or ExtractBasicBlock() extracts the entire loop along with the header into a new function. All I want is to extract the body of the loop into a new function(without the header). Is this possible? Thanks, Mrunal
2012 Jan 12
2
[LLVMdev] Extract Loop Failing
I am trying to use ExtractLoop() but I am getting segFaults: 0 opt 0x00000000008edc2f 1 opt 0x00000000008edfda 2 libpthread.so.0 0x00007ffe21203c60 3 opt 0x0000000000895ed9 llvm::Value::getName() const + 9 4 LLVMEXITCDFG.so 0x00007ffe202b80d7 5 opt 0x00000000006fc6e7 llvm::L...
2012 Jan 12
0
[LLVMdev] Extract Loop Failing
...u, Jan 12, 2012 at 11:44 AM, Ryan Taylor <ryta1203 at gmail.com> wrote: >> Is it not a good idea to try and extract loops that have multiple exits? >> >> >> On Thu, Jan 12, 2012 at 10:44 AM, Ryan Taylor <ryta1203 at gmail.com> wrote: >> I am trying to use ExtractLoop() but I am getting segFaults: >> >> 0 opt 0x00000000008edc2f >> 1 opt 0x00000000008edfda >> 2 libpthread.so.0 0x00007ffe21203c60 >> 3 opt 0x0000000000895ed9 llvm::Value::getName() const + 9 >> 4 LLVMEXITCDFG.so 0x00007ffe...
2012 Jan 12
0
[LLVMdev] Extract Loop Failing
Is it not a good idea to try and extract loops that have multiple exits? On Thu, Jan 12, 2012 at 10:44 AM, Ryan Taylor <ryta1203 at gmail.com> wrote: > I am trying to use ExtractLoop() but I am getting segFaults: > > 0 opt 0x00000000008edc2f > 1 opt 0x00000000008edfda > 2 libpthread.so.0 0x00007ffe21203c60 > 3 opt 0x0000000000895ed9 llvm::Value::getName() const + 9 > 4 LLVMEXITCDFG.so 0x00007ffe202b80d7 > 5 opt...
2008 Dec 07
0
[LLVMdev] How to extract loop body into a new function?
...;mrunal.shah at gatech.edu> To: "llvmdev" <llvmdev at cs.uiuc.edu> Sent: Saturday, December 6, 2008 8:30:33 PM GMT -05:00 US/Canada Eastern Subject: [LLVMdev] How to extract loop body into a new function? Hi All, I am having trouble extracting loop body into a new function. The ExtractLoop() or ExtractBasicBlock() extracts the entire loop along with the header into a new function. All I want is to extract the body of the loop into a new function(without the header). Is this possible? Thanks, Mrunal _______________________________________________ LLVM Developers mailing list LLVMdev...
2008 Nov 20
1
[LLVMdev] Problem in CodeExtractor::severSplitPHINodes()
...rogram): for (gotsp = 1; len = read(fd, buf, MAXBSIZE);){ if (len == -1) { perror(file); exit(1); } // do other stuff } Compiled with llvm-gcc -O1, the loop header has three successors: one to inside the loop, one to outside the loop, and the third to a block that contains exit(1). ExtractLoop() has problem with this this example. Thanks a lot. Jack On Wed, Nov 19, 2008 at 7:41 PM, Devang Patel <dpatel at apple.com> wrote: > > On Nov 19, 2008, at 7:41 AM, Jack Tzu-Han Hung wrote: > > Hi, > > I found a problem in CodeExtractor::severSplitPHINodes() > <...
2008 Dec 07
1
[LLVMdev] How to extract loop body into a new function?
...;mrunal.shah at gatech.edu> To: "llvmdev" <llvmdev at cs.uiuc.edu> Sent: Saturday, December 6, 2008 8:30:33 PM GMT -05:00 US/Canada Eastern Subject: [LLVMdev] How to extract loop body into a new function? Hi All, I am having trouble extracting loop body into a new function. The ExtractLoop() or ExtractBasicBlock() extracts the entire loop along with the header into a new function. All I want is to extract the body of the loop into a new function(without the header). Is this possible? Thanks, Mrunal _______________________________________________ LLVM Developers mailing list LLVMdev...
2012 Jan 12
0
[LLVMdev] Fwd: Extract Loop Failing
...at 11:44 AM, Ryan Taylor <ryta1203 at gmail.com> wrote: > >> Is it not a good idea to try and extract loops that have multiple exits? >> >> >> On Thu, Jan 12, 2012 at 10:44 AM, Ryan Taylor <ryta1203 at gmail.com> wrote: >> >>> I am trying to use ExtractLoop() but I am getting segFaults: >>> >>> 0 opt 0x00000000008edc2f >>> 1 opt 0x00000000008edfda >>> 2 libpthread.so.0 0x00007ffe21203c60 >>> 3 opt 0x0000000000895ed9 llvm::Value::getName() const + 9 >>> 4 LLV...
2008 Nov 20
0
[LLVMdev] Problem in CodeExtractor::severSplitPHINodes()
On Nov 19, 2008, at 7:41 AM, Jack Tzu-Han Hung wrote: > Hi, > > I found a problem in CodeExtractor::severSplitPHINodes() > <CodeExtractor.cpp>. > > The algorithm first separates the header block into two, one > containing only PHI nodes and the other containing the remaining non- > PHI nodes. The variable NewBB holds the pointer to the latter half > block.
2008 Nov 19
2
[LLVMdev] Problem in CodeExtractor::severSplitPHINodes()
Hi, I found a problem in CodeExtractor::severSplitPHINodes() <CodeExtractor.cpp>. The algorithm first separates the header block into two, one containing only PHI nodes and the other containing the remaining non-PHI nodes. The variable NewBB holds the pointer to the latter half block. Later, it tries to update DT information. if (DT) DT->splitBlock(NewBB); In splitBlock, it checks