Added subclass ConstantExpr to represent expressions consructed from
authorVikram S. Adve <vadve@cs.uiuc.edu>
Sun, 14 Jul 2002 22:47:54 +0000 (22:47 +0000)
committerVikram S. Adve <vadve@cs.uiuc.edu>
Sun, 14 Jul 2002 22:47:54 +0000 (22:47 +0000)
commit29ab9f83481cd21abf3055c7c32ea1df953ae167
treefb88cdc6bbc9b9fbda549c6ed56bf6015b6da288
parent4a717d4a478ec40eb3b42078843af2291203ea21
Added subclass ConstantExpr to represent expressions consructed from
constants using operators such as cast, getelementptr, add, shl, etc.
Note that a ConstantExpr can be of any type, so classof() in most
other subclasses (that discriminate by type) have to check that it
is also not a ConstantExpr.   This is why isConstantExpr() is needed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2891 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Constants.h