Displaying 20 results from an estimated 4000 matches similar to: "[LLVMdev] CallGraphSCCPass: symbol not found"
2010 Jul 13
0
[LLVMdev] CallGraphSCCPass: symbol not found
Hi Trevor,
> I've written a CallGraphSCCPass that compiles successfully, but when I
> try to run it with opt, it fails:
>
> Symbol not found: __ZTIN4llvm16CallGraphSCCPassE
$ c++filt _ZTIN4llvm16CallGraphSCCPassE
typeinfo for llvm::CallGraphSCCPass
LLVM TOT has RTTI turned off as far as I know (not sure about 2.7). Are you
making use of RTTI?
Ciao,
Duncan.
2010 Jul 12
3
[LLVMdev] CallGraphSCCPass: symbol not found
Hi,
I've written a CallGraphSCCPass that compiles successfully, but when I
try to run it with opt, it fails:
Symbol not found: __ZTIN4llvm16CallGraphSCCPassE
If I simply change the pass to be a FunctionPass or a ModulePass, opt
can run it just fine.
I'm on Mac OS X, so I thought perhaps I was running into bug #2771
[1], but I'm getting the same error on Ubuntu Linux:
2010 Jan 28
0
[LLVMdev] RTTI Madness
On Jan 28, 2010, at 12:45 PM, Thomas B. Jablin wrote:
> Hi,
> Lately LLVM has been adding -fno-rtti to most of the compiler. I
> have a pass which uses LoopPass and which inherits from FunctionPass
> and a class of my own. If I compile my code with ENABLE_RTTI=1, I
> can't dynamically load the shared object since it won't be able to
> find the symbol for
2010 Jan 28
1
[LLVMdev] RTTI Madness
On 01/29/2010 12:11 AM, Chris Lattner wrote:
> On Jan 28, 2010, at 12:45 PM, Thomas B. Jablin wrote:
>
>
>> Hi,
>> Lately LLVM has been adding -fno-rtti to most of the compiler. I
>> have a pass which uses LoopPass and which inherits from FunctionPass
>> and a class of my own. If I compile my code with ENABLE_RTTI=1, I
>> can't dynamically load
2010 Jul 19
0
[LLVMdev] Function::getName in CallGraphSCCPass causes bus error
Hi Trevor,
> struct Hello : public CallGraphSCCPass {
> static char ID; // Pass identification, replacement for typeid
> Hello() : CallGraphSCCPass(&ID) {}
> virtual bool runOnSCC(std::vector<CallGraphNode *> &SCC) {
> CallGraphNode *node = SCC.front();
> Function *function = node->getFunction();
>
2010 Jul 20
0
[LLVMdev] Adding required function passes to CallGraphSCCPass
Hi,
I have a FunctionPass that needs to process functions in bottom-up
order on the call graph (callees before callers). CallGraphSCCPass can
provide this ordering, but there's a snag. My pass depends on other
passes, such as UnifyFunctionExitNodes and LoopInfo, to process the
functions first. With a FunctionPass, I can specify these dependencies
in FunctionPass::getAnalysisUsage,
2010 Jul 16
2
[LLVMdev] Function::getName in CallGraphSCCPass causes bus error
Hi,
I'm trying to use CallGraphSCCPass, but I keep getting a bus error. I
can reproduce the problem quite easily using the lib/Transforms/Hello
example. I simply mix in these changes:
#include "llvm/CallGraphSCCPass.h"
...
struct Hello : public CallGraphSCCPass {
static char ID; // Pass identification, replacement for typeid
Hello() : CallGraphSCCPass(&ID) {}
2010 Jan 28
2
[LLVMdev] RTTI Madness
Hi,
Lately LLVM has been adding -fno-rtti to most of the compiler. I have a pass which uses LoopPass and which inherits from FunctionPass and a class of my own. If I compile my code with ENABLE_RTTI=1, I can't dynamically load the shared object since it won't be able to find the symbol for LoopPass's typeinfo.
undefined symbol: _ZTIN4llvm8LoopPassE
$ c++filt _ZTIN4llvm8LoopPassE
2011 Jan 25
1
[LLVMdev] Can CallGraphSCCPass distinguish different function pointer types in CallGraphNode?
Dear folks,
I am trying to handle function pointers at call graph, and I found that
the CallGraphSCCPass makes function pointers as external node, which is
actually an empty CallGraphNode (NULL pointer)?
If I want to distinguish the function pointer types in the call graph
(and I also want the SCC order in CallGraphSCCPass), can I do that easily?
Or I have to inheritate the
2010 Jul 22
0
[LLVMdev] Controlling the order of a FunctionPass
Trevor Harmon wrote:
> Hi,
>
> I would like my FunctionPasses to be invoked in reverse call graph
> order (callees before callers). However, "Writing an LLVM Pass" notes
> that "FunctionPass's do not require that they are executed in a
> particular order." Is there any way at all to specify an ordering?
>
> If this is not possible, I'm
2011 Oct 10
0
[LLVMdev] Using analysis results from a CallGraphSCCPass in a ModulePass
Hi,
I'm trying to use analysis results from a CallGraphSCCPass in a ModulePass.
Here is the relevant code:
struct MyCallGraphSCCPass : CallGraphSCCPass
{
...
bool runOnSCC(CallGraphSCC& scc){...}
};
char MyCallGraphSCCPass::ID = 0;
static RegisterPass<MyCallGraphSCCPass> X("cgscc", "Dummy CG SCC pass");
struct MyModulePass : public ModulePass
{
2009 Sep 11
0
[LLVMdev] compiling clang with rtti
Hi Olaf,
On Fri, Sep 11, 2009 at 5:24 AM, Olaf Krzikalla
<Olaf.Krzikalla at tu-dresden.de> wrote:
> Hi @clang,
>
> I'm somewhat puzzled about using rtti when building clang under gcc (gcc
> 4.3.3, linux/ubuntu).
> (There is no problem under MSVC since rtti seems to be active there anyway).
> The appropriate line 348 in llvm/makefile.rules is commented out meaning
>
2009 Sep 11
2
[LLVMdev] compiling clang with rtti
Hi @llvm,
I've already asked the following questions to the clang dev list but got no response. Maybe there is a wider audience at llvmdev and someone here can help me. The question actually boils down to: How can I compile clang with rtti enabled?
And this was my original mail (with some points now better explained) to clang:
<--BEGIN-->
Hi @clang,
I'm somewhat puzzled about
2011 Oct 25
1
[LLVMdev] Using a FunctionPass inside a CallGraphSCCPass
Hi,
I am writing a CallGraphSCCPass that uses LoopInfo which is a FunctionPass.
However, doing so results in the following error.
****
Unable to schedule 'Natural Loop Information' required by '......'
****
Google led me to this page, where Devang Patel suggests implementing the
addLowerLevelRequiredPasses in CGPassManager in a manner similar to
MPPassManager.
2010 Mar 11
0
[LLVMdev] Aborting a pass
On Mar 1, 2010, at 11:04 AM, Trevor Harmon wrote:
> What's the proper way to abort a pass if something goes wrong (e.g.,
> in the pass's constructor)? Do I simply call abort()?
Calling abort() causes a stack dump to the console, which is good for
serious errors, but overkill for most other types of error situations,
such as a command-line parameter that the user forgot to add.
2010 Nov 13
0
[LLVMdev] dyn_cast vs. dynamic_cast
Trevor Harmon <Trevor.W.Harmon at nasa.gov> writes:
[snip]
> Could someone
> please explain why I should use dyn_cast instead of dynamic_cast? (I
> thought all classes have v-tables...) Thanks,
For reducing executable size, LLVM builds with RTTI disabled where
possible.
2012 Oct 03
2
[LLVMdev] LoopInfo analysis in CallGraphSCCPass
Hi,
How to get the LoopInfo analysis in a CallGraphSCCPass ?
Thanks,
Vinay
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20121003/bf60da98/attachment.html>
2012 Oct 03
0
[LLVMdev] LoopInfo analysis in CallGraphSCCPass
This is not currently supported by the LLVM pass manager system. It is a
serious deficiency that I (and others) would like to address, but it
requires significant changes to the pass manager and analysis dependency
system.
I have some dim hope of working on fixing this limitation, but it won't be
quick. ;]
On Wed, Oct 3, 2012 at 1:49 AM, vinay m <mvinay05041990 at gmail.com> wrote:
2016 Feb 25
0
Use DominatorTree from CallGraphSCCPass
Hello,
I'm trying to improve SimpleInliner to use information given by __builtin_expect instruction (It would be better to not to inline if a call instruction is unlikely to be executed). The problem here is that it is not possible to compute control dependency relationship between the annotated branch instruction and callsites using PostDominatorTree, because PostDominatorTree is a function
2012 Oct 03
0
[LLVMdev] LoopInfo analysis in CallGraphSCCPass
On Wed, Oct 3, 2012 at 2:33 AM, vinay m <mvinay05041990 at gmail.com> wrote:
> Hi,
> Is it possible to recreate the LoopInfo analysis in my pass?
>
No. You need your pass to be a FunctionPass in order to use the LoopInfo
(and associated) analyses.
>
> Thanks ,
> Vinay
>
> On Wed, Oct 3, 2012 at 2:34 PM, Chandler Carruth <chandlerc at google.com>wrote: