diff options
author | Nate Begeman <natebegeman@mac.com> | 2008-04-18 23:10:10 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2008-04-18 23:10:10 +0000 |
commit | 213541a68a3e137d11d2cefb612c6cdb410d7e8e (patch) | |
tree | 04300b07f5b4a07ac48ad429b2a0770b5b52a09c /lib/AST/Type.cpp | |
parent | 2f0e89ea96292d2974eb1a7dddc0e9870aa86bb7 (diff) |
OCUVector -> ExtVector, shorthand for extended vector, per feedback from Chris.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@49942 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/AST/Type.cpp')
-rw-r--r-- | lib/AST/Type.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/AST/Type.cpp b/lib/AST/Type.cpp index 5040b95e09..741d59bc76 100644 --- a/lib/AST/Type.cpp +++ b/lib/AST/Type.cpp @@ -416,22 +416,22 @@ const VectorType *Type::getAsVectorType() const { return getDesugaredType()->getAsVectorType(); } -const OCUVectorType *Type::getAsOCUVectorType() const { +const ExtVectorType *Type::getAsExtVectorType() const { // Are we directly an OpenCU vector type? - if (const OCUVectorType *VTy = dyn_cast<OCUVectorType>(this)) + if (const ExtVectorType *VTy = dyn_cast<ExtVectorType>(this)) return VTy; // If the canonical form of this type isn't the right kind, reject it. - if (!isa<OCUVectorType>(CanonicalType)) { + if (!isa<ExtVectorType>(CanonicalType)) { // Look through type qualifiers - if (isa<OCUVectorType>(CanonicalType.getUnqualifiedType())) - return CanonicalType.getUnqualifiedType()->getAsOCUVectorType(); + if (isa<ExtVectorType>(CanonicalType.getUnqualifiedType())) + return CanonicalType.getUnqualifiedType()->getAsExtVectorType(); return 0; } - // If this is a typedef for an ocuvector type, strip the typedef off without - // losing all typedef information. - return getDesugaredType()->getAsOCUVectorType(); + // If this is a typedef for an extended vector type, strip the typedef off + // without losing all typedef information. + return getDesugaredType()->getAsExtVectorType(); } const ObjCInterfaceType *Type::getAsObjCInterfaceType() const { @@ -903,8 +903,8 @@ void VectorType::getAsStringInternal(std::string &S) const { ElementType.getAsStringInternal(S); } -void OCUVectorType::getAsStringInternal(std::string &S) const { - S += " __attribute__((ocu_vector_type("; +void ExtVectorType::getAsStringInternal(std::string &S) const { + S += " __attribute__((ext_vector_type("; S += llvm::utostr_32(NumElements); S += ")))"; ElementType.getAsStringInternal(S); |