Displaying 20 results from an estimated 4000 matches similar to: "[LLVMdev] using cfrontend-1.6 and llvm-1.7"
2007 Apr 12
2
[LLVMdev] compilation failure on OS X powerpc
The reason I didn't use Xcode 2.4 is because I'm running OS X 10.3.9
(Panther). I have not upgraded the OS to 10.4. Xcode 2.4 requires OS X
10.4, according to Apple's website. Do you know otherwise? I think the
highest Xcode I can get is 1.5.
By the way what does FSF mean?
I also tried compiling llvm with the gcc 3.3 that comes with OS X 10.3,
and it gave the exact same error
2006 Apr 14
2
[LLVMdev] writing transforms newbie question
Hi,
I apologize if this is a duplicate question; I didn't see it previously
on the list. I'm using llvm 1.6 and my setup is as follows. LLVM is
installed at /usr/software/llvm and the cfrontend is installed at
/usr/software/cfrontend.
If I cd to /usr/software/llvm/lib/Transforms/Hello and compile the Hello
transform I have no problems. However, if I copy the Hello directory to
my
2006 Apr 25
1
[LLVMdev] bytecode to c conversion
Is there a conversion tool to convert llvm bytecode into c code?
Regards,
Ryan
--
Ryan M. Lefever [217.333.7231] [http://www.ews.uiuc.edu/~lefever]
2006 May 01
2
[LLVMdev] printf decleration
I am writing a pass where I need to make a function deceleration for
printf. Below is the code I'm trying to use.
-----
bool MyPass::runOnModule(Module &m) {
vector<const Type*> args;
args.push_back(PointerType::get(Type::SByteTy));
Function* f = m.getOrInsertFunction("printf",
FunctionType::get(Type::IntTy, args, true));
-----
When I insert a call
2006 May 01
0
[LLVMdev] printf decleration
Ok, I think I figured it out. I talked to someone, and we figured out
that when I make a call to printf with a constant string, I need to make
a global variable and use getElementPtr to reference it. The modified
call for accessing the printf is:
/* m is Module*, f is Function*, i is Instruction* */
Constant* constStr = ConstantArray::get("test\n");
GlobalVariable* gv =
2007 Feb 22
1
[LLVMdev] opt -verify
I think I misread the doxygen. verifyFunction & verifyModule return
false if no errors are detected. However, my question now becomes why
does the code produced by my transform pass verification, but it causes
an assertion failure in the byte reader when it (the code produced by my
transform) is passed to another invocation of opt?
Ryan M. Lefever wrote:
> I also tried iterating
2006 Apr 25
3
[LLVMdev] src to src conversion
I am trying to use LLVM as a source to source C compiler. I use
llvm-gcc to convert file.c->file.bc. Then I use opt to run my own
compiler passes to convert file.bc->file.opt.bc. Then I use llc to
convert file.opt.bc->file.opt.c. Now, I want to use normal gcc to
compile file.opt.c into an executable. However, I'm getting the
following errors:
test.opt.c:89: warning:
2006 May 08
1
[LLVMdev] llvm and glibc
When I use LLVM to translate bytecode to C, it seems to stick its own
definitions of several glibc calls like strcpy, strcmp, etc, but not
others like printf. Is this because strcpy and strcmp have been
compiled with llvm and printf has not?
Regards,
Ryan
--
Ryan M. Lefever [217.333.7231] [http://www.ews.uiuc.edu/~lefever]
2007 Apr 06
0
[LLVMdev] llc assertion failure
On Fri, 2007-04-06 at 14:27 -0500, Ryan M. Lefever wrote:
> Is a PR a bug report on the bugzilla database?
Yes, so named because of the URL translation. I.e. http://llvm.org/PR123
takes you to bugzilla bug 123. PR == Problem Report.
> I am also running
> bugpoint to see if that yields anything.
Okay, good. That might turn up something useful. If you suspect its a
bug, please file
2005 Jun 13
3
[LLVMdev] problem compiling the cfrontend on Linux/PPC
Hi,
When compiling the cfrontend for Linux/PPC architecture on a powermac G5, i got
the following error :
-------------------------------Compilation error listing
if [ -f stmp-dirs ]; then true; else touch stmp-dirs; fi
make
GCC_FOR_TARGET="/usr/local/home/cyrille/project/llvm/cfrontend/build/gcc/xgcc
-B/usr/local/home/cyrille/project/llvm/cfrontend/build/gcc/
2006 Apr 18
2
[LLVMdev] creating a project from sample project
Thank you for the response. I guess the only thing that is confusing is
that the LLVM documentation, at http://llvm.org/docs/Projects.html under
the "Create a Project from the Sample Project" heading, indicates that
(1) you can place your project *anywhere* you want, and (2) that you are
supposed to use the AutoRegen.sh script as is. However, that seems not
to be the case.
The
2007 Apr 06
2
[LLVMdev] llc assertion failure
Is a PR a bug report on the bugzilla database? I am also running
bugpoint to see if that yields anything.
Reid Spencer wrote:
> Hi Ryan,
>
> On Fri, 2007-04-06 at 13:34 -0500, Ryan M. Lefever wrote:
>
>>I am running the following llvm-ld command to produce native code:
>>
>>llvm-ld -native -o code.exe code.bc -lm
>>
>>However, I am getting the
2005 Jun 13
0
[LLVMdev] problem compiling the cfrontend on Linux/PPC
Cyrille Mescam wrote:
> Hi,
>
>
> When compiling the cfrontend for Linux/PPC architecture on a powermac
> G5, i got
> the following error :
I hate to ask a silly question, but are you using "make bootstrap" to
build the cfrontend? Your output looks like gccas is being given a
native code assembly language file to parse, and I seem to recall that
that happens if
2007 Apr 10
0
[LLVMdev] cvs opt broken?
This has been reported.
http://llvm.org/bugs/show_bug.cgi?id=1317
On 4/10/07, Ryan M. Lefever <lefever at crhc.uiuc.edu> wrote:
>
> I checked out llvm from cvs & llvm-gcc from svn last night and again
> tonight. Each time they compiled and installed fine. After installing
> them, I recompiled compiler transforms I had written for opt. opt seems
> to load the my
2007 Aug 15
0
[LLVMdev] c const
I don't follow what you mean - gcc doesn't ignore const and llvm
doesn't deviate from gcc nor from the relevant language standards.
Note that if you declare a global as const that we do capture this in
the ir - what specifically do you want? Please provide an example.
-Chris
http://nondot.org/sabre
http://llvm.org
On Aug 14, 2007, at 11:58 PM, "Ryan M. Lefever"
2005 Jun 13
2
[LLVMdev] problem compiling the cfrontend on Linux/PPC
> Okay, I took a closer look at your output.
>
> I was correct in that gccas is attempting to assemble a native PPC
> assembly language file. However, this appears to be happening because
> the assembly file is generated by the GCC Makefiles for libgcc2 (in
> llvm-gcc/gcc/config/rs6000/t-ppccomm, I think).
>
> The first thing I would try is Marco's suggestion: add
2004 Oct 04
1
[LLVMdev] cfrontend-1.3.source: Compilation error
This is a forward of a question from the SourceForge LLVM forum. If
anyone has experience with Cygwin and building the C front-end there,
please reply and CC Alex.
--- Post by Alex Vinokur below ---
===============
Windows 2000
GNU gcc 3.3.3 (cygwin special)
===============
./configure
./make
I have got compilation error
-------------------------------
make[1]: Entering directory
2007 Mar 06
1
[LLVMdev] using dsa
How do I acquire that version of DSA that you've updated to mainline
cvs? Do I still check out llvm-poolalloc, or is there a way to only
check out DSA?
Patrick Meredith wrote:
> I updated dsa to mainline cvs. Poolalloc is broken, however.
>
> On Mar 6, 2007, at 3:39 AM, Ryan M. Lefever wrote:
>
>> What versions of llvm and llvm-poolalloc should I check out of cvs, in
2007 Aug 15
3
[LLVMdev] c const
I don't mean to be a pain, but I was thinking about this a bit more.
Does gcc ignore the const keyword? If not, why has LLVM chosen to
deviate from gcc with respect to the const keyword? If so, then why do
we bother using const in LLVM API code? I'm just curious and wanted to
understand the thinking behind not preserving const.
Thanks,
Ryan
Chris Lattner wrote:
> This property
2005 Aug 08
2
[LLVMdev] cfrontend building
Am Montag, 8. August 2005 18:12 schrieb Reid Spencer:
> Stephan,
>
> I've seen this before. It happens when you do "make bootstrap" in llvm-gcc.
> While "make bootstrap" is the correct way to build GCC, its not the correct
> way to build llvm-gcc.
>
> Based on my experience with this, I suggest you completely erase your build
> tree and then follow