Displaying 20 results from an estimated 300 matches similar to: "Get instance of CallGraph of a module in the pass"
2015 Dec 08
3
Get root node of CallGraph
Hi,
There is a "Root" private member in CallGraph
<http://llvm.org/docs/doxygen/html/CallGraph_8h_source.html#l00192> class.
But there is no way to get access to that member. How can I do that? I can
get CallGraphNode of "main" method. But I am curious is there more cleaner
way.
Thanks,
Riyad
-------------- next part --------------
An HTML attachment was scrubbed...
2015 Jun 18
2
[LLVMdev] Do all the debug nodes in LLVM IR also compiles to DWARF?
Hi
As the title says, are all the debug nodes of LLVM IR avaialble in DWARF?
If I add a new custom MDNode in LLVM IR, can I expect the debug data will
be available in DWARF in the binary if I compile in debug mode?
Thanks
Riyad
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2015 May 13
2
[LLVMdev] Modifying debug information through llvm pass
Hi All,
I want to change debug information of an llvm instruction so that the
modified debug info is subsequently passed to executable binary. So if I
use "addr2line" utility on the binary, it will return my modified debug
information.
I've tried to change by using the following code snippet:
MDNode *N = Inst->getMetadata("dbg");
DebugLoc Loc =
2017 Nov 30
1
How to count instructions in a function?
Thanks so much John! That works :)
Previously I wrote a pass that inherited from CallGraphWrapperPass and used
its getCallGraph() function within runOnModule() which resulted in
segmentation faults for me. Not sure why that happened, perhaps callgraph
wasn't setup by the time runOnModule() was called internally. If you know
why, kindly enlighten me and perhaps document the behavior for the
2017 Nov 29
2
How to count instructions in a function?
Hello,
I am trying to count IR instructions in a function for static analysis
using llvm pass. In contrast with existing examples, I am trying to include
instruction counts of all the callees of the function.
Counting the instructions of a function is easy using passes, but iterating
through the module's CallGraph is proving to be confusing. I believe I have
to use CallGraphWrapperPass to
2015 Oct 05
2
Adding mem2reg pass to pass manager
Hi,
I want to add "mem2reg" pass similar to this:
PassManager PM;
PM.add(new LoopInfo());
PM.add(new Mem2Reg()); // What's the class name for this pass
I couldn't find the name of corresponding class and header file of mem2reg
pass except "mem2reg.cpp". So how can I add mem2reg pass into my pass
manager?
Thanks,
Riyad
-------------- next part --------------
An
2009 Aug 04
3
matrix
Hi
I have dataset that consists of two columns
AB 0.102
AC -0.002
BA -0.102
BC 0.270
CA 0.002
CB -0.270
I wish to create a matrix so that I can eventually plot the data.
A
B
C
A
1
0.102
-0.002
B
-0.102
1
0.27
C
0.002
-0.27
1
Any help or guidance would be greatly
2015 Jun 08
2
[LLVMdev] Use Callgraph
Hi All,
I tried to use CallGraph in llvm by adding
"AU.addRequired<CallGraph>();" in getAnalysisUsage function.
But it reports an error:
include/llvm/PassAnalysisSupport.h:56:39: error: ‘ID’ is not a member of
‘llvm::CallGraph’
return addRequiredID(PassClass::ID);
How to use it correctly?
Thanks,
Haopeng
2015 Jun 17
2
[LLVMdev] metadata in callgraph
Hi All,
It seems that functions in callgraph remove all metadata info, such as dbg.
Can I keep metadata in callgraph?
Best,
Haopeng
2004 Aug 06
1
i need help...URGENT !!!
thanks.
i'm extremely sorry for the inconvenience, the encoding of files was not done properly. can someone pls. tell me a good windowsd based mp3 encoder for encoding files for bit rates as low as 16 kbps (or less) with 16 khz (or less).
parvez
And Then Thomas Kirk wrote .............
> Hey
>
> On Fri, Mar 16, 2001 at 02:11:54PM +0530, Parvez Lanewala wrote:
>
> >
2004 Aug 06
2
i need help...URGENT !!!
hi,
i have posted earlier a few days back, i apologise for the re-post.
my problem is that the moment i start using mp3 files with lesser bit rate (16kbps) it does not stream properly. it keeps getting stuck in the middle. i can stream continuously with 128 kbps files.
I'm using icecast(1.3.7) with ices(beta 5) in "LAN" on Linux Redhat 6.2.
The same problem occurs also on
2012 Nov 10
3
sample mean, variance and SD
hi
could you help me to solve this issue
Question:
Using command rweibull(100,8,15), simulate n = 100 realizations from
Weibull(8; 15) distribution. Using the simulated sample, compute the sample
mean, variance and standard deviation of these observations.
I am trying like this
sim<-rweibull(100,8,15) # simulated sample
SM<-mean(sim) # simulated sample mean
var(sim) # variance
2015 May 20
3
[LLVMdev] Processing functions in call graph SCC "order" with function-level analyses
So I got very mixed results.
With the CallGraphSCCPass, both `addRequired<DominatorTreeWrapperPass>` and `addRequired<MemoryDependenceAnalysis>` fail at runtime. The LLVM core has just two CallGraphSCCPasses and neither uses neither analyses, so it's hard to find a valid example.
I transformed the pass into a ModulePass, using scc_iterator as shown in CGPassManager to process
2004 Sep 01
2
[LLVMdev] Problem with CVS LLVM build in obj != src dir case
LLVM build without big problems in obj dir == src dir case (for example,
last night tester build)
But I have problem with building CVS version LLVM in obj dir != src dir
case.
======= Finished building ModuleMaker debug executable (without symbols)
=======
gmake[2]: Leaving directory
`/usr/home/wanderer/pkg/build/llvm/obj/examples/ModuleMaker'
gmake[1]: Leaving directory
2004 Nov 24
2
Mbuf errors
Hi All,
Mysql service is going down continously in my system due to lack of memory
space.
I checked the messages log and found the following error message.
All mbuf clusters exhausted, please see tuning(7).
I have no idea about mbuf cluster. Can anyone please help me to fix the issue.
I hope the information below will help you.
Following is the output of top.
last pid: 84718; load
2004 Sep 02
0
[LLVMdev] Problem with CVS LLVM build in obj != src dir case
I resend email with updated (after mass header move) log examples.
> LLVM build without big problems in obj dir == src dir case (for example,
> last night tester build)
> But I have problem with building CVS version LLVM in obj dir != src dir
> case.
>
gmake[1]: Entering directory
`/usr/home/wanderer/pkg/build/llvm/obj/projects'
gmake[2]: Entering directory
2017 Jun 28
3
Building llvm with clang and lld on arm and the llvm arm backend relocation on position independent code
Oh, so it looks like I hit a bit of a wall there :-) I’ll take a look thanks.
That bug talks about R_ARM_THM_CALL which I assume are thumb related.
Will your implementation fix also R_ARM_CALL errors?
> On 28 Jun 2017, at 17:15, Peter Smith <peter.smith at linaro.org> wrote:
>
> Hello Alessandro,
>
> The LLD ARM port doesn't currently support range extension thunks,
2017 Jun 28
2
Building llvm with clang and lld on arm and the llvm arm backend relocation on position independent code
> On 27 Jun 2017, at 13:25, Peter Smith <peter.smith at linaro.org> wrote:
>
> Hello Alessandro,
>
> Despite the statement in the HowToCrossCompileLLVM guide "If you’re
> using Clang as the cross-compiler, there is a problem in the LLVM ARM
> back-end that is producing absolute relocations on
> position-independent code (R_ARM_THM_MOVW_ABS_NC), so for now, you
2017 Jun 28
3
Building llvm with clang and lld on arm and the llvm arm backend relocation on position independent code
I've successfully used Peter's patches to get past those relocation errors.
On 6/28/17, 9:36 AM, "llvm-dev on behalf of Peter Smith via llvm-dev" <llvm-dev-bounces at lists.llvm.org on behalf of llvm-dev at lists.llvm.org> wrote:
Yes it should cover the following relocations:
R_ARM_CALL (ARM BL/BLX)
R_ARM_JUMP24 (ARM B)
R_ARM_THM_CALL (Thumb BL/BLX)
2014 Nov 06
1
CentOS 7 Manual Install
I am following the instructions from the CentOS website to manually install
CentOS 7 (http://wiki.centos.org/HowTos/ManualInstall) but the guide seems
to have some quality issues. I've partitioned the storage fine and now onto
setting up RPM. Unfortunately I am at a loss on how to do this. I am doing
this on VMware Workstation 10 and the host OS is Ubuntu 14.04.
Thanks
Parvez