aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2009-07-09 22:01:03 +0000
committerEli Friedman <eli.friedman@gmail.com>2009-07-09 22:01:03 +0000
commitc680ac90032bf455b2bba77de538fccea08eb267 (patch)
tree00f8af7d1bfa6165c868a13adc39b98f4f7dd522 /include
parent6dded67b0d6262964e22163d0ab37c9ee6957c0a (diff)
downloadexternal_llvm-c680ac90032bf455b2bba77de538fccea08eb267.zip
external_llvm-c680ac90032bf455b2bba77de538fccea08eb267.tar.gz
external_llvm-c680ac90032bf455b2bba77de538fccea08eb267.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.h4
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