Displaying 20 results from an estimated 1000 matches similar to: "[LLVMdev] Symbol not found in opt when using own pass"
2009 Apr 07
0
[LLVMdev] Symbol not found in opt when using own pass
James Stanier wrote:
> Hi everyone,
>
> I have a terrible feeling I'm doing something really silly here, but I can't
> seem to solve the problem after a day of trying now. I'm currently writing
> my own pass which I am running by loading it into the opt tool. Everything I
> had written in the pass so far had worked, until I started declaring an
> #include of some
2010 Mar 16
1
[LLVMdev] Seeking advice on Structural Analysis pass
Hi Trevor,
I just studied your diagrams -- I *think* that the "control tree" of
structural analysis is not same as the "control flow tree" from your own
Java work. However, as you understand your work more than I do, I present
you with some fancy coloured diagrams that I drew that might help you (and
others!) understand what structural analysis does a bit better than the
2010 Mar 13
2
[LLVMdev] Seeking advice on Structural Analysis pass
Hi folks,
A few months back I finished writing and testing a pass which implements
"structural analysis" as described originally by Sharir in 1980 ("Structural
analysis: A new approach to flow analysis in optimizing compilers") and more
recently by Muchnick in Advanced Compiler Design and Implementation. It
analyses the CFG and recognises specific region schema, such as
2010 Mar 21
0
[LLVMdev] Seeking advice on Structural Analysis pass
On 03/16/2010 05:02 PM, James Stanier wrote:
>
> Hi Trevor,
>
> I just studied your diagrams -- I *think* that the "control tree" of
> structural analysis is not same as the "control flow tree" from your own
> Java work. However, as you understand your work more than I do, I present
> you with some fancy coloured diagrams that I drew that might help you
2010 Mar 15
1
[LLVMdev] Seeking advice on Structural Analysis pass
On Mar 13, 2010, at 11:54 AM, James Stanier wrote:
> It
> analyses the CFG and recognises specific region schema, such as if-
> then,
> if-then-else, while-loop, etc., and builds a "control tree" which
> represents
> the hierarchical structure of the input program.
I am not sure if my definition of a control flow tree is the same as
yours, but if it is, I am very
2010 Mar 14
1
[LLVMdev] Seeking advice on Structural Analysis pass
On 03/13/2010 08:54 PM, James Stanier wrote:
>
> Hi folks,
Hi James,
I have also been working on such a pass for the last couple of month.
The pass itself is finished and ether has written some further LLVM
support implementing a RegionPass class, that can be used to implement
region passes that work like the existing LoopPasses today, but use a
region instead of a loop or function as
2010 Mar 19
1
[LLVMdev] Seeking advice on Structural Analysis pass
On 03/15/2010 05:51 PM, James Stanier wrote:
>
> Hi Tobias,
Hi,
>
> Thanks for getting back to me. I have just had a peek at the documentation
> for your region pass, and it looks really cool, and thanks also for the
> pointers to the literature.
>
> If you want an overview of how structural analysis works, some of the pages
> from Muchnick's textbook are available
2009 Apr 15
7
[LLVMdev] Accessing instruction/operand names
Hello everyone,
I'm currently constructing a graph from LLVM bitcode, and I have a question
about accessing the names of the variables shown in the .ll assembly file,
assuming it's possible...
For example, with
%2 = load i32* %x_addr, align 4 ; <i32> [#uses=1]
I can retrieve the opcodeName() from the Instruction object, which is
"load". I can also access the operand
2005 Oct 27
1
Problems with source() function
Hello list members!
I'm trying to enter some data in an R session using source() function
with an URL as argument. The data source is a PHP script located in an
apache web server and the data is a long list generated on-the-fly,
these are the initial lines:
groups<-list()
2009 Apr 15
0
[LLVMdev] Accessing instruction/operand names
The other repliers have been right that you probably want to use
Value*s rather than string names in constructing your dependency
graph, but I wanted to clear up a second possible point of confusion.
When you see %2 in the assembly, that's an indication that the
instruction's name is empty. That is, value->getName() == "". As far
as I know, llvm-dis just generates numbers in
2009 Jun 30
2
[LLVMdev] Irreducibility and the -simplifycfg flag
Hi everyone,
I'm currently trying to run a study on irreducibility of C programs, and
I've implemented structural analysis (original paper by Sharir, algorithm in
Muchnick's book) as an LLVM pass. When my implementation becomes a bit less
buggy I'll certainly look into including it in the LLVM project.
As a test for the algorithm I've been producing LLVM bitcode for C files
2009 Apr 15
0
[LLVMdev] Accessing instruction/operand names
James Stanier wrote:
> Hello everyone,
>
> I'm currently constructing a graph from LLVM bitcode, and I have a question
> about accessing the names of the variables shown in the .ll assembly file,
> assuming it's possible...
>
> For example, with
>
> %2 = load i32* %x_addr, align 4 ; <i32> [#uses=1]
>
> I can retrieve the opcodeName() from the
2009 Mar 25
2
[LLVMdev] Rolling my own LLVM assembly language parser
Thank you both for your answers.
The only reason I was interested in not using the built-in parsing library
was that it would give me more flexibility over the language I program in,
but if it means brushing up on my C++ then this isn't too much of a problem
either.
With regards to using the in-memory LLVM, that's also a good approach.
However, I was thinking of structuring my thesis
2009 Mar 27
3
[LLVMdev] Shared objects not being built on OS X
Hi again everyone...
After following the "Writing an LLVM Pass" tutorial using LLVM 2.5, there is
a part that states that:
"This makefile specifies that all of the .cpp files in the current directory
are to be compiled and linked together into a Debug/lib/Hello.so shared
object that can be dynamically loaded by the opt or bugpoint tools via their
-load options."
2012 Oct 22
5
[LLVMdev] dyld: lazy symbol binding failed: fast lazy bind offset out of range
Jack,
I looks like the code is calling dlopen() on LLVMPolly.so and it or something it links against has an initializer. The initialer is run before dlopen() returns and the crash is in the initializer. The message:
dyld: fast lazy bind offset out of range (53437, max=7640) in image /sw/lib/gcc4.7/libexec/gcc/x86_64-apple-darwin12.2.0/4.7.2/cc1
means the initializer called something which
2010 Apr 26
3
[LLVMdev] r102300 breaks Obj-C codegen on Darwin x86
After commit 102300, any obj-c software compiled with clang crashes at launch time with the following stack trace.
Reverting this specific commit fix the issue.
------------------------------------------------------------------------------------------------
Date/Time: 2010-04-26 10:07:01.630 +0200
OS Version: Mac OS X 10.6.3 (10D573)
Report Version: 6
Interval Since Last Report:
2012 Oct 23
0
[LLVMdev] dyld: lazy symbol binding failed: fast lazy bind offset out of range
On Oct 23, 2012, at 12:50 PM, Jack Howarth wrote:
> On Mon, Oct 22, 2012 at 11:40:32AM -0700, Nick Kledzik wrote:
>>
>> On Oct 22, 2012, at 11:34 AM, Jack Howarth wrote:
>>
>>> Nick,
>>> I have uploaded the full walk with 'set env DYLD_PRINT_INITIALIZERS'. It didn't seem very informative
>>> as the dyld error occurs right after...
2012 Oct 23
1
[LLVMdev] dyld: lazy symbol binding failed: fast lazy bind offset out of range
On Mon, Oct 22, 2012 at 11:40:32AM -0700, Nick Kledzik wrote:
>
> On Oct 22, 2012, at 11:34 AM, Jack Howarth wrote:
>
> > Nick,
> > I have uploaded the full walk with 'set env DYLD_PRINT_INITIALIZERS'. It didn't seem very informative
> > as the dyld error occurs right after...
> >
> > (gdb)
> >
2010 Apr 26
0
[LLVMdev] r102300 breaks Obj-C codegen on Darwin x86
I managed to build a reduced test case:
================== foo.m ==================
#include <Foundation/Foundation.h>
@interface BaseNode : NSObject <NSCoding, NSCopying> { }
@end
@implementation BaseNode
@end
int main(int argc, char **argv) {
return 0;
}
==========================================
# clang -o foo -arch i386 -framework Foundation foo.m
foo.m:8:1: warning:
2011 Sep 28
1
Custom rpms failing
I have managed to build i386 rpms for CentOS, based on the 3.2.3 SRPM,
but they don't work:
# rpm -Uhv glusterfs-core-3.2.3-1.i386.rpm
glusterfs-fuse-3.2.3-1.i386.rpm glusterfs-rdma-3.2.3-1.i386.rpm
Preparing... ########################################### [100%]
1:glusterfs-core ########################################### [ 33%]
glusterd: error while loading shared