Displaying 20 results from an estimated 10000 matches similar to: "[LLVMdev] Does LLVM optimize recursive call?"
2012 Oct 03
0
[LLVMdev] Does LLVM optimize recursive call?
On Tue, Oct 2, 2012 at 11:44 PM, Journeyer J. Joh
<oosaprogrammer at gmail.com> wrote:
> Hi list,
>
> I have a simple question about LLVM.
>
> I learned that we need to use iterations than recursions in C programming.
> That is because recursion is expensive. It can easily consume out all
> the stack given to a program. And the call/return consumes time much
> more.
2012 Oct 03
2
[LLVMdev] Does LLVM optimize recursive call?
Hi David Blaikie and others who might be interested on this
Thank you very much!
#1. Then I'd like to know, to make Clang/LLVM optimize a recursion
into an iteration, how a recursion has to be implemented with any
compiler option? (if the language is C/C++)
Clang uses recursions, especially it uses recursive decent and
operator-precedence parser.
#2. I wonder if this kind of recursion is
2012 Oct 03
0
[LLVMdev] [cfe-dev] Does LLVM optimize recursive call?
Hello David Chisnall, John McCall, David Blaikie and other people who
may concern
> If your teachers are really making this sort of superficial generalization,
> they're doing you a disservice.
This hit my head.
Actually I didn't test the performance of those two, the iteration and
the recursion, at all. And in this field of study, testing is very
much important, I believe.
And
2012 Oct 03
2
[LLVMdev] [cfe-dev] Does LLVM optimize recursive call?
On 3 Oct 2012, at 09:48, John McCall wrote:
> If your teachers are really making this sort of superficial generalization,
> they're doing you a disservice.
I completely agree with John here - we had a case a few years ago where someone spent ages refactoring their algorithm to be iterative and was surprised that it became slower (with the MS compiler). Looking at the assembly, it was
2012 Oct 03
2
[LLVMdev] Does LLVM optimize recursive call?
> From: "Journeyer J. Joh" <oosaprogrammer at gmail.com>
> I have a simple question about LLVM.
>
> I learned that we need to use iterations than recursions in C programming.
> That is because recursion is expensive. It can easily consume out all
> the stack given to a program. And the call/return consumes time much
> more.
>
> But I've read a
2013 Jan 15
0
[LLVMdev] Need some brief explanation about llvm::MemoryBuffer and llvm::SourceMgr
And for this kind of question I think I would better hold in.
There would be more important issue worth on this list.
For this reason I am sorry.
Sincerely
Journeyer
2013/1/15 Journeyer J. Joh <oosaprogrammer at gmail.com>:
> Hi Justin Holewinski,
>
>>> As far as I know, there is not a good way to implement user prompts with the LLVM APIs.
>
> This info helps me a
2013 Jan 15
2
[LLVMdev] Need some brief explanation about llvm::MemoryBuffer and llvm::SourceMgr
Hi Justin Holewinski,
>> As far as I know, there is not a good way to implement user prompts with the LLVM APIs.
This info helps me a lot.
I tried to do a thing that is not possible.
Thank you very much.
Sincerely
Journeyer
2013/1/15 Justin Holewinski <justin.holewinski at gmail.com>:
> Is this for user prompts, or just reading data from stdin? You can use
>
2012 Dec 30
3
[LLVMdev] git repository of the tutorial
Hello,
I just applied changes of LLVM 3.2 and it is tested with LLVM 3.2
downloaded from the LLVM Download Page.
I just worked for master branch only.
The rest of the other branches need to be changed about this also.
This will be done as soon as possible.
(Before I fix this, If you look at the commits for this issue for
master branch, you can easily fix it and test for others also.)
Sorry for
2012 Dec 30
0
[LLVMdev] git repository of the tutorial
> I think that klang should be based on the latest SVN/git version of LLVM.
OK. I am testing it with LLVM 3.2 wait a minute.
-- Journeyer
2012/12/30 Sean Silva <silvas at purdue.edu>:
> On Sat, Dec 29, 2012 at 9:45 PM, Journeyer J. Joh
> <oosaprogrammer at gmail.com> wrote:
>> Klang is tested with LLVM 3.1
>> Header file location is often changed. I guess
2012 Dec 30
2
[LLVMdev] git repository of the tutorial
On Sat, Dec 29, 2012 at 9:45 PM, Journeyer J. Joh
<oosaprogrammer at gmail.com> wrote:
> Klang is tested with LLVM 3.1
> Header file location is often changed. I guess that's why..
I think that klang should be based on the latest SVN/git version of LLVM.
-- Sean Silva
2012 Dec 25
3
[LLVMdev] [cfe-dev] Do you use UML utility programs?
Hi Sean Silva,
Maybe I am the only one who is trying to use UML.
In my team, I am also the only one who draws UML diagrams.
I expected there be someone who use UML like me.
But it's maybe not as your opinion.
Maybe doxygen is enough for majority of people.
Thanks for your reply.
Sincerely
Journeyer J. Joh
2012/12/25 Sean Silva <silvas at purdue.edu>:
> On Mon, Dec 24, 2012 at
2012 Dec 30
3
[LLVMdev] git repository of the tutorial
On Sat, Dec 29, 2012 at 7:30 PM, Journeyer J. Joh
<oosaprogrammer at gmail.com> wrote:
> Hello Peng Yu and List,
>
> I have put toy.cpp into github but it has a form of LLVM project
> makefile infrastructure. So you can build it together with LLVM
> Project source tree.
>
> git://github.com/Journeyer/klang.git
>
> There exist many branches and each branch is for
2012 Dec 30
0
[LLVMdev] git repository of the tutorial
Klang is tested with LLVM 3.1
Header file location is often changed. I guess that's why..
What version of LLVM do you use?
2012/12/30 Peng Yu <pengyu.ut at gmail.com>:
> On Sat, Dec 29, 2012 at 7:30 PM, Journeyer J. Joh
> <oosaprogrammer at gmail.com> wrote:
>> Hello Peng Yu and List,
>>
>> I have put toy.cpp into github but it has a form of LLVM project
2013 Feb 28
0
[LLVMdev] Propose to use rest.vim for vimrc of LLVM
Thanks, Journeyer. I applied the patch with r176235.
In future, you can submit patches to the llvm-commits mailing list. :)
-bw
On Feb 27, 2013, at 9:03 PM, Journeyer J. Joh <oosaprogrammer at gmail.com> wrote:
> Hello list,
>
> I use LLVM's vimrc and found that this setting below is useful when
> editing of reStructuredText file.
>
>
> llvm/utils/vim/vimrc
2013 Feb 28
2
[LLVMdev] Propose to use rest.vim for vimrc of LLVM
Hello list,
I use LLVM's vimrc and found that this setting below is useful when
editing of reStructuredText file.
llvm/utils/vim/vimrc
" Enable syntax highlighting for reStructuredText files. To use, copy
" rest.vim (http://www.vim.org/scripts/script.php?script_id=973)
" to ~/.vim/syntax .
augroup filetype
au! BufRead,BufNewFile *.rst set filetype=rest
augroup END
2013 Jan 13
2
[LLVMdev] [cfe-dev] Do you use UML utility programs?
Oh I see. Thank you. I will study that.
Journeyer
2013/1/13 Sean Silva <silvas at purdue.edu>:
> You can easily collect this information with DTrace on a Mac (or
> Solaris or FreeBSD) without any special LLVM instrumentation.
>
> -- Sean Silva
--
----------------------------------------
Journeyer J. Joh
o o s a p r o g r a m m e r
a t
g m a i l d o t c o m
2012 Dec 30
0
[LLVMdev] git repository of the tutorial
Hello Peng Yu and List,
I have put toy.cpp into github but it has a form of LLVM project
makefile infrastructure. So you can build it together with LLVM
Project source tree.
git://github.com/Journeyer/klang.git
There exist many branches and each branch is for each chapter of Kaleidoscope.
Regards
Journeyer
2012/12/30 Peng Yu <pengyu.ut at gmail.com>:
> Hi,
>
> I'm learning
2012 Dec 24
2
[LLVMdev] Do you use UML utility programs?
Hello list,
I'd like to know if people use UML tool to analyze and/or document LLVM/Clang.
I use StarUML. It's free and very good though it's free.
But I consider using a commercial program. Because the organization I
belong is willing to support for this.
I don't think I will use these tools to write code.
I think I will use these to do a documentation and analyze code.
So the
2012 Jun 21
0
[LLVMdev] Is cross-compiling for ARM on x86 with llvm/Clang possible?
Hi Joerg,
Thank you very much!
I finally found a working command string to cross-compile for ARM on x86.
./clang -v --save-temps -ccc-host-triple arm-none-linux-gnueabi
--sysroot=/home/hum/Documents/Projects/arm_toolchain/arm-2010.09/arm-none-linux-gnueabi/libc
-gcc-toolchain /home/hum/Documents/Projects/arm_toolchain/arm-2010.09
hello.c -o hello
Above works fine! Important options are
2013 Jan 01
1
[LLVMdev] git repository of the tutorial
Hello Peng Yu,
I found the same error on my Macbook Air.
This was my first trying on MacOS X.
Troubleshooting this might take sometime.
Only thing I can say now that klang is tested successfully on Ubuntu with
- LLVM 3.2 official release on LLVM download page
- LLVM svn latest update
Clang compile produces an error message on MacOS X with the LLVM svn
latest update
I am trying to find the