Displaying 20 results from an estimated 700 matches similar to: "[LLVMdev] Infinite loop when adding a new analysis pass"
2011 Dec 14
2
[LLVMdev] Adding dependency on MemoryDependenceAnalysis pass to LICM causes opt to get stuck in addPass
I'm attempting to add some support for hoisting/sinking of memory-using
intrinsics in loops, and so I want to use MemoryDependenceAnalysis in
LICM, but when I modify getAnalysisUsge to include this :
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.setPreservesCFG();
AU.addRequired<DominatorTree>();
AU.addRequired<LoopInfo>();
2011 Dec 14
0
[LLVMdev] Adding dependency on MemoryDependenceAnalysis pass to LICM causes opt to get stuck in addPass
On Dec 14, 2011, at 7:09 AM, David Gardner wrote:
> I'm attempting to add some support for hoisting/sinking of memory-using
> intrinsics in loops, and so I want to use MemoryDependenceAnalysis in
> LICM, but when I modify getAnalysisUsge to include this :
>
> virtual void getAnalysisUsage(AnalysisUsage &AU) const {
> AU.setPreservesCFG();
>
2012 Oct 30
1
[LLVMdev] Error when trying to chain two llvm transform passes
On Oct 30, 2012, at 3:15 PM, Krzysztof Parzyszek <kparzysz at codeaurora.org> wrote:
> On 10/30/2012 4:10 PM, Ashwin kumar wrote:
>>
>> Assertion failed: (PI && "Expected required passes to be initialized"),
>> function schedulePass, file PassManager.cpp, line 597.
>>
>>
>> I register the passes using RegisterPass function call.
2012 Apr 12
0
[LLVMdev] Function Pass Manager
Hi again,
I come back to this issue with an example. It's a pass which does
nothing but throw the 'Unable to schedule' error.
namespace {
struct MyPass : public FunctionPass {
static char ID; // Pass identification, replacement for typeid
MyPass() : FunctionPass(ID) {
initializeMyPassPass(*PassRegistry::getPassRegistry());
}
virtual void
2009 Feb 27
2
[LLVMdev] AnalysisUsage & Call Graph SCC Pass Manager
Hello,
I have the following sequence of passes (using --debug-pass=Structure):
...
ModulePass Manager
FunctionPass Manager
Preliminary module verification
Dominator Tree Construction
Module Verifier
MyModulePass0
MyAnalysis
Basic CallGraph Construction
MyModulePass1
MyAnalysis
MyModulePass2
Basic CallGraph Construction
Call Graph SCC Pass
2011 Nov 15
0
[LLVMdev] Pass options to the linker
Hi Jorge,
> I'm trying to use the PPL (Parma Polyhedra Library,
> bugseng.com/products/ppl) in one of my LLVM passes getting the error:
>
>> Error opening
>> '/home/jorge/SvnReps/Systems/llvm/build/Debug+Asserts/lib/MyAnalysis.so':
>> /home/jorge/SvnReps/Systems/llvm/build/Debug+Asserts/lib/MyAnalysis.so:
>> undefined symbol:
2011 Nov 15
1
[LLVMdev] Pass options to the linker
On Tuesday, November 15, 2011 at 10:11:25 (+0100), Duncan Sands wrote:
>> Hi Jorge,
>>
>> > I'm trying to use the PPL (Parma Polyhedra Library,
>> > bugseng.com/products/ppl) in one of my LLVM passes getting the error:
>> >
>> >> Error opening
>> >> '/home/jorge/SvnReps/Systems/llvm/build/Debug+Asserts/lib/MyAnalysis.so':
2011 Nov 15
2
[LLVMdev] Pass options to the linker
Hi all,
I'm trying to use the PPL (Parma Polyhedra Library,
bugseng.com/products/ppl) in one of my LLVM passes getting the error:
> Error opening
> '/home/jorge/SvnReps/Systems/llvm/build/Debug+Asserts/lib/MyAnalysis.so':
> /home/jorge/SvnReps/Systems/llvm/build/Debug+Asserts/lib/MyAnalysis.so:
> undefined symbol: _ZNK23Parma_Polyhedra_Library13PIP_Tree_Node2OKEv
>
2012 Mar 23
3
[LLVMdev] Function Pass Manager
Hi,
I'm writing a function pass which is dynamically loaded by opt and I
need some analysis and passes to be run before my pass:
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.addRequired<LoopInfo>();
AU.addPreserved<LoopInfo>();
AU.addRequiredID(LoopSimplifyID);
AU.addPreservedID(LoopSimplifyID);
2010 Sep 22
1
problem opening pdf device on Windows 7
I can not open PDf device. Acrobat is closed. I have checked archives but
could not find a solution. What should I do?
> cont.cdfplot("myanalysis.pdf", myanalysis$CDF, ylbl.r="Stream Length (km)")
Error in pdf(file = pdffile, width = width, height = height) :
unable to start device pdf
In addition: Warning message:
In pdf(file = pdffile, width = width, height = height)
2012 Oct 30
0
[LLVMdev] Error when trying to chain two llvm transform passes
On 10/30/2012 4:10 PM, Ashwin kumar wrote:
>
> Assertion failed: (PI && "Expected required passes to be initialized"),
> function schedulePass, file PassManager.cpp, line 597.
>
>
> I register the passes using RegisterPass function call. What else should
> I be doing?
Initializing them. Are you using INITIALIZE_PASS_DEPENDENCY,
INITIALIZE_AG_DEPENDENCY,
2017 Oct 03
2
About LLVM Pass dependency
Hello
I am working on pass which has dependency on multiple passes. Say
D1,D2,D3
I used
INITIALIZE_PASS_BEGIN
INITIALIZE_PASS_DEPENDENCY(D1)
INITIALIZE_PASS_DEPENDENCY(D2)
INITIALIZE_PASS_DEPENDENCY(D3)
INITIALIZE_PASS_END.
While running it through opt tool it, I had to specify this D1,D2,D3 pass
names
to get this pass executed before my pass.
Is there way, to let llvm pass manager to know
2011 Dec 06
2
[LLVMdev] Assertion `PI && "Expected required passes to be initialized"' failed for AliasAnalysis.
Dear lazydev,
I'm writing an instrumentation pass that depends on AliasAnalysis. My
getAnalysisUsage() looks as follows:
2453 void ThreadSanitizer::getAnalysisUsage(AnalysisUsage &AU) const {
2454 AU.addRequired<TargetData>();
2455 AU.addRequired<AliasAnalysis>();
2456 }
and the pass initialization:
2668 char ThreadSanitizer::ID = 0;
2669
2017 Oct 03
1
About LLVM Pass dependency
Hi Hongbin
I am not quite familiar with AnalysisUsage, let me correct question a bit.
I have read Writing Pass
<http://llvm.org/docs/WritingAnLLVMPass.html#specifying-interactions-between-passes>,
All examples that i see here are based on collecting information .i.e
Analysis Passes.
I wonder if this applies to Transformation passes also.
e.g.
void MyInliner::getAnalysisUsage(AnalysisUsage
2011 Dec 06
0
[LLVMdev] Assertion `PI && "Expected required passes to be initialized"' failed for AliasAnalysis.
Hi Alexander,
I had the same error:
sincos: /home/marcusmae/rpmbuild/BUILD/llvm/lib/VMCore/PassManager.cpp:635:
void llvm::PMTopLevelManager::schedulePass(llvm::Pass*): Assertion `PI
&& "Expected required passes to be initialized"' failed.
The solution was to add:
PassRegistry &Registry = *PassRegistry::getPassRegistry();
initializeCore(Registry);
2012 Oct 30
2
[LLVMdev] Error when trying to chain two llvm transform passes
Hi,
I am trying to chain two transform passes.
** The first pass is a function pass which requires the 'memory dependence pass' .
** The second pass is a function pass which requires the first pass above.
The passes run fine when executed alone.
I get the following error when I try to run my second pass with the following code added
>
> void
2004 Mar 19
2
Beginners question
Dear list,
I've been messing around with coding functions in R and it just won't make
sense to me.
Running my analysis by hand on command line is fine and works but because
of the repetitive nature of the job I would like to code a function for it.
My problem:
I would like to read in data from a file in my current working dir.
so my code would look like:
myanalysis <-
2009 Mar 03
0
[LLVMdev] AnalysisUsage & Call Graph SCC Pass Manager
On Feb 26, 2009, at 6:01 PM, Julien Lerouge wrote:
> Hello,
>
> I have the following sequence of passes (using --debug-
> pass=Structure):
>
> ...
> ModulePass Manager
> FunctionPass Manager
> Preliminary module verification
> Dominator Tree Construction
> Module Verifier
> MyModulePass0
> MyAnalysis
> Basic CallGraph
2017 Aug 01
1
Making an analysis availble during call lowering
> On Jul 31, 2017, at 21:47, Hal Finkel <hfinkel at anl.gov> wrote:
>
>
>
> Did you add INITIALIZE_PASS_DEPENDENCY somewhere?
>
> -Hal
Yes, the selector is ultimately a target defined, normal MachineFunction pass you can add dependencies on.
-Matt
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2011 May 03
4
[LLVMdev] 2.9 segfault when requesting for both LoopInfo and DominatorTree analyses.
When migrating my project to 2.9, I've encountered a strange segfault
where if a ModulePass's getAnalysisUsage adds LoopInfo and
DominatorTree, then llvm::PMTopLevelManager::findAnalysisUsage will
segfault. What's odd is that if I rearrange this (add required for
DominatorTree before LoopInfo), it does not segfault. I realize that
LoopInfo requires and preserves DominatorTree, but this