summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/Sema.h
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2008-05-27 03:33:27 +0000
committerEli Friedman <eli.friedman@gmail.com>2008-05-27 03:33:27 +0000
commit3e113409cb69ad9bc10224c333e47dc8395caef9 (patch)
tree0e50bae64a6b513c6eae5f814f7a2d3bae56cc26 /clang/lib/Sema/Sema.h
parent42ed07e10e19c979824045d55eac6340155eb16d (diff)
downloadbcm5719-llvm-3e113409cb69ad9bc10224c333e47dc8395caef9.tar.gz
bcm5719-llvm-3e113409cb69ad9bc10224c333e47dc8395caef9.zip
Implementation of gcc mode attribute; this is significant because
it fixes PR2204. Not too much to say about the implementation; it works in a similar way to the vector size attribute. At some point, we need to modify the targets to provide information about the appropriate types. llvm-svn: 51577
Diffstat (limited to 'clang/lib/Sema/Sema.h')
-rw-r--r--clang/lib/Sema/Sema.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/clang/lib/Sema/Sema.h b/clang/lib/Sema/Sema.h
index e7e66054588..5d9113e99df 100644
--- a/clang/lib/Sema/Sema.h
+++ b/clang/lib/Sema/Sema.h
@@ -299,7 +299,13 @@ private:
/// The raw attribute contains 1 argument, the id of the address space
/// for the type.
QualType HandleAddressSpaceTypeAttribute(QualType curType,
- AttributeList *rawAttr);
+ AttributeList *rawAttr);
+
+ /// HandleModeTypeAttribute - this attribute modifies the width of a
+ /// primitive type. Note that this is a variable attribute, and not
+ /// a type attribute.
+ QualType HandleModeTypeAttribute(QualType curType,
+ AttributeList *rawAttr);
// HandleVectorTypeAttribute - this attribute is only applicable to
// integral and float scalars, although arrays, pointers, and function
@@ -723,6 +729,10 @@ private:
// UsualUnaryConversions - promotes integers (C99 6.3.1.1p2) and converts
// functions and arrays to their respective pointers (C99 6.3.2.1).
Expr *UsualUnaryConversions(Expr *&expr);
+
+ // UsualUnaryConversionType - Same as UsualUnaryConversions, but works
+ // on types instead of expressions
+ QualType UsualUnaryConversionType(QualType Ty);
// DefaultFunctionArrayConversion - converts functions and arrays
// to their respective pointers (C99 6.3.2.1).
OpenPOWER on IntegriCloud