Displaying 3 results from an estimated 3 matches for "bbpassunit".
2006 Jan 10
0
[LLVMdev] passmanager, significant rework idea...
...Usage(), likewise with the pass name.
+public:
+ PassUnit(Traversal traversal = LINEAR, Pass *Pass) :
+ traversal(traversal),
+
+ virtual const char *getPMName() const =0;
+
+ virtual const char *getPassName() const =0;
+
+ virtual bool runPass(PassClass *P, UnitType *M) =0;
+};
+
+class BBPassUnit : public PassUnit {
+ BasicBlockPass *BBPass;
+
+public:
+ BBPassUnit(Traversal traversal = LINEAR, BasicBlockPass *Pass) :
+ PassUnit::traversal(traversal),
+ PassUnit::Pass(static_cast<Pass*>(Pass))
+ BBPassUnit::BBPass(Pass) {}
+};
+
+class LPassUnit : public PassUnit {
+ Lo...
2006 Jan 10
3
[LLVMdev] passmanager, significant rework idea...
The patch below basically hammers out some ideas as to where I'd like
to take the passmanager in LLVM. I've tried thinking things through,
but I'm still a n00b, so some criticism would be more than welcome. =)
Starting from line 191 down. If you're wondering why I created a
patch, well that's because I found thinking in passmanagert.h the most
productive.
--
Regards.
2006 Jan 10
1
[LLVMdev] Re: passmanager, significant rework idea...
...+ PassUnit(Traversal traversal = LINEAR, Pass *Pass) :
> + traversal(traversal),
> +
> + virtual const char *getPMName() const =0;
> +
> + virtual const char *getPassName() const =0;
> +
> + virtual bool runPass(PassClass *P, UnitType *M) =0;
> +};
> +
> +class BBPassUnit : public PassUnit {
> + BasicBlockPass *BBPass;
> +
> +public:
> + BBPassUnit(Traversal traversal = LINEAR, BasicBlockPass *Pass) :
> + PassUnit::traversal(traversal),
> + PassUnit::Pass(static_cast<Pass*>(Pass))
> + BBPassUnit::BBPass(Pass) {}
> +};
> +...