Comment for EXTRACT_VECTOR_ELT

Jonas Paulsson via llvm-commits llvm-commits at lists.llvm.org
Mon Jan 16 06:51:24 PST 2017


Hi,

I would like to see the comment for EXTRACT_VECTOR_ELT in ISDOpcodes.h 
clarified. Is my patch correct in assuming that an any-extend is allowed?

/Jonas

diff --git a/include/llvm/CodeGen/ISDOpcodes.h 
b/include/llvm/CodeGen/ISDOpcodes.h
index df700bf..87207ee 100644
--- a/include/llvm/CodeGen/ISDOpcodes.h
+++ b/include/llvm/CodeGen/ISDOpcodes.h
@@ -281,7 +281,7 @@ namespace ISD {
      /// EXTRACT_VECTOR_ELT(VECTOR, IDX) - Returns a single element 
from VECTOR
      /// 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.
+    /// vector, the result is any-extended to the width of the return type.
      EXTRACT_VECTOR_ELT,




More information about the llvm-commits mailing list