Displaying 20 results from an estimated 37 matches for "passsupport".
2009 May 23
0
[LLVMdev] why RegisterPass<TargetData> initialize itself twice in my system
...1st
PassInfo (this=0x2aaaac3472a0, name=0x2aaaabe24421 "Target Data Layout", arg=0x2aaaabe24434 "targetdata", pi=17004736, normal=0xada74e <llvm::Pass* llvm::callDefaultCtor<llvm::TargetData>()>, isCFGOnly=false, is_analysis=true) at /home/xliu/dev/llvm/include/llvm/PassSupport.h:59
(gdb) bt
#0 PassInfo (this=0x2aaaac3472a0, name=0x2aaaabe24421 "Target Data Layout", arg=0x2aaaabe24434 "targetdata", pi=17004736, normal=0xada74e <llvm::Pass* llvm::callDefaultCtor<llvm::TargetData>()>, isCFGOnly=false, is_analysis=true) at /home/xliu/dev/llvm...
2009 Feb 27
4
[LLVMdev] -fPIC warning on every compile on Cygwin
On Fri, Feb 27, 2009 at 4:32 PM, Jay Foad <jay.foad at gmail.com> wrote:
> >> Could you please rig Makefile.rules or something to print out the value
> >> of $(LLVM_ON_WIN32) ? The only way I can think of this happening is if
> >> that's erroneously false.
>
> This works for me:
>
> Index: Makefile.rules
>
2009 Feb 27
0
[LLVMdev] -fPIC warning on every compile on Cygwin
...e to
`llvm::FunctionPass::runOnModule(l
lvm::Module&)'
/usr/build/llvm-65633/lib/Transforms/Hello/Debug/Hello.o: In function
`_ZN4llvm1
2RegisterPassIN79_GLOBAL__N__usr_src_llvm_65633_lib_Transforms_Hello_Hello.cpp_0
0000000_965F4EBD5HelloEEC1EPKcS5_bb':
/usr/src/llvm-65633/include/llvm/PassSupport.h:172: undefined reference to
`llvm
::Pass::getPassName() const'
/usr/src/llvm-65633/include/llvm/PassSupport.h:172: undefined reference to
`llvm
::Pass::print(std::basic_ostream<char, std::char_traits<char> >&,
llvm::Module c
onst*) const'
/usr/src/llvm-65633/include/llvm/P...
2010 Feb 26
3
[LLVMdev] RegisterPass isAnalysis parameter
Hi,
I'm confused about the is_analysis parameter of the RegisterPass
constructor (defined in PassSupport.h). The only explanation I can
find is that is_analysis should be set to true if the pass is "an
analysis pass, for example dominator tree pass". Can someone please
clarify what is meant by "analysis pass"?
Also -- and this is more of a C++ question than an LLVM question...
2009 Mar 02
0
[LLVMdev] Fw: -fPIC warning on every compile on Cygwin
...Pass::runOnModule(l
lvm::Module&)'
/usr/build/llvm-65633/lib/Transforms/Hello/Debug/Hello.o: In function `_ZN4llvm1
2RegisterPassIN79_GLOBAL__N__usr_src_llvm_65633_lib_Transforms_Hello_Hello.cpp_0
0000000_965F4EBD5HelloEEC1EPKcS5_bb':
/usr/src/llvm-65633/include/llvm/PassSupport.h:172: undefined reference to `llvm
::Pass::getPassName() const'
/usr/src/llvm-65633/include/llvm/PassSupport.h:172: undefined reference to `llvm
::Pass::print(std::basic_ostream<char, std::char_traits<char> >&, llvm::Module c
onst*) const'
/usr/src/llvm-...
2009 Mar 03
0
[LLVMdev] -fPIC warning on every compile on Cygwin
...t; /usr/build/llvm-65633/lib/Transforms/Hello/Debug/Hello.o: In
> function `_ZN4llvm1
> 2RegisterPassIN79_GLOBAL__N__usr_src_llvm_65633_lib_Transforms_Hello_Hello.cpp_0
> 0000000_965F4EBD5HelloEEC1EPKcS5_bb':
> /usr/src/llvm-65633/include/llvm/PassSupport.h:172: undefined
> reference to `llvm
> ::Pass::getPassName() const'
> /usr/src/llvm-65633/include/llvm/PassSupport.h:172: undefined
> reference to `llvm
> ::Pass::print(std::basic_ostream<char, std::char_traits<char>
>...
2015 Oct 09
2
Get instance of CallGraph of a module in the pass
...my pass. By looking at -dot-callgraph
source, I've tried something like this:
CallGraphWrapperPass *CGWP = new CallGraphWrapperPass();
PM.add(CGWP);
CallGraph *CG = &CGWP->getCallGraph();
PM.add(new MyPass(CG));
I get the following error:
/home/riyad/installs/llvm-3.7.0/include/llvm/PassSupport.h:95:38: error: no
matching constructor for initialization of
'MyPass'
Pass *callDefaultCtor() { return new PassName(); }
My guess is pass manager needs pass with default constructor. Is there any
easy way to get instance of call graph in my pass?
Thanks in Advance,
Riyad
---------...
2010 Oct 29
1
[LLVMdev] LLVM program compile error w/ gcc 4.5 but not 4.4
...:
In file included from
/waflhome/trapni/local/include/llvm/Support/Allocator.h:17:0,
from /waflhome/trapni/local/include/llvm/ADT/StringMap.h:18,
from /waflhome/trapni/local/include/llvm/PassRegistry.h:20,
from /waflhome/trapni/local/include/llvm/PassSupport.h:25,
from /waflhome/trapni/local/include/llvm/Pass.h:366,
from /waflhome/trapni/local/include/llvm/PassManager.h:20,
from
/waflhome/trapni/local/include/llvm/Support/StandardPasses.h:22,
from /waflhome/trapni/local/src/flow/src/Ru...
2015 Aug 07
3
[LLVMdev] Ideas for making llvm-config --cxxflags more useful
...one, relatively inconsistently.
What i’ve gone for is that if a class already had an inline destructor then i left it alone and added an anchor method. Otherwise I added an out of line destructor.
Now if I compile Instructions.cpp with -Wweak-vtable, the only warnings given are:
../include/llvm/PassSupport.h:226:8: warning: 'PassRegistrationListener' has no out-of-line virtual method definitions;
its vtable will be emitted in every translation unit [-Wweak-vtables]
struct PassRegistrationListener {
^
In file included from ../lib/IR/Instructions.cpp:16:
In file included from ../li...
2009 Nov 26
1
[LLVMdev] Problemo: createTailDuplicationPass
...LLVM trunk I noticed
that the line "_passManager.add(llvm::createTailDuplicationPass());"
in my code fails with the following assertion:
Assertion failed: NormalCtor && "Cannot call createPass on PassInfo
without default ctor!", file
D:\Workspace\llvmtrunk\include\llvm/PassSupport.h, line 111
This behavior was introduced in revision 89904: Both,
lib/CodeGen/tailDuplication.cpp and lib/Transforms/TailDuplication.cpp
export a function with the signature
llvm::createTailDuplicationPass(). In my case the linker picks the
wrong one - the CodeGen version instead of the Transforms...
2010 Feb 26
0
[LLVMdev] RegisterPass isAnalysis parameter
On Thursday 25 February 2010 19:24:30 Trevor Harmon wrote:
> Hi,
>
> I'm confused about the is_analysis parameter of the RegisterPass
> constructor (defined in PassSupport.h). The only explanation I can
> find is that is_analysis should be set to true if the pass is "an
> analysis pass, for example dominator tree pass". Can someone please
> clarify what is meant by "analysis pass"?
I don't have the sources at my fingertips but my exp...
2011 Jan 12
1
[LLVMdev] About adding a pass into llvm
...ot;Live Variable Analysis", false,
false);
in the llvm/lib/codegen/LiveVariables.cpp, where LiveVariables is a subclass
of MachineFunctionPass, and
#define INITIALIZE_PASS(passName, arg, name, cfg, analysis) \
static RegisterPass<passName> passName ## _info(arg, name, cfg, analysis)
in PassSupport.h
Is this code used to register and initialize a pass? This kind of
registration is just the way illustrated in the hello example at
http://llvm.org/docs/WritingAnLLVMPass.html#registration.
My problem is:
I wrote a pass (Mypass), also a subclass of MachineFunctionPass. And I wrote
the similar s...
2004 Sep 02
0
[LLVMdev] Problem with CVS LLVM build in obj != src dir case
...erer/pkg/build/llvm/src/llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp:72:
warning: passing negative value `-0x000000001' for converting 2 of `bool
llvm::AliasSetTracker::add(llvm::Value*, unsigned int)'
Compiling LoopExtractor.cpp
/home/wanderer/pkg/build/llvm/src/llvm/include/llvm/PassSupport.h: In
function `llvm::Pass* llvm::callDefaultCtor() [with PassName =
<unnamed>::LoopExtractor]':
/home/wanderer/pkg/build/llvm/src/llvm/include/llvm/PassSupport.h:209:
instantiated from `llvm::RegisterOpt<PassName>::RegisterOpt(const char*,
const char*, bool) [with PassName = &l...
2015 Feb 24
2
[LLVMdev] Removing contention in PassRegistry accesses to speed up compiles
...ile caching_compiler_test [.] (anonymous namespace)::VectorLegalizer::LegalizeOp(llvm::SDValue)
+ 0.47% caching_compile caching_compiler_test [.] llvm::PMDataManager::findAnalysisPass(void const*, bool)
-------------- next part --------------
diff --git a/llvm/llvm.svnrev.170375/include/llvm/PassSupport.h b/llvm/llvm.svnrev.170375/include/llvm/PassSupport.h
index 3633f47..44b4d56 100644
--- a/llvm/llvm.svnrev.170375/include/llvm/PassSupport.h
+++ b/llvm/llvm.svnrev.170375/include/llvm/PassSupport.h
@@ -130,25 +130,14 @@ private:
PassInfo(const PassInfo &) LLVM_DELETED_FUNCTION;
};
+
+
#...
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
2015 Aug 07
2
[LLVMdev] Ideas for making llvm-config --cxxflags more useful
...to this with anchor’s.
Anyone got a strong opinion which is best, especially as I don’t want to do anything too big for 3.7 at this point.
Cheers,
Pete
>
> - Dave
>
>
> Now if I compile Instructions.cpp with -Wweak-vtable, the only warnings given are:
>
> ../include/llvm/PassSupport.h:226:8: warning: 'PassRegistrationListener' has no out-of-line virtual method definitions;
> its vtable will be emitted in every translation unit [-Wweak-vtables]
> struct PassRegistrationListener {
> ^
> In file included from ../lib/IR/Instructions.cpp:16:
> In...
2004 Sep 02
1
[LLVMdev] Problem with CVS LLVM build in obj != src dir case
...lvm/lib/Transforms/Scalar/DeadStoreElimination.cpp:72:
> warning: passing negative value `-0x000000001' for converting 2 of `bool
> llvm::AliasSetTracker::add(llvm::Value*, unsigned int)'
>
> Compiling LoopExtractor.cpp
> /home/wanderer/pkg/build/llvm/src/llvm/include/llvm/PassSupport.h: In
> function `llvm::Pass* llvm::callDefaultCtor() [with PassName =
> <unnamed>::LoopExtractor]':
> /home/wanderer/pkg/build/llvm/src/llvm/include/llvm/PassSupport.h:209:
> instantiated from `llvm::RegisterOpt<PassName>::RegisterOpt(const char*,
> const char*,...
2007 Aug 10
3
[LLVMdev] Choosing Alias Analysis
...tion), does that then make Andersen's
the new default alias analysis so that passes that declare a dependence on
AliasAnalysis will now get Andersen's instead of basicaa? Or do I really have
to put -andersaa after every option that could invalidate alias analysis?
>From the comments in PassSupport.h, it sounds like the former is true.
Andersen's would be "available" and thus used.
However, what happens when alias analysis information gets invalidated?
Is Andersen's still "available" in the sense analysis groups use it?
If not, it seems it would be tough to mak...
2015 Aug 07
2
[LLVMdev] Ideas for making llvm-config --cxxflags more useful
On Fri, Aug 7, 2015 at 10:22 AM, Hans Wennborg via llvm-dev <
llvm-dev at lists.llvm.org> wrote:
> On Thu, Aug 6, 2015 at 12:04 PM, David Chisnall via llvm-dev
> <llvm-dev at lists.llvm.org> wrote:
> > [Ooops, sent to the old list address by mistake]
> >
> > On 30 Jul 2015, at 21:04, tom at stellard.net wrote:
> >>
> >> For flags like
2009 Sep 03
0
[LLVMdev] Problem with generating Machine function analysis pass
...found usage
------------------- check analysis
--------Required set ----------
Machine Function Analysis
-------- end ----------
---------- finding... Machine Function Analysis
-------------------------------- Oh no no analysis pass
test:
/home/elhigu/stow_sources/llvm-2.6-svn/include/llvm/PassSupport.h:111:
llvm::Pass* llvm::PassInfo::createPass() const: Assertion `NormalCtor &&
"Cannot call createPass on PassInfo without default ctor!"' failed.
Aborted
When I tried to compile the same file with llc Machine Function Analysis
pass was created with out problems. Am I mis...