IR: Split up Constant{Array,Vector}::get(), NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 19 Aug 2014 02:11:30 +0000 (02:11 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 19 Aug 2014 02:11:30 +0000 (02:11 +0000)
commit45d53fd4c4d04b6feb2bc898f0a10ca98643edef
tree12a004997f93b61b049e62624be22170da9d990a
parent6290308366a93cf4730f3c23bb8a4ab72e78e082
IR: Split up Constant{Array,Vector}::get(), NFC

Introduce `getImpl()` that tries the simplification logic from `get()`
and then gives up.  This allows the logic to be reused elsewhere in a
follow-up commit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@215963 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/IR/Constants.h
lib/IR/Constants.cpp