[LLVMdev] Adding an object to llc (analysis pass)

Silken Tiger st at iss.tu-darmstadt.de
Wed May 31 04:24:06 PDT 2006


Hi
Am Dienstag, 30. Mai 2006 19:21 schrieb Chris Lattner:
> On Tue, 30 May 2006, Silken Tiger wrote:
> > Everthing now compiles fine, but when running llc with invoking my own
> > backend derived from the cbackend i get the following error:
> > namespace llvm {
> >        class MParSchedule : public BasicBlockPass {
> >                public:
> >
> > This pass has been tested as optimization pass with opt, and everything
> > worked in this configuration.
>
> What requires MParSchedule?  Note that, since it's a basic block pass,
> only other basic block passes can require it.  If you have a FunctionPass
> that requires a BasicBlockPass, it will fail the same was as when a
> ModulePass requires a FunctionPass.
void MParSchedule::getAnalysisUsage(AnalysisUsage &AU) const {
        AU.setPreservesAll();
}

MParSchedule requires nothing and changes nothing. So hopefully the above code 
represents this fact?

I also did an make clean && make in my llvm root directory to check if this is 
a build system problem. Which it is not.

For easier reference i just attached the files of this pass to this mail. They 
are under GPL.

Best Regards
ST
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile
Type: text/x-makefile
Size: 213 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20060531/7e6564ec/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MParSchedule.cpp
Type: text/x-c++src
Size: 3950 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20060531/7e6564ec/attachment.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ScheduleList.h
Type: text/x-chdr
Size: 300 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20060531/7e6564ec/attachment.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MParSchedule.h
Type: text/x-c++hdr
Size: 605 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20060531/7e6564ec/attachment-0001.h>


More information about the llvm-dev mailing list