Displaying 20 results from an estimated 35 matches for "deadargumentelimination".
2015 Jun 01
4
[LLVMdev] RFC: liveoncall parameter attribute
TLDR - I have a runtime which expects to be able to inspect certain
arguments to a function even if that argument isn't used within the
callee itself. DeadArgumentElimination doesn't respect this today. I
want to add an argument that records an argument to a call as live even
if the value is known to be not used in the callee.
My use case
-----------------
What my runtime is doing is trying to resolve a symbolic reference to a
function from a call site which ha...
2008 Dec 05
3
[LLVMdev] Build errors on trunk for about a week now.
On Fri, Dec 5, 2008 at 1:58 PM, OvermindDL1 <overminddl1 at gmail.com> wrote:
> On Fri, Dec 5, 2008 at 1:57 PM, OvermindDL1 <overminddl1 at gmail.com> wrote:
>> On Fri, Dec 5, 2008 at 1:52 PM, OvermindDL1 <overminddl1 at gmail.com> wrote:
>>> / * snip */
>>
>> Actually, rebuilding it makes "debug tblgen" fail with the errors at
>> the
2007 Dec 03
1
[LLVMdev] Using Function Passes from Module Passes
Dear All,
I'm having some problems using a function pass from a Module pass. My
code is as follows:
DominatorTree & domTree;
...
Function &F = *I; // I is an interator from using Module::begin()
...
domTree = getAnalysis<DominatorTree>(F);
When I compile this code, I get the following error:
/home/vadve/criswell/src/llvm22/include/llvm/Pass.h: In member function
2014 Oct 07
2
[LLVMdev] Debug Info and MergeFunctions Transform
Hi Stepan,
After discovering several bugs in ArgumentPromotion and
DeadArgumentElimination where llvm::Functions were replaced with similar
functions (with the same name) to transform their type in some way, I
started looking at all calls to llvm::Function::takeName to see if there
were any other debug info quality bugs in similar callers.
One such caller is MergeFunctions, and I don...
2010 Apr 13
0
[LLVMdev] whether these transformations are doable and how?
... can I modify a function to take extra formal parameters? can I update
> all calls of the original function to take extra actual paramters? The
> function might be called across multiple modules. It seems this has to be
> done at both ModulePass and FunctionPass levels.
>
Check out DeadArgumentElimination pass. It does opposite of what you
want, but you'll get an idea.
-
Devang
2014 Oct 07
2
[LLVMdev] Debug Info and DFSan
Hi Peter,
After discovering several bugs in ArgumentPromotion and
DeadArgumentElimination where llvm::Functions were replaced with similar
functions (with the same name) to transform their type in some way, I
started looking at all calls to llvm::Function::takeName to see if there
were any other debug info quality bugs in similar callers.
One such caller is the DataFlowSanitizer, and I...
2010 Apr 15
3
[LLVMdev] whether these transformations are doable and how?
...extra formal parameters? can I update
> > all calls of the original function to take extra actual paramters? The
> > function might be called across multiple modules. It seems this has to
> be
> > done at both ModulePass and FunctionPass levels.
> >
>
> Check out DeadArgumentElimination pass. It does opposite of what you
> want, but you'll get an idea.
>
> -
> Devang
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20100414/f5ca41f7/attachment.html>
2014 Oct 12
2
[LLVMdev] Debug Info and MergeFunctions Transform
...I'll provide you with detailed information. By now you could
> use tests from $LLVM/test/Transforms/MergeFunc/ as examples.
>
> Cheers!
> -Stepan
>
> David Blaikie wrote:
>> Hi Stepan,
>>
>> After discovering several bugs in ArgumentPromotion and
>> DeadArgumentElimination where llvm::Functions were replaced with similar
>> functions (with the same name) to transform their type in some way, I
>> started looking at all calls to llvm::Function::takeName to see if there
>> were any other debug info quality bugs in similar callers.
>>
>>...
2014 Oct 07
2
[LLVMdev] Debug Info and DFSan
On Tue, Oct 7, 2014 at 11:48 AM, Peter Collingbourne <peter at pcc.me.uk>
wrote:
> On Tue, Oct 07, 2014 at 10:04:30AM -0700, David Blaikie wrote:
> > Hi Peter,
> >
> > After discovering several bugs in ArgumentPromotion and
> > DeadArgumentElimination where llvm::Functions were replaced with similar
> > functions (with the same name) to transform their type in some way, I
> > started looking at all calls to llvm::Function::takeName to see if there
> > were any other debug info quality bugs in similar callers.
> >
> >...
2014 Oct 07
2
[LLVMdev] Debug Info and DFSan
...at 11:48 AM, Peter Collingbourne <peter at pcc.me.uk>
>> wrote:
>>
>>> On Tue, Oct 07, 2014 at 10:04:30AM -0700, David Blaikie wrote:
>>> > Hi Peter,
>>> >
>>> > After discovering several bugs in ArgumentPromotion and
>>> > DeadArgumentElimination where llvm::Functions were replaced with
>>> similar
>>> > functions (with the same name) to transform their type in some way, I
>>> > started looking at all calls to llvm::Function::takeName to see if
>>> there
>>> > were any other debug info q...
2013 Oct 22
1
[LLVMdev] Removing function params.
Hi,
I am writing my own passes in LLVM.
I start with a function with various uses of a LLVM IR function
parameter: e.g. paramB.
After running one of my passes, all the uses of the paramB vanish.
How do I do the last step, and remove the paramB from the function
parameters in the LLVM IR?
I want to go from:
function test( int paramA, int paramB)
{ ... }
to:
function test( int paramA)
{ ... }
2018 Apr 13
1
LLVM function parameters
Hi,
When using the LLVM IR builder, I have a situation that might have 5
parameters when building the function nodes and instructions.
Later on, I wish to remove one of the parameters so the same function
now has only 4 parameters. For example, the parameter may not actually
be used by any of the instructions in the function.
How do I remove a parameter from the function?
I am hoping that there
2007 Dec 21
2
[LLVMdev] Interprocedural optimizations in LLVM
Hi Everyone,
Can Someone tell me all the interprocedural optimizations that LLVM 2.1
supports.
Thank You,
Naineet Patel
CSE
IITB
2004 May 01
0
[LLVMdev] opt, llcc, ll++, -O1, -O2, -O3
...years now, but I have a *very* long TODO list. :)
Here are some examples of the header comments:
http://llvm.cs.uiuc.edu/cvsweb/cvsweb.cgi/llvm/lib/Transforms/IPO/ArgumentPromotion.cpp?rev=1.5&content-type=text/x-cvsweb-markup
http://llvm.cs.uiuc.edu/cvsweb/cvsweb.cgi/llvm/lib/Transforms/IPO/DeadArgumentElimination.cpp?rev=1.16&content-type=text/x-cvsweb-markup
http://llvm.cs.uiuc.edu/cvsweb/cvsweb.cgi/llvm/lib/Transforms/Scalar/LICM.cpp?rev=1.59&content-type=text/x-cvsweb-markup
http://llvm.cs.uiuc.edu/cvsweb/cvsweb.cgi/llvm/lib/Transforms/Scalar/Reassociate.cpp?rev=1.30&content-type=text/x-cvswe...
2013 Jan 14
0
[LLVMdev] [cfe-dev] RFC: put commit messages in *-commits subject lines?
...ude/llvm/Support/YAMLTraits.h
lib/Analysis/ValueTracking.cpp lib/MC/ELFObjectWriter.cpp
lib/MC/WinCOFFObjectWriter.cpp lib/Support/APFloat.cpp
lib/Support/DynamicLibrary.cpp lib/Target/R600/AMDGPUSubtarget.h
lib/Target/R600/AMDILDevice.h
lib/Target/R600/AMDILPeepholeOptimizer.cpp
lib/Transforms/IPO/DeadArgumentElimination.cpp (and on and on)
So I assume the new message would be:
[llvm-commits] [llvm] r172358 - Remove redundant 'llvm::' qualifications
Which seems reasonable. (I think the repo prefix is helpful given that
both the Clang and LLVM lists handle mail for multiple repositories
(llvm + compiler-r...
2010 Apr 09
7
[LLVMdev] whether these transformations are doable and how?
Hi folk,
I'm a newbie to llvm, please first forgive my naive questions. I want to
instrument llvm code to do some run-time monitoring work. After reading
some of the llvm documentation, it begins clear to me that I can do the
instrumentation in a transformation pass. There are several things I want
to do in the transformation pass, but I'm not sure whether they are doable
and how to do
2004 May 01
4
[LLVMdev] opt, llcc, ll++, -O1, -O2, -O3
Hi devels,
there are two issues concerning invoking
optimizations:
1.
this document:
http://llvm.cs.uiuc.edu/docs/GettingStarted.html
is very nice, it would be good though to add in a section
An Example Using the LLVM Tool Chain
examples on optimization step.
2.
If i am not wrong there is no tool, which integrates all
steps:
llvmgcc->opt->llc into something like llcc
(and
2012 Jan 06
2
[LLVMdev] How to duplicate a CallInst
Hi,
I have the following piece of code:
%34 = fptosi float %33 to i32
%35 = call i32 @function(i32 %34) nounwind
I would like of know how can I duplicate the statement %35 ? , as follows:
%34 = fptosi float %33 to i32
%35 = call i32 @function(i32 %34) nounwind
*%36 = **call i32 @function(i32 %34) nounwind*
*
*
i.e, two instructions exactly equal.
Using clone, results in badref.
Moreover, how
2014 Oct 07
2
[LLVMdev] Debug Info and DFSan
...>> wrote:
> > >>
> > >>> On Tue, Oct 07, 2014 at 10:04:30AM -0700, David Blaikie wrote:
> > >>> > Hi Peter,
> > >>> >
> > >>> > After discovering several bugs in ArgumentPromotion and
> > >>> > DeadArgumentElimination where llvm::Functions were replaced with
> > >>> similar
> > >>> > functions (with the same name) to transform their type in some
> way, I
> > >>> > started looking at all calls to llvm::Function::takeName to see if
> > >>> there...
2012 Nov 30
2
[LLVMdev] [cfe-dev] RFC: put commit messages in *-commits subject lines?
David Blaikie wrote:
> On Fri, Nov 30, 2012 at 9:43 AM, Sebastian Pop <spop at codeaurora.org> wrote:
> > Hi,
> >
> > Sebastian Pop wrote:
> >> Chris Lattner wrote:
> >> > I'm in favor of it. Of course, the truly awesomest thing would be something like:
> >> >
> >> > [cfe-commits] r167788 - [lib/Analysis] Fix bad CFG