Displaying 20 results from an estimated 41 matches for "xli3".
2002 Oct 31
1
[LLVMdev] problems with llvmgcc
Dear Prof. Adve,
Now I can use llvmgcc to compile a .c file into .bc file. But I still have
trouble simply run the .bc code. Below is the sequence I got when I tried.
I really don't know what's going on here. Please let me know how can I fix
it.
Thanks,
xiaodong
xli3|csil-suna48|~/cs426|[13]% llvmgcc scalarize.c -o scalarize
xli3|csil-suna48|~/cs426|[14]% scalarize
Cannot load value of type void!
Cannot load value of type void!
testSimple: 0
Cannot load value of type void!
Cannot load value of type void!
Cannot load value of type void!
Cannot load value of type...
2002 Oct 30
2
[LLVMdev] problems with llvmgcc
Thanks, Chris,
Below is the output of 'llvmgcc he.c -v'
xli3|csil-suna27|~/cs426|[35]% llvmgcc he.c -v
Reading specs from
/usr/dcs/projects/cs426/Software/gcc_install/bin/../lib/gcc-lib/llvm/3.1/specs
Configured with: /home/vadve/lattner/cvs/gcc/configure
--srcdir=/home/vadve/lattner/cvs/gcc
--prefix=/home/vadve/lattner/cvs/gcc_install_sparc --target=llvm
--...
2002 Oct 29
2
[LLVMdev] problems with llvmgcc
Dear llvm,
I just tried to compile a simple file hello.c. But each time I used
llvmgcc hello.c, it gave me the following error:
xli3|csil-suna33|~/cs426|[13]% llvmgcc hello.c
as: error opening '/var/tmp//ccapglpE.o': file exists!
Use -f command line argument to force output
I really got confused. Could you please let me know what's wrong?
thanks,
Jerry
2002 Sep 29
1
[LLVMdev] modify instructions
...w if there is anything wrong with simple
deletion? Why can we create illegal LLVM?
Thanks,
xiaodong
---- Original message ----
>Date: Thu, 26 Sep 2002 10:50:00 -0500
>From: "Vikram S. Adve" <vadve at cs.uiuc.edu>
>Subject: RE: [LLVMdev] modify instructions
>To: <xli3 at uiuc.edu>, <llvmdev at cs.uiuc.edu>
>
>The simplest way is to create a new instruction and use
replaceAllUsesWith
>on the old one.
>
>Think about a simple way to get rid of the old one (without
producing
>illegal LLVM as the output of your phase).
>
>--Vikram
>...
2002 Nov 01
2
[LLVMdev] totally lost
Dear LLVM:
I wrote a small testcase and I can compiler and run it with gcc, But with
llvm, I got weird error like the following. I really don't know what's
going on. Could you explain? Thanks a lot -Jerry
Error Message:
xli3|csil-suna38|~/mp2|[25]% llvmgcc testcase3.c
testcase3.c: In function `init':
testcase3.c:5: warning: cast to pointer from integer of different size
/usr/dcs/projects/cs426/Software/gcc_install/bin/../lib/gcc-lib/llvm/3.1/as:
/var/tmp//cc7nkKdc.s:428: Redefinition of value named 'reg213'...
2002 Nov 11
1
[LLVMdev] DSGraph questions
...9;t update my cvs tree correctly. Could you let
me know how to update my CVS tree? Or there is a problem at somewhere
else?
Thanks,
xiaodong
On Sun, 10 Nov 2002, Vikram Adve wrote:
> I'll try to answer these because Chris is really busy this week.
>
>
> > From: Xiaodong Li <xli3 at santoor.cs.uiuc.edu>
> > Subject: [LLVMdev] DSGraph questions
> > Sender: llvmdev-admin at cs.uiuc.edu
> > Date: Sun, 10 Nov 2002 11:25:53 -0600 (CST)
> >
> > 1. What is the difference between DSNodeHandle and DSNode? What do the
> > functions getLink() and...
2002 Sep 17
3
[LLVMdev] questions
Sorry I got really overwhelmed by so many classes and member
functions in LLVM. So would you please clarify some problems
I have?
1. If I see this instruction in the function.
%S.i = alloca %struct.SimpleStruct
Suppose SimpleStruct is as following:
struct.SimpleStruct = type { int, double }
When I read the instruction, how can I know the type of
simplstruct, should I use 'getType'
2002 Oct 29
1
[LLVMdev] something is wrong
When I tried to run the previous .bc code with lli, I got the following
errors:
xli3|csil-suna33|~/cs426|[48]% lli he2.bc
Unresolvable reference found: <long>:1!
Unresolvable reference found: <long>:1!
Unresolvable reference found: <long>:2!
Error parsing 'he2.bc': No module loaded: Error resolving method values!
So right now, I cannot do anything. Could...
2002 Nov 14
1
[LLVMdev] problem checking out llvm
When I check out llvm this morning. I got this error, so I couldn't check
out. Looks like the disk is full.. Please let me know how to fix this
problem.
Thanks,
xiaodong
xli3|csil-suna33|/usr/dcs/projects/cs426/xli3/llvm|[10]% cvs update
cvs update: Updating .
? gnumake.out
cvs update: Updating Support
cvs update: Updating include
cvs update: Updating include/Support
cvs update: cannot close BitSetVector.h: No space left on device
cvs update: could not check out include...
2002 Oct 30
0
[LLVMdev] problems with llvmgcc
...c.edu] On Behalf Of Xiaodong Li
> Sent: Wednesday, October 30, 2002 9:31 AM
> To: Chris Lattner
> Cc: Xiaodong Li; llvmdev at cs.uiuc.edu
> Subject: Re: [LLVMdev] problems with llvmgcc
>
>
> Thanks, Chris,
>
> Below is the output of 'llvmgcc he.c -v'
>
> xli3|csil-suna27|~/cs426|[35]% llvmgcc he.c -v
> Reading specs from
> /usr/dcs/projects/cs426/Software/gcc_install/bin/../lib/gcc-li
> b/llvm/3.1/specs
> Configured with: /home/vadve/lattner/cvs/gcc/configure
> --srcdir=/home/vadve/lattner/cvs/gcc
> --prefix=/home/vadve/lattner/cvs/gc...
2002 Nov 10
3
[LLVMdev] DSGraph questions
1. What is the difference between DSNodeHandle and DSNode? What do the
functions getLink() and getSize() do?
2. In the previous email, you mentioned that we can use
DSNode::getPointerSize() to get the number of links, But I checked the
doxygen documentation, there is no such member for DSNode.
3. Previously I use the following code:
for( df_iterator<DSNode*> I = df_begin(pnode),
2002 Sep 16
1
[LLVMdev] questions about llvm
Hi, I have some basic questions. I'd appreciate if you can
help me with them.
1. In the LLVM programmer manual, section "Finding call sites:
a slightly more complex example", there is such piece of code:
-------------------------------------------------
class OurFunctionPass : public FunctionPass {
public:
OurFunctionPass(): callCounter(0) { }
virtual
2002 Sep 16
0
[LLVMdev] another question
Also sprach xli3 at uiuc.edu:
} In the section expaining "dyn_cast"
} There are following lines of code:
} if (AllocationInst *AI = dyn_cast<AllocationInst>(Val)) {
} ...
} }
} I cannot understand how you take a operand, a value, and cast
} it into a Instruction. Can you expla...
2002 Sep 17
0
[LLVMdev] questions
Also sprach xli3 at uiuc.edu:
} Sorry I got really overwhelmed by so many classes and member
} functions in LLVM. So would you please clarify some problems
} I have?
}
} 1. If I see this instruction in the function.
}
} %S.i = alloca %struct.SimpleStruct
}
} Suppose SimpleStruct is as following:
} struct.Simple...
2002 Oct 29
0
[LLVMdev] problems with llvmgcc
> I just tried to compile a simple file hello.c. But each time I used
> llvmgcc hello.c, it gave me the following error:
>
> xli3|csil-suna33|~/cs426|[13]% llvmgcc hello.c
> as: error opening '/var/tmp//ccapglpE.o': file exists!
> Use -f command line argument to force output
First try doing an 'rm -f /var/tmp/*' and try again. If that still
doesn't work, please post the output of: 'llvmgcc hell...
2002 Nov 01
0
[LLVMdev] problem with llvmgcc and lli
Finally lli and llvmgcc can work under my directory. I wrote the following
simple program and compiled it using gcc and then run it without any
problem. But when I tried to compile it using llvmgcc and lli, llvmgcc
gave me the following error message which I cannot understand:
xli3|csil-suna37|~/cs426|[181]% llvmgcc test.c -o test
test.c: In function `init':
test.c:10: warning: cast to pointer from integer of different size
When I run it using lli, it even gave me the following segmentation fault:
EXCEPTION OCCURRED [Segmentation Fault]:
>#0. int "main"()...
2002 Nov 01
0
[LLVMdev] totally lost
...Nov 2002, Xiaodong Li wrote:
> Dear LLVM:
>
> I wrote a small testcase and I can compiler and run it with gcc, But with
> llvm, I got weird error like the following. I really don't know what's
> going on. Could you explain? Thanks a lot -Jerry
>
> Error Message:
> xli3|csil-suna38|~/mp2|[25]% llvmgcc testcase3.c
> testcase3.c: In function `init':
> testcase3.c:5: warning: cast to pointer from integer of different size
> /usr/dcs/projects/cs426/Software/gcc_install/bin/../lib/gcc-lib/llvm/3.1/as:
> /var/tmp//cc7nkKdc.s:428: Redefinition of value na...
2002 Nov 10
0
[LLVMdev] DSGraph questions
I'll try to answer these because Chris is really busy this week.
> From: Xiaodong Li <xli3 at santoor.cs.uiuc.edu>
> Subject: [LLVMdev] DSGraph questions
> Sender: llvmdev-admin at cs.uiuc.edu
> Date: Sun, 10 Nov 2002 11:25:53 -0600 (CST)
>
> 1. What is the difference between DSNodeHandle and DSNode? What do the
> functions getLink() and getSize() do?
DSNodeHandle...
2002 Sep 26
2
[LLVMdev] modify instructions
Hi, I have a question about the modify of instruction:
Say I want to modify
%a = getelementptr %struct %S, long 0, ubyte 1
into
%a.f0 = getelementptr int* %S.f0, long 0
There are 3 ways I can think of to implement, but I'm not sure
what should I do.
1. I can use new GetElementPtr to create a new instruction and
use ReplaceInstWithInst() function to replace the old one.
2. I can use new
2002 Sep 16
4
[LLVMdev] another question
In the section expaining "dyn_cast"
There are following lines of code:
if (AllocationInst *AI = dyn_cast<AllocationInst>(Val)) {
...
}
I cannot understand how you take a operand, a value, and cast
it into a Instruction. Can you explain it for me?
Another common example is:
// Loop over all of the phi nodes in a basic block
BasicBlock::iterator BBI =