[LLVMdev] Type visitor?
Chris Lattner
sabre at nondot.org
Tue Nov 28 10:57:30 PST 2006
On Tue, 28 Nov 2006, [ISO-8859-1] Pertti Kellomäki wrote:
> Is there some fundamental reason why instructions have a
> visitor interface but types do not? Or does the support
> in fact exist and I am just blind?
There is no specific reason, one just hasn't been needed so far. Visitors
are generally useful for large class hierarchies or ones which are often
extended. The type hierarchy is relatively stable and small.
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
More information about the llvm-dev
mailing list