search for: koni10

Displaying 20 results from an estimated 20 matches for "koni10".

2013 Sep 12
1
[LLVMdev] (no subject)
...to work on a simple file. Have I done something wrong or am I missing something? Do you have any other suggestion? I really appreciated your help!Thank you in advance, Niko > Date: Thu, 12 Sep 2013 12:35:44 -0500 > Subject: Re: [LLVMdev] (no subject) > From: willdtz at gmail.com > To: koni10 at hotmail.it > CC: llvmdev at cs.uiuc.edu > > To use options like "-time-passes" and "-stats" you need to prefix > them with "-mllvm": > > clang -mllvm -time-passes -O3 test.c -o /dev/null > > Note that I believe you need asserts enabled or...
2012 Oct 23
3
[LLVMdev] precondition suggestion to LLVM
...t;0 && y>0){ ...function codeblock... } { __builtin_unreachable (); } } I can get the optimization without really having a branch jump in the machine code?Thank you again, Niko Zarzani > Date: Mon, 22 Oct 2012 23:41:43 -0400 > From: xi.wang at gmail.com > To: koni10 at hotmail.it > CC: llvmdev at cs.uiuc.edu > Subject: Re: [LLVMdev] precondition suggestion to LLVM > > You may want to check this out: > > http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-October/053924.html > > and also > > http://llvm.org/PR810 > > - xi &g...
2012 Oct 23
0
[LLVMdev] precondition suggestion to LLVM
On Mon, Oct 22, 2012 at 9:33 PM, Niko Zarzani <koni10 at hotmail.it> wrote: > Thank you, it was what I really was searching for :) > > However, I don't know if I well understood. I've find this link in the > second link which seemed what i was looking for: > http://nondot.org/sabre/LLVMNotes/BuiltinUnreachable.txt . > If I...
2013 Oct 07
0
[LLVMdev] Pass sequence
On Oct 5, 2013, at 9:17 PM, Niko Zarzani <koni10 at hotmail.it> wrote: > Hi all, > > I wrote 2 passes and I want to make run llvm run the passes in this order: > -mem2reg -load=…/mypass1.dylib -mypass1 -load=…/mypass2.dylib -mypass2 -O1 -O2 -O3 > > I know I can do this by manually passing them as an argument to opt. >...
2013 Sep 12
0
[LLVMdev] (no subject)
...t;-mllvm": clang -mllvm -time-passes -O3 test.c -o /dev/null Note that I believe you need asserts enabled or some other build configuration for this to work, the timing code is disabled in fully release builds IIRC. Hope this helps! ~Will On Thu, Sep 12, 2013 at 11:50 AM, Niko Zarzani <koni10 at hotmail.it> wrote: > Hi all, > > I was interested in knowing which of the passes spends the most of the time > compiling the dns server BIND. > With the -CC option I selected clang as my compiler and, as I was expecting, > the compilation gave me no problems. > Now I have...
2013 Sep 12
2
[LLVMdev] (no subject)
Hi all, I was interested in knowing which of the passes spends the most of the time compiling the dns server BIND.With the -CC option I selected clang as my compiler and, as I was expecting, the compilation gave me no problems.Now I have a question, is there any way to set an option similiar to "-time-passes" to clang in order to get those information I was interested in?Or do you think
2012 Oct 22
5
[LLVMdev] precondition suggestion to LLVM
Hi all,Is there any way to tell LLVM some additional information about the variables in the code in order to make better optimization?For example, if my function has a certain precondition (such as x>0) then it will be possible to better optimize the code given that information (which the compiler does not know).I am new in this field and I don't know if there are ways to tell the compiler
2012 Oct 23
0
[LLVMdev] precondition suggestion to LLVM
Hi Niko, Do you mean branch prediction, i.e. __builtin_expect [1]? Many compilers support it, I think clang (LLVM's C/C++ frontend) is among them. - D. [1] http://gcc.gnu.org/onlinedocs/gcc/Other-Builtins.html 2012/10/23 Niko Zarzani <koni10 at hotmail.it>: > Hi all, > Is there any way to tell LLVM some additional information about the > variables in the code in order to make better optimization? > For example, if my function has a certain precondition (such as x>0) then it > will be possible to better optimize the...
2013 Oct 06
3
[LLVMdev] Pass sequence
Hi all, I wrote 2 passes and I want to make run llvm run the passes in this order: -mem2reg -load=…/mypass1.dylib -mypass1 -load=…/mypass2.dylib -mypass2 -O1 -O2 -O3 I know I can do this by manually passing them as an argument to opt. Is there any way to force this sequence directly from clang? I am asking this because I am trying to compile a program and I can specify in the ./configure
2012 Oct 23
0
[LLVMdev] precondition suggestion to LLVM
You may want to check this out: http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-October/053924.html and also http://llvm.org/PR810 - xi On 10/22/12 6:05 PM, Niko Zarzani wrote: > Hi all, > Is there any way to tell LLVM some additional information about the > variables in the code in order to make better optimization? > For example, if my function has a certain precondition (such
2013 Feb 11
0
[LLVMdev] metadata as function arguments
On Mon, Feb 11, 2013 at 1:32 PM, Niko Zarzani <koni10 at hotmail.it> wrote: > Hi, I am trying to write a Pass that reads metadata passed as a argument to > a function. > > I have written them by hand in the .s file in the same way of the IR > reference (http://llvm.org/docs/LangRef.html#named-metadata) : > > define i32 @functio...
2013 Feb 11
0
[LLVMdev] metadata as function arguments
That's metadata for arguments to calling a function, you tried to attach metadata to the arguments of a declaration of a function. On 11 February 2013 22:58, Niko Zarzani <koni10 at hotmail.it> wrote: > > > I have written them by hand in the .s file in the same way of the IR > > > reference (http://llvm.org/docs/LangRef.html#named-metadata) : > > > > > > define i32 @function(i32 %argInt, metadata !3) nounwind { > > > > Th...
2013 Nov 22
1
[LLVMdev] LLVM Passes WebPage
Why in the webpage http://llvm.org/docs/Passes.html some of the passes such as "correlated value propagation" or "early cse" are not described? Am I missing some other webpage with these informations? Thank you in advance, Niko -------------- next part -------------- An HTML attachment was scrubbed... URL:
2013 Feb 11
2
[LLVMdev] metadata as function arguments
Hi, I am trying to write a Pass that reads metadata passed as a argument to a function. I have written them by hand in the .s file in the same way of the IR reference (http://llvm.org/docs/LangRef.html#named-metadata) : define i32 @function(i32 %argInt, metadata !3) nounwind {entry: %argInt.addr = alloca i32, align 4 store i32 %argInt, i32* %argInt.addr, align 4 %1 = load i32* %argInt.addr,
2013 Feb 11
2
[LLVMdev] metadata as function arguments
> > I have written them by hand in the .s file in the same way of the IR > > reference (http://llvm.org/docs/LangRef.html#named-metadata) : > > > > define i32 @function(i32 %argInt, metadata !3) nounwind { > > This seems wrong. "metadata" is a type (like i32), and the exclamation > mark is only used to refer to metadata nodes, not to declare functions
2013 Apr 01
1
[LLVMdev] code gen variable mapping
Since variables in the source code are renamed in the IR, I wanted to ask you how and where this mapping is done in Clang.I am interested in converting the variable names in some C strings to the one in the IR.For example if at a certain point of the program I have a string like "x>0" I want to change it in "%x>0" (I already implemented a parser to recognize the
2013 Feb 19
1
[LLVMdev] how to access the identifier table
Hi, I am new with the llvm infrastructure and I am trying to write a Pass that prints the mapping between IR variable names and the names of the variables in the source code.As I can see from the generated IR .s files of simple programs variables preserve the same name. If it is not always the case that names are preserved, there is a way during the execution of a Pass to access a table with the
2013 Apr 24
1
[LLVMdev] running a pass on multiple files
Hi all, I am new with LLVM and I have written a pass able to analyze the code and see if functions in a module are pure. I managed to run the pass with opt -load on a simple (single file) program IR (generated with clang). Now I am willing to run it on a structured program (probably on a benchmark suite like: http://euler.slu.edu/~fritts/mediabench/) to see how many pure function are identified
2013 Nov 22
0
[LLVMdev] constant propagation pass
Hi all, I run opt -O2 -debug-pass=Structure and I looked at the passes used.Is there a reason why O2 is not using the constant propagation pass? Thank you in advance, Niko -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20131122/5020e4f6/attachment.html>
2013 Apr 16
2
[LLVMdev] sccp pass with opt
Hi all, I am trying to see how single llvm optimizations work by running them one by one with opt and looking how the IR changes.Since I was interested in seeing how constant propagation was working I tried to run opt on the Sparse Conditional Constant Propagation, however by passing as argument -S -sccp -die it does not change anything in the output IR code. I attached the file with the source