Displaying 20 results from an estimated 300 matches similar to: "How to write a simple MachineFunctionPass"
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
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
2016 May 06
3
build issue in llvm-clang cross tool chain for arm target
Hello All,
I am building llvm-clang cross tool chain for arm target, after successful
build for Linux host now I am now building toolchain for *arm target*.
However, I am getting below error message which seems to be confusing and
not getting any idea how to resolve this issue.
*Command :*
#CC='clang' CXX='clang++' cmake -G Ninja /home/iiita/crossbuild/llvm
2016 May 05
2
LLVM cross compilation for arm target
Hello All,
I am building llvm-clang tool chain for *arm target* by following the steps
from
http://clang.llvm.org/docs/CrossCompilation.html
*However when I tried following cmake command for build tool chain it gives
the error message :*
#CC='clang' CXX='clang++' cmake -G Ninja /home/iiita/llvm-exp/llvm
-DCMAKE_CROSSCOMPILING=True
2016 May 02
3
How to convert assembly code to executable
Hello All,
I have converted c program into assembly code for alpha target using
following commands
clang -emit-llvm matrix.c -c -o matrix.bc
llc -march=alpha matrix.bc -o matrix.s
Now how to convert matrix.s assembly file into executable file of alpha
target?
Any help is appreciated
Thanks in advance !!
Thanks,
Bala
-------------- next part --------------
An HTML attachment was scrubbed...
2010 Jun 15
4
can't seem to register, status unmonitored
Hi everybody,
I am trying to register my softphone(twinkle) on an asterisk server.
Everything seems to be fine.
Here is the output on show registrations in twinkle:
Tue 18:57:51
nikhil: you have the following registrations
<sip:2001 at 172.26.48.208 <sip%3A2001 at 172.26.48.208>>;expires=3013
208 is ip of the asterisk server.
on the server on doing 'sip show peers' , it
2010 Jun 14
2
calling peer from server
Hi everybody,
This is the console output of the asterisk server.
debian-te410*CLI> sip set debug peer 2002
SIP Debugging Enabled for IP: 172.26.48.113:5061
I have a sofphone with user 2002 registered on the server on the ip 113.
I am trying to place a call to the sofphone on this ip. I have written a
simple php script which utilises the exec_dial function inbuilt in
phpagi.php file.
I have
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
2010 Jun 10
1
asterisk registration
Hi all,
I think i understand the problem, actually I have two asterisk server. In
the extension.conf file on one server I have added
exten => 3923903,1,GOTO(s,1,3923903.conf)
which reads the corresponding conf file when ever the extension no. through
PSTN is called and learns the location of inbound.php which contains the IVR
script to be executed.
Now what i want is that through this
2010 Jun 21
1
using call file
HI list-users,
Greetings!!
I have been using call file, i playback my file using *
application:playback*
and once the playback is over the call is disconnected. Is there any way it
can wait and also record the dtmf inputs once the playback is over.
Thanks in advace
Nikhil Kumar
summer intern:simmortel voice technologies
rit2007033
b.tech IT 6th sem
IIIT Allahabad
contact at 9793905858
email:
2010 Jun 22
1
storing DTMF inputs
Thanks a lot Danny.
I have done the part of playing a file by creating a context in my
dialplan. Now I am puzzled as i wish to store the DTMF inputs done by the
users who is listening to the playback. I found there are ways, but some
specific way by which it is not stored in file but conveyed directly to the
asterisk server.
When the call landed up on the softphone, i pressed keys the
2017 Jul 10
2
Problems with registering of ModulePass (with Dependencies)
Hello,
I have created a ModulePass, that now needs LoopInfo information.
The ModulePass registration is taken from [1]. I use clang to directly invoke
it (This is also a hard requirement, because I need the fancy output of clang
warnings/remarks).
The problem is, that the dependency to the LoopInfoWrapperPass does not seem
to work. The error is:
--- snip ---
clang-4.0:
2017 Jun 09
2
Get segfault with ModulePass
Hi,
don't know if this is the right list. Please post a better place,
otherwise.
I'm currently writing a LLVM ModulePass and ran into strange segfaults or
endless loops within LLVM. My main question is, if this is a programming error
or API misuse from me or a LLVM bug?
Here is some minimal code, that triggers the bug:
----------------
class DebugPass : public ModulePass {
public:
2015 Feb 02
4
[Bug 2348] New: allow ssh to connect to a unix domain socket
https://bugzilla.mindrot.org/show_bug.cgi?id=2348
Bug ID: 2348
Summary: allow ssh to connect to a unix domain socket
Product: Portable OpenSSH
Version: -current
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5
Component: ssh
Assignee: unassigned-bugs at
2010 Jun 17
0
writing echo in inbound file
Thanx for the reply.
The reason i wrote echo is, i was running the script on the command line,
and i wanted to see if the particular function is running. Just like i do
debugging in c++. I didn't know that it sends messages to asterisk. But
again i was not able to see any message on asterisk server.
One thing, it must be possible to run the php script file on command line,
since it was the
2010 Jun 17
1
calling machine over sip
Actually my problem is not related to sip.conf and extensions.conf. I have
used only standard files from martin pdf which are given as example.
I am able to call some system connected over LAN, when each has a softphone
and are registered on a asterisk server. But now what i want is instead of
using the softphone I write a function in my file which will be executed
when the call is placed.
In that
2019 Jul 10
2
Looking for an out-of-source "Hello, world" LLVM/Clang pass example
Florian,
On 7/10/19 2:17 PM, Florian Hahn wrote:
> http://www.cs.cornell.edu/~asampson/blog/llvm.html describes how to
> create an out-of-source pass (see 'Let’s Write a Pass’). I think it
> is for LLVM 3.8 though.
Thanks for pointing that out. I had actually recently stumbled across
that page (and the GitHub repository it references,
https://github.com/sampsyo/llvm-pass-skeleton)
2012 Apr 01
2
Learning to Rank : GSoC 2012
Hello all,
This is in reference to "Learning to Rank" Project Idea. [I know, i made
the entry a bit late, but hope you are still in interest to help out]
I am looking for suggestions to help me narrowing down the choices of
algorithms. I had been readily surveying on the referred algorithms for the
purpose of choosing the right one. I am mentioning here some of my doubts
to discuss and
2019 Jul 10
2
Looking for an out-of-source "Hello, world" LLVM/Clang pass example
I'm looking for a "Hello, world" pass example that ideally has all of
the following properties:
1) Complete. That is, it should have functional CMakeLists.txt,
etc. files.
2) Out-of-source. That is, it should build against a binary LLVM
installation.
3) Modern. That is, I don't want to use any deprecated APIs or
CMake macros.
4) Clang-compatible.
2019 May 25
3
llvm pass
Hi list,
I have several questions about LLVM pass.
1) Is building a custom LLVM pass out-of-source not recommended?
The official document only contains instructions about in-source build (http://llvm.org/docs/WritingAnLLVMPass.html <http://llvm.org/docs/WritingAnLLVMPass.html>).
2) opt (ver >= 4) with custom pass libraries does not work as before. When I have a simple custom LLVM pass