]> granicus.if.org Git - clang/commit
[CodeGen] Clean up CGBuiltin a bit.
authorBenjamin Kramer <benny.kra@googlemail.com>
Tue, 28 Jul 2015 15:40:11 +0000 (15:40 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Tue, 28 Jul 2015 15:40:11 +0000 (15:40 +0000)
commitad75c6f1c1cdf453743779b9338c6f8f648ec256
treee67ff4c2b77b9ca997e5c982c7834bbb33fb6db7
parent10fda73c3034a050b2143378f5c8501120e4217e
[CodeGen] Clean up CGBuiltin a bit.

- Use cached LLVM types
- Turn SmallVectors into Arrays/ArrayRef if the size is static
- Use ConstantInt::get's implicit splatting for vector types

No functionality change intended.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@243425 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGBuiltin.cpp