Displaying 6 results from an estimated 6 matches for "schedulelist".
2006 May 31
0
[LLVMdev] Adding an object to llc (analysis pass)
On Wed, 31 May 2006, Silken Tiger wrote:
>> 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?
Right
2006 May 31
2
[LLVMdev] Adding an object to llc (analysis pass)
...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 a...
2006 Jun 01
2
[LLVMdev] Adding an object to llc (analysis pass)
...Schedule>();
AU.setPreservesAll();
}
and then in the runOnFunction pass of this backend:
LI = &getAnalysis<LoopInfo>();
MParSchedule &MPar = getAnalysis<MParSchedule>();
lowerIntrinsics(F);
printFloatingPointConstants(F);
F.renameLocalSymbols();
list<Schedule *>* ScheduleList;
Schedule *currentSchedule;
for (Function::iterator i = F.begin(), e = F.end(); i != e; ++i) {
for(BasicBlock::iterator j=i->begin(),bbe=i->end();j!=bbe;++j) {
BasicBlock *bb;
if((bb=dyn_cast<BasicBlock>(j))) {
ScheduleList=MPar.lookupBasicBlock(bb);...
2007 Mar 23
1
[LLVMdev] strange pass behaviour
...eturn false;
}
bool MParSchedule::runOnBasicBlock(BasicBlock &B) {
// fill the Instruction list and the available values list
InstructionList.clear();
//ValueList.clear(); //FIXME: check if not clearing the Value List might cause problems?
list<Schedule*> *ScheduleList=new list<Schedule*>::list();
for(BasicBlock::iterator j=B.begin(),bbe=B.end();j!=bbe;++j) {
InstructionList.push_back(j);
cerr<<"Copying: "<<j->getName()<<" "<<InstructionList.size()<<endl;
......
........
2006 May 30
0
[LLVMdev] Adding an object to llc (analysis pass)
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
2006 May 30
3
[LLVMdev] Adding an object to llc (analysis pass)
Hi
> One would expect this, its a facility of the C++ language. The anonymous
> namespace is, essentially, the same as declaring everything in it
> static. That is, the symbols are not exported and not available for
> linking.
Yes, it was pretty clear after finding out that this isn't a linking error
which i suspected...
> > So for all those trying to add an analysis path: