diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2009-07-09 22:01:03 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2009-07-09 22:01:03 +0000 |
commit | f1896f2694f5bc4aa4d10c3007821e0772889f24 (patch) | |
tree | 00f8af7d1bfa6165c868a13adc39b98f4f7dd522 /include | |
parent | e3dad534b10bde98cd888de509c948c5f34f9e0a (diff) | |
download | external_llvm-f1896f2694f5bc4aa4d10c3007821e0772889f24.zip external_llvm-f1896f2694f5bc4aa4d10c3007821e0772889f24.tar.gz external_llvm-f1896f2694f5bc4aa4d10c3007821e0772889f24.tar.bz2 |
Make EXTRACT_VECTOR_ELT a bit more flexible in terms of the returned
value. Adjust other code to deal with that correctly. Make
DAGTypeLegalizer::PromoteIntRes_EXTRACT_VECTOR_ELT take advantage of
this new flexibility to simplify the code and make it deal with unusual
vectors (like <4 x i1>) correctly. Fixes PR3037.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@75176 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/CodeGen/SelectionDAGNodes.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/CodeGen/SelectionDAGNodes.h b/include/llvm/CodeGen/SelectionDAGNodes.h index ac345af..62c3769 100644 --- a/include/llvm/CodeGen/SelectionDAGNodes.h +++ b/include/llvm/CodeGen/SelectionDAGNodes.h @@ -303,7 +303,9 @@ namespace ISD { INSERT_VECTOR_ELT, /// EXTRACT_VECTOR_ELT(VECTOR, IDX) - Returns a single element from VECTOR - /// identified by the (potentially variable) element number IDX. + /// identified by the (potentially variable) element number IDX. If the + /// return type is an integer type larger than the element type of the + /// vector, the result is extended to the width of the return type. EXTRACT_VECTOR_ELT, /// CONCAT_VECTORS(VECTOR0, VECTOR1, ...) - Given a number of values of |