diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2021-11-08 12:07:26 +0000 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2021-11-08 12:07:38 +0000 |
commit | f60d3ec0c7fd324bccf2275c8f28c390b2b5f069 (patch) | |
tree | 592ee9b0c763dd75897cd9152e6bff5cb7bf6d08 /clang/lib/Frontend/InitPreprocessor.cpp | |
parent | 1726c956aea0ec524dcd602b1add733cffebe2e9 (diff) | |
download | llvm-f60d3ec0c7fd324bccf2275c8f28c390b2b5f069.zip llvm-f60d3ec0c7fd324bccf2275c8f28c390b2b5f069.tar.gz llvm-f60d3ec0c7fd324bccf2275c8f28c390b2b5f069.tar.bz2 |
[DAG] Add BuildVectorSDNode::getConstantRawBits helper
We have several places where we need to extract the raw bits data from a BUILD_VECTOR node, so consolidate this to a single helper function that handles Undefs and Integer/FP constants, including implicit truncation.
This should make it easier to extend D113202 to handle more constant folding of bitcasted constant data.
Differential Revision: https://reviews.llvm.org/D113351
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions