Displaying 20 results from an estimated 10000 matches similar to: "Need help on how to write MachineFunctionPass"
2016 Feb 27
1
Need help on how to write MachineFunctionPass
Deer All,
I wanted to write MachineFunctionPass which needs to be run after global
register allocation pass.
I have read LLVM documentation and blogs and able to write simple pass
which will is invoked through opt command line.
However, I could able to find any blogs or document to explains clear steps
for writing MachineFunctionPass.
Please suggest some documents or blogs which will help me
2016 Mar 01
2
How to write a simple MachineFunctionPass
Hello everyone,
I have written simple LLVM passes, but I cannot able to write a
MachineFunctionPass pass.
I am following the steps form the following link but it is not working:
http://www.gabriel.urdhr.fr/2014/09/26/adding-a-llvm-pass/
Please share the sample MachineFunctionPass code or steps to follow to
write MachineFunctionPass.
Thanks,
Bala
--
Thanks,
Bala
IIITA Allahabad
--------------
2016 Mar 01
0
How to write a simple MachineFunctionPass
First you should learn how to write a pass and then a MachineFunctionPass.
>From LLVM website, you can refer to
http://llvm.org/docs/WritingAnLLVMPass.html
And for outside pass, you can refer to
http://adriansampson.net/blog/llvm.html
It's a great article.
And the author put the source code on Github
<https://github.com/sampsyo/llvm-pass-skeleton>.
2016-03-01 14:36 GMT+08:00
2016 Feb 26
0
Help Required llc runtime error for simple MachineFunctionPass
Hello ,
I have written a very simple MachineFunction Pass that currently does
nothing. It compiles fine but when I try to load it with llc it give me
following error:
llc -optimize-regalloc=0 -load lib/GCRA.dylib -regalloc=gc test/fibo.bc
Pass 'Bundle Machine CFG Edges' is not initialized.
Verify if there is a pass dependency cycle.
What is going wrong here ?
Here is my very simple
2016 Mar 18
2
[GSoC 2016] Need more info on Add a MachineModulePass
*Vivek Pandya*
On Fri, Mar 18, 2016 at 10:03 PM, Quentin Colombet <qcolombet at apple.com>
wrote:
> Hi Vivek,
>
> On Mar 16, 2016, at 1:00 PM, vivek pandya via llvm-dev <
> llvm-dev at lists.llvm.org> wrote:
>
> Hello,
>
> Probably this may be too late to start thinking about this project but I
> think this is particularly useful feature for LLVM.
>
2016 Mar 16
3
[GSoC 2016] Need more info on Add a MachineModulePass
Hello,
Probably this may be too late to start thinking about this project but I
think this is particularly useful feature for LLVM. A quick use I can think
of this is Implementing Inter-procedural Register Allocation ( for Research
purpose ).
I have start looking at the code for MachineFunctionPass, I think currently
MachineModule class is not available ( the project work will include that )
but
2016 Mar 20
2
[GSoC 2016] Need more info on Add a MachineModulePass
On 3/18/16 12:33 PM, Quentin Colombet via llvm-dev wrote:
> Hi Vivek,
>
>> On Mar 16, 2016, at 1:00 PM, vivek pandya via llvm-dev
>> <llvm-dev at lists.llvm.org <mailto:llvm-dev at lists.llvm.org>> wrote:
>>
>> Hello,
>>
>> Probably this may be too late to start thinking about this project
>> but I think this is particularly useful
2016 Feb 26
1
How to write LLVM pass to collect register usage stats
Hi All,
I wanted to collect the register usage stats for the program assigned by
compiler(in other words "how many time each register will be accessed by
the program when it will execute"). How to write LLVM pass which will
analyse the code after LLVM global register allocation pass and output the
stats.
Regards,
-Bala
--
Thanks,
Bala
IIITA Allahabad
-------------- next part
2018 May 07
1
Need guidance to work on NEW PASS managers bugs
Hi Vivek,
can you elaborate why you're looking for a one-size-fits-all solution? What
is the noteworthy benefit over adding a new-pm specific implementation?
Several changes you mention are purely for the benefit of supporting the
legacy PM (which already has a working, tried, and tested solution). E.g.
`getCounterIdForName`, the FIXMEs you mention, and the callbacks. All of
these are
2018 May 06
0
Need guidance to work on NEW PASS managers bugs
Hello all,
After reading OptBisect and DebugCounter related code and playing bit
around it I have following simple design:
- Add a debug counter for opt-bisect. Initilize it against option
-opt-bisect-limit=<limit>.
- DebugCounter is a singleton class so can be accessed by both new and
legacy passmanager.
We may need few more static method like getCounterIdForName(std::string
&Name)
2016 May 15
2
[GSoC 2016] Interprocedural Register Allocation - Introduction and Feedback
> On May 15, 2016, at 12:43 AM, vivek pandya <vivekvpandya at gmail.com> wrote:
>
>
>
> Vivek Pandya
>
>
> On Wed, May 11, 2016 at 9:43 AM, Mehdi Amini <mehdi.amini at apple.com <mailto:mehdi.amini at apple.com>> wrote:
>
>> On May 10, 2016, at 6:06 PM, Hal Finkel <hfinkel at anl.gov <mailto:hfinkel at anl.gov>> wrote:
>>
2018 May 02
0
Need guidance to work on NEW PASS managers bugs
Hi Vivek,
bisect and optnone are certainly low hanging fruit in terms of
implementation. On the other hand they need a cleaner design than they have
now. E.g., OptBisect today is a managed static, which we absolutely should
get rid of. Instead, bisect functionality can be much more cleanly
implemented on top of the debug counters!
While the function call for optnone doesn't strike me as
2016 Mar 20
2
We really need more community involvement with GSoC
Hi,
Indeed, and I think this suggestion will succeed best if the delta between
what community members do now and what they would need to do is small.
Loitering on one extra IRC room is trivial; loading a whole new system just
at the right time is likely to get fewer members.
James
On Sun, 20 Mar 2016 at 14:47, Bruce Hoult <bruce at hoult.org> wrote:
> IRC doesn't archive messages,
2018 May 02
2
Need guidance to work on NEW PASS managers bugs
As a point of clarification, optnone is already being handled by the pass itself in the legacy implementation. The skip[IR unit] functions are provided by the pass base classes, and the attribute is checked there. This happens any time the legacy wrapper is run, no matter how it is run.
Regarding the opt-bisect design, I’m not particularly fond of the managed static either, but I do want to
2016 May 18
2
[GSoC 2016] Introduction - "Enabling Polyhedral Optimizations in Julia"
Thank you Vivek, I posted an according patch on phabricator. I also took
the liberty to change the design a little bit (based on the open projects
page http://llvm.org/OpenProjects.html). But take it with a grain of salt,
I'm no html expert :)
Best regards,
Matthias
Am Dienstag, 10. Mai 2016 19:48:21 UTC+2 schrieb vivek pandya:
>
>
>
> *Vivek Pandya*
>
>
> On Tue, May
2016 Mar 20
2
We really need more community involvement with GSoC
@James
I am not sure in IRC if we can retrieve back the older messages. So
consider Slack as suggestion only.
*Vivek Pandya*
On Sun, Mar 20, 2016 at 6:29 PM, James Molloy <james at jamesmolloy.co.uk>
wrote:
> Hmm. But we already use IRC, we don't already use Slack (as a community).
>
> On Sun, 20 Mar 2016 at 10:57, vivek pandya <vivekvpandya at gmail.com> wrote:
>
2019 Sep 06
1
[PATCH 08/18] virtiofs: Drain all pending requests during ->remove time
On Fri, Sep 06, 2019 at 10:17:05AM -0400, Vivek Goyal wrote:
> On Fri, Sep 06, 2019 at 11:52:10AM +0100, Stefan Hajnoczi wrote:
> > On Thu, Sep 05, 2019 at 03:48:49PM -0400, Vivek Goyal wrote:
> > > +static void virtio_fs_drain_queue(struct virtio_fs_vq *fsvq)
> > > +{
> > > + WARN_ON(fsvq->in_flight < 0);
> > > +
> > > + /* Wait for in
2016 May 28
0
Updating RegMask inline
On Sat, May 28, 2016 at 7:33 AM, Matthias Braun <matze at braunis.de> wrote:
> static void setXXX(MachineInstr &MI, ...) {
> for (MachineOperand &MO : MI.operands()) {
> if (MO.isRegMask())
> MO.setRegMask(...);
> }
> }
>
> Ok this is what Mehdi Amini suggested. I will do that, but just to note
this will add method to MO so this change is not completely
2016 May 28
1
Updating RegMask inline
Sent from my iPhone
> On May 27, 2016, at 7:02 PM, vivek pandya <vivekvpandya at gmail.com> wrote:
>
>
>
>> On Sat, May 28, 2016 at 7:29 AM, Matthias Braun <matze at braunis.de> wrote:
>>
>>> On May 27, 2016, at 6:55 PM, vivek pandya via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>>>
>>>
>>>
>>> On
2016 May 28
2
Updating RegMask inline
static void setXXX(MachineInstr &MI, ...) {
for (MachineOperand &MO : MI.operands()) {
if (MO.isRegMask())
MO.setRegMask(...);
}
}
> On May 27, 2016, at 7:02 PM, vivek pandya via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
>
>
> On Sat, May 28, 2016 at 7:29 AM, Matthias Braun <matze at braunis.de <mailto:matze at braunis.de>> wrote:
>