Displaying 13 results from an estimated 13 matches for "initialize_ag_depend".
2013 Sep 05
1
[LLVMdev] why functionattrs doesn't add dependency of AliasAnalysis
...e has gone away.
--- a/lib/Transforms/IPO/FunctionAttrs.cpp
+++ b/lib/Transforms/IPO/FunctionAttrs.cpp
@@ -76,6 +76,7 @@ namespace {
char FunctionAttrs::ID = 0;
INITIALIZE_PASS_BEGIN(FunctionAttrs, "functionattrs",
"Deduce function attributes", false, false)
+INITIALIZE_AG_DEPENDENCY(AliasAnalysis)
INITIALIZE_AG_DEPENDENCY(CallGraph)
INITIALIZE_PASS_END(FunctionAttrs, "functionattrs",
"Deduce function attributes", false, false)
Do you guys just miss the dependency for it?
thanks,
--lx
-------------- next part --------------
An HTML...
2011 Dec 06
2
[LLVMdev] Assertion `PI && "Expected required passes to be initialized"' failed for AliasAnalysis.
...E_PASS_BEGIN(ThreadSanitizer, "tsan",
2670 "Compile-time instrumentation for runtime "
2671 "data race detection with ThreadSanitizer",
2672 false, false)
2673 INITIALIZE_PASS_DEPENDENCY(TargetData)
2674 INITIALIZE_AG_DEPENDENCY(AliasAnalysis)
2675 INITIALIZE_PASS_END(ThreadSanitizer, "tsan",
2676 "Compile-time instrumentation for runtime "
2677 "data race detection with ThreadSanitizer",
2678 false, false)
2679
However when I r...
2011 Dec 06
0
[LLVMdev] Assertion `PI && "Expected required passes to be initialized"' failed for AliasAnalysis.
...zer, "tsan",
> 2670 "Compile-time instrumentation for runtime "
> 2671 "data race detection with ThreadSanitizer",
> 2672 false, false)
> 2673 INITIALIZE_PASS_DEPENDENCY(TargetData)
> 2674 INITIALIZE_AG_DEPENDENCY(AliasAnalysis)
> 2675 INITIALIZE_PASS_END(ThreadSanitizer, "tsan",
> 2676 "Compile-time instrumentation for runtime "
> 2677 "data race detection with ThreadSanitizer",
> 2678 false, false)
>...
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
2012 Oct 30
0
[LLVMdev] Error when trying to chain two llvm transform passes
...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, etc?
-Krzysztof
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
hosted by The Linux Foundation
2013 Sep 23
0
[LLVMdev] Cannot get Alias Analysis?
...ger &pmgr)*
* : CallGraphSCCPass(Pid), passMgr(pmgr) {*
* registerDriver();*
*}*
*
*
*AnalysisDriver::~AnalysisDriver() {}*
*
*
*void AnalysisDriver::registerDriver() {*
* PassRegistry &Registry = *PassRegistry::getPassRegistry();*
* *
* // Register AliasAnalysis and CallGraph pass*
* INITIALIZE_AG_DEPENDENCY(AliasAnalysis);*
* INITIALIZE_AG_DEPENDENCY(CallGraph);*
*
*
* passMgr.add(this);*
*}*
*
*
*bool AnalysisDriver::run(Module &module) {*
* passMgr.run(module);*
*}*
*
*
*bool AnalysisDriver::runOnSCC(CallGraphSCC &scc) {*
* for (CallGraphSCC::iterator i = scc.begin(),*
*...
2012 Oct 30
1
[LLVMdev] Error when trying to chain two llvm transform passes
...ted 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, etc?
>
No. I am not sure how they work . I am trying to use the INITIALIZE_PASS macro. I get the following error
error: definition or redeclaration of 'initializeMyPassNamePass' not in a namespace enclosing 'llvm'
should i add the passname to a header file ? if so...
2011 Aug 22
1
[LLVMdev] Infinite loop when adding a new analysis pass
...= 0;
INITIALIZE_PASS_BEGIN(LICM, "licm", "Loop Invariant Code Motion", false, false)
INITIALIZE_PASS_DEPENDENCY(DominatorTree)
INITIALIZE_PASS_DEPENDENCY(LoopInfo)
INITIALIZE_PASS_DEPENDENCY(LoopSimplify)
INITIALIZE_PASS_DEPENDENCY(MyAnalysis)
// add this dependency
INITIALIZE_AG_DEPENDENCY(AliasAnalysis)
INITIALIZE_PASS_END(LICM, "licm", "Loop Invariant Code Motion", false, false)
Howerver, I got an infinite loop when trying
opt -O3 t.bc -o out.bc
Where t.bc is created using clang from
int main() { return 0; }
What am I missing ?
All files are attacah...
2011 Dec 14
2
[LLVMdev] Adding dependency on MemoryDependenceAnalysis pass to LICM causes opt to get stuck in addPass
...cm", "Loop Invariant Code Motion", false, false)
INITIALIZE_PASS_DEPENDENCY(DominatorTree)
INITIALIZE_PASS_DEPENDENCY(LoopInfo)
INITIALIZE_PASS_DEPENDENCY(LoopSimplify)
INITIALIZE_PASS_DEPENDENCY(TargetLibraryInfo)
INITIALIZE_PASS_DEPENDENCY(MemoryDependenceAnalysis) // <--- added
INITIALIZE_AG_DEPENDENCY(AliasAnalysis)
INITIALIZE_PASS_END(LICM, "licm", "Loop Invariant Code Motion", false, false)
..rebuild and then run:
gdb --args ~/tmp/checkouts/llvm-build/Debug+Asserts/bin/opt -p -debug -debug-pass=Arguments -basicaa -licm -o /dev/null test.bc
Then I can see that opt...
2012 Jan 30
0
[LLVMdev] initializeNAMEPass(llvm::PassRegistry&) should have been declared inside 'llvm'
...es, such that it contains this in the
FunctionPass declaration;
RelRecovery() : FunctionPass(ID) {
llvm::initializeRelRecoveryPass(*PassRegistry::getPassRegistry());
}
and contains these macros
INITIALIZE_PASS_BEGIN(RelRecovery, "relRecovery", "...", false, false)
INITIALIZE_AG_DEPENDENCY(AliasAnalysis)
INITIALIZE_PASS_END(RelRecovery, "relRecovery", "Reliability transformation
for lightweight recovery", false, false)
However, as my pass is external the rest of llvm (and is compiled
separately from the main llvm source), I am having trouble getting this to
w...
2011 Dec 14
0
[LLVMdev] Adding dependency on MemoryDependenceAnalysis pass to LICM causes opt to get stuck in addPass
...Code Motion", false, false)
> INITIALIZE_PASS_DEPENDENCY(DominatorTree)
> INITIALIZE_PASS_DEPENDENCY(LoopInfo)
> INITIALIZE_PASS_DEPENDENCY(LoopSimplify)
> INITIALIZE_PASS_DEPENDENCY(TargetLibraryInfo)
> INITIALIZE_PASS_DEPENDENCY(MemoryDependenceAnalysis) // <--- added
> INITIALIZE_AG_DEPENDENCY(AliasAnalysis)
> INITIALIZE_PASS_END(LICM, "licm", "Loop Invariant Code Motion", false, false)
>
>
> ..rebuild and then run:
>
> gdb --args ~/tmp/checkouts/llvm-build/Debug+Asserts/bin/opt -p -debug -debug-pass=Arguments -basicaa -licm -o /dev/null test...
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
2015 Dec 03
3
Function attributes for LibFunc and its impact on GlobalsAA
----- Original Message -----
> From: "James Molloy via llvm-dev" <llvm-dev at lists.llvm.org>
> To: "Vaivaswatha Nagaraj" <vn at compilertree.com>
> Cc: "LLVM Dev" <llvm-dev at lists.llvm.org>
> Sent: Thursday, December 3, 2015 4:41:46 AM
> Subject: Re: [llvm-dev] Function attributes for LibFunc and its impact on GlobalsAA
>
>