Displaying 20 results from an estimated 1000 matches similar to: "[LLVMdev] writing an alias analysis pass?"
2014 Apr 29
4
[LLVMdev] writing an alias analysis pass?
Hi Matthew,
Did you add your alias analysis pass initializeEverythingMustAliasPass() into llvm::initializeAnalysis(PassRegistry &Registry) {} ?
This will initialize it linked into the Analysis library.
thanks,
chen
On Apr 28, 2014, at 8:43 PM, Jingyue Wu <jingyue at google.com> wrote:
>
>
>
> On Thu, Apr 24, 2014 at 4:38 PM, Matthew O'Connor <thegreendragon at
2015 Apr 21
2
[LLVMdev] Using an alias analysis pass
Hello LLVMdev,
I’m using LLVM to do static analysis exclusively (without any code generation). To implement this analysis, I’m using multiple address spaces to disambiguate the purpose of the pointed memory. Since address spaces never alias in my model, I set on to implement an alias analysis pass that would exactly provide this information, as I’m seeing a couple of otherwise dead store that
2013 Jan 24
1
[LLVMdev] llvm pass INITIALIZE
Hello everyone,
Till now I have succesfully running passes using RegisterPass template. I
have encountered a segfault in my pass.
Assertion `AA && "AA didn't call InitializeAliasAnalysis in its run
method!"' failed.
Then, I tried to use INITIALIZE_PASS_XXXX or INITIALIZE_AG_PASS template,
together with `*llvm::createMyMemDepPrinter()` and
2015 Jan 15
3
[LLVMdev] question about enabling cfl-aa and collecting a57 numbers
On Thu, Jan 15, 2015 at 1:26 PM, Nick Lewycky <nlewycky at google.com> wrote:
> On 15 January 2015 at 13:10, Daniel Berlin <dberlin at dberlin.org> wrote:
>
>> Yes.
>> I've attached an updated patch that does the following:
>>
>> 1. Fixes the partialalias of globals/arguments
>> 2. Enables partialalias for cases where nothing has been unified to
2013 Apr 16
2
[LLVMdev] Custom AA implementation is not used
Hello LLVM devs,
I'm trying to write my own alias analysis that only contributes
information to the getModRefBehavior query, and should be in its own
library loadable by opt.
However, even though my pass is run (and executed immediately before the
client pass that is calling AA.doesNotAccessMemory(F)), the queries
never reach my implementation. What am I missing?
Thanks in advance,
2012 Jan 23
1
[LLVMdev] Assertion `AA && "AA didn't call InitializeAliasAnalysis in its run method!"' failed.
Hello all,
I am working with someone else's LLVM code, which is about 8 months old.
Part of this pass involves AliasAnalysis, and I'm getting the above
assertion when the pass completes.
The dump is as follows:
--------------------------------
Program received signal SIGABRT, Aborted.
0xf7fdf430 in __kernel_vsyscall ()
(gdb) bt
#0 0xf7fdf430 in __kernel_vsyscall ()
#1 0xf602e921 in
2012 Jan 25
2
[LLVMdev] PLEASE help with Alias Analysis initialization assertion at the end of my pass
Hello all,
I really, really, really need your help. This is my third email now,
please don't ignore me! I understand this must be a trivial thing, but
I've ground to a halt, and REALLY need some guidance. Please see below for
the context of my problem. I'm not trying to be a waste of time, but I'm
desperate here.
I have a getAnalysisUsage method which does the following
2010 May 26
2
[LLVMdev] AliasAnalysis as a Loadable Module, Possible 2.6->2.7 issue
Thanks for the response, Eli.
The header suggestion could certainly cause this issue (I panicked for
a second), but unfortunately as far as I can tell the headers are in
fact from LLVM 2.7.
The pass is built as a project configured by llvm, so hopefully that
would make things right, but also:
--include paths look legit (make VERBOSE=1, etc)
--strace on the build process for the project confirms
2013 May 03
0
[LLVMdev] Custom AA implementation is not used
Julian Oppermann wrote:
> Hello LLVM devs,
>
> I'm trying to write my own alias analysis that only contributes
> information to the getModRefBehavior query, and should be in its own
> library loadable by opt.
>
> However, even though my pass is run (and executed immediately before the
> client pass that is calling AA.doesNotAccessMemory(F)), the queries
> never reach
2012 Jan 25
1
[LLVMdev] PLEASE help with Alias Analysis initialization assertion at the end of my pass
Yes, it is a pass.
Here is a very general overview of the file structure as far as the AA is
concerned. LLVM is not my strong-suit, I do hardware simulators, not
compilers.
using namespace llvm;
char RelRecovery::ID = 0;
static RegisterPass<RelRecovery> X("relRecovery",
"Reliability transformation for lightweight recovery");
void
2012 Jan 25
0
[LLVMdev] PLEASE help with Alias Analysis initialization assertion at the end of my pass
Griffin Wright wrote:
>
> Hello all,
>
> I really, really, really need your help. This is my third email now,
> please don't ignore me! I understand this must be a trivial thing, but
> I've ground to a halt, and REALLY need some guidance. Please see below for
> the context of my problem. I'm not trying to be a waste of time, but I'm
> desperate here.
2012 Dec 05
1
[LLVMdev] Non-immutable alias analysis
Hi,
I wrote a module pass that uses Alias Analysis.
For this reason I added AU.addRequired<AliasAnalysis>() to function getAnalysisUsage and used getAnalysis<AliasAnalysis>() in my pass.
I tried a few types of alias analyses and I discovered that only alias analyses which are ImmutablePasses are returned using getAnalysis<AliasAnalysis>(). Moreover, when I added both
2010 May 26
0
[LLVMdev] AliasAnalysis as a Loadable Module, Possible 2.6->2.7 issue
Dear Will,
If you're seeing the wrong method executed, it's probably because you're
using multiple inheritance in your analysis group (which is a very
common thing to do).
LLVM 2.7 made a change which alleviated the need for RTTI or some other
undesirable C++ feature. However, it also broke multiple inheritance
with analysis group passes. To fix it, your analysis group needs to
2012 Sep 10
2
[LLVMdev] About writing an alias analysis pass for LLVM 3.1
Hi,
I am now trying to write an alias analysis pass for LLVM 3.1. The pass
is compiled into a .so library. When I loaded it into opt to perform
evaluation with command:
opt -load my-so-lib -aa-eval foo.bc
the following errors occurred:
opt: raw_ostream.cpp:261: void llvm::raw_ostream::flush_nonempty():
Assertion `OutBufCur > OutBufStart && "Invalid call to
2016 Mar 30
1
Help with pass manager
Passes all need to be initialized before they are added into a pass manager.
Are you calling TargetLibraryInfoWrapperPass::initializePass anywhere?
-Chris
> On Mar 24, 2016, at 10:41 AM, Lorenzo Laneve via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>
> The problems happens because PMTopLevelManager::findAnalysisPassInfo(AnalysisID AID) returns nullptr in
2012 Mar 29
1
[LLVMdev] What is the right way to register an alias analysis pass
Hi everyone,
I am wondering what is the right way to register an alias analysis
pass.
My alias analysis pass is implemented in a dynamic load module. As I
can see, a general way to register a pass looks like:
llvm::RegisterPass<Analyzer> X("rci", "RCI Pass");
However, registering a type-based analysis uses:
INITIALIZE_AG_PASS(...)
I think, registering an
2012 Sep 10
0
[LLVMdev] About writing an alias analysis pass for LLVM 3.1
Hi,
Does your pass use multiple inheritance? Sounds like your problem is
that you need to define getAdjustedAnalysisPointer, see:
http://llvm.org/docs/doxygen/html/classllvm_1_1Pass.html#a03d3a81b1c46aff7c38ef3a6750ba225
An example implementation (very likely exactly what you want) is in
LibCallAliasAnalysis:
http://llvm.org/docs/doxygen/html/LibCallAliasAnalysis_8h_source.html#l00060
Hope
2007 Jul 25
2
[LLVMdev] PassManager Error
Can anyone explain what this means?
llvm/include/llvm/PassManagers.h:232: virtual void
llvm::PMDataManager::addLowerLevelRequiredPass(llvm::Pass*, llvm::Pass*):
Assertion `0 && "Unable to handle Pass that requires lower level Analysis
pass"' failed.
-Dave
2007 Jul 25
0
[LLVMdev] PassManager Error
On Jul 25, 2007, at 3:15 PM, David A. Greene wrote:
> Can anyone explain what this means?
>
> llvm/include/llvm/PassManagers.h:232: virtual void
> llvm::PMDataManager::addLowerLevelRequiredPass(llvm::Pass*,
> llvm::Pass*):
> Assertion `0 && "Unable to handle Pass that requires lower level
> Analysis
> pass"' failed.
In simple words, pass manager
2013 Jul 10
1
[LLVMdev] Problem Adding New Pass to Alias Analysis Group
On 7/10/13 3:43 PM, Cristianno Martins wrote:
> Hello John,
>
> What opt command line arguments are you using?
I'm not using opt. I'm manually scheduling a pipline within a tool.
The code looks like this:
PassManager pm;
MyAlias * aa = new MyAlias();
pm.add(aa);
pm.add(new MyAliasUsingPass());
Both MyAlias and MyAliasUsingPass are now ModulePass'es. MyAlias is an
alias