[LLVMdev] another question

Vikram S. Adve vadve at cs.uiuc.edu
Mon Sep 16 17:21:00 PDT 2002

> Can you
> explain to me a little about what you can cast and what
> cannot?

I believe Bill and Chris addressed all your other questions.  About the one

An instance of any of the subclasses of Value can be used as an operand of a
templated cast operation.  In general, you use those operations to cast from
an object of some class to an object of one of its superclasses (e.g., Value
to Instruction).

If you are not sure whether you can cast to a particular class, check if
that class defines the classof() member functions.


More information about the llvm-dev mailing list