[llvm-commits] [hlvm] r38244 - /hlvm/trunk/hlvm/AST/Node.h
Reid Spencer
reid at x10sys.com
Sat Jul 7 17:01:34 PDT 2007
Author: reid
Date: Sat Jul 7 19:01:34 2007
New Revision: 38244
URL: http://llvm.org/viewvc/llvm-project?rev=38244&view=rev
Log:
Add detection of real number types.
Modified:
hlvm/trunk/hlvm/AST/Node.h
Modified: hlvm/trunk/hlvm/AST/Node.h
URL: http://llvm.org/viewvc/llvm-project/hlvm/trunk/hlvm/AST/Node.h?rev=38244&r1=38243&r2=38244&view=diff
==============================================================================
--- hlvm/trunk/hlvm/AST/Node.h (original)
+++ hlvm/trunk/hlvm/AST/Node.h Sat Jul 7 19:01:34 2007
@@ -322,6 +322,10 @@
(id == IntegerTypeID) || (id == RangeTypeID) ||
(id == EnumerationTypeID); }
+ inline bool isRealType() const {
+ return (id >= Float32TypeID && id <= Float128TypeID) ||
+ (id == RealTypeID); }
+
/// Determine if the node is a primitive type
inline bool isPrimitiveType() const {
return id >= FirstPrimitiveTypeID &&
More information about the llvm-commits
mailing list