]> granicus.if.org Git - clang/commit
Implement Eli's feedback for vecto constant expressions;
authorNate Begeman <natebegeman@mac.com>
Wed, 1 Jul 2009 07:50:47 +0000 (07:50 +0000)
committerNate Begeman <natebegeman@mac.com>
Wed, 1 Jul 2009 07:50:47 +0000 (07:50 +0000)
commitc0b8b19bd8056d6b5d831623a0825cce150f4507
treecc6836b9b2cb94172bf782a4089fa5dfa70b81b1
parentb59761b2530bf54926bf67de11956f3820ac38d9
Implement Eli's feedback for vecto constant expressions;

For ExtVectorType, initializer is splatted to all elements.
For VectorType, initializer is bitcast to vector type.

Verified that for VectorType, output is identical to gcc.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@74600 91177308-0d34-0410-b5e6-96231b3b80d8
lib/AST/ExprConstant.cpp