similar to: [LLVMdev] Pass sequence

Displaying 20 results from an estimated 1000 matches similar to: "[LLVMdev] Pass sequence"

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. > > Is there any way to force this sequence
2010 Dec 06
3
[LLVMdev] using bugpoint
I would like to use bugpoint to debug some of my passes. I have read the documentation, but I don't completely understand it. I have a bitcode file X.bc that I transform using the following commands: opt -mypass1 -f -o X.1.bc X.bc // transform with mypass1 llvm-link -f -o X.2.bc X.1.bc support.bc // link with support.bc opt -mypass2 -f -o X.3.bc X.2.bc // transform with mypass2 After
2012 Oct 23
3
[LLVMdev] precondition suggestion to LLVM
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 put around the code block (inside my function with precondition (x>0 && y>0)) a contruct like that that use __builtin_unreachable: int foo(int
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
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 put around the code block (inside my
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
2013 Sep 12
1
[LLVMdev] (no subject)
I tried it on a simple file test.c (as you did) but actually clang does not show me any output. In addition I tried to set the CFLAGS specifying the -mllvm -time-passes options. However I still have anything about the time passes informations in the output and I also get this warning during the build with make:clang: warning: argument unused during compilation: '-mllvm -time-passes'Maybe
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 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 Sep 12
0
[LLVMdev] (no subject)
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 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
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 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 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 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
2013 Apr 16
0
[LLVMdev] sccp pass with opt
This compiler does not have mem-SSA, as far as I know, only few pass can propagate value along memory. You need to promote those local variable into register first before sccp is invoked. e.g1. opt a.ll -basicaa -gvn -sccp -S eg.2. opt a.ll -sroa -sccp -S On 4/16/13 12:37 PM, Niko Zarzani wrote: > Hi all, > > I am trying to see how single llvm optimizations work by running them
2013 Jan 29
1
[LLVMdev] llvm passes under xcode
Hi, I am interested in developing some passes using the Xcode IDE. I create a pass directory with a simple pass in it, add it to the lib/Trasform/ directory, changed and added some CMakeList.txt files and compiled using cmake (cmake -G Xcode). The compilation gives me no errors but then I've found that I have not a Debug+Asserts folder and opt has no option related to my pass...what can I do
2015 Jul 03
3
upsd: ERR ACCESS-DENIED with PowerWalker UPS
Hello, I'm having problems when trying to execute an deep battery test. UPS Model: PowerWalker VI 1000. root at HP-Opreon:/# upscmd PowerWalker at localhost test.battery.start.deep Username (root): admin Password: Unexpected response from upsd: ERR ACCESS-DENIED /etc/hosts.allow: <code> # /etc/hosts.allow: list of hosts that are allowed to access the system. # See
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) : > > > >
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