craig.topper added inline comments.

================
Comment at: clang/lib/CodeGen/CodeGenTypes.cpp:632
+#define RVV_TYPE(Name, Id, SingletonId)                                        
\
+  case BuiltinType::Id: {                                                      
\
+    ASTContext::BuiltinVectorTypeInfo Info =                                   
\
----------------
Why did this code need to move into the macro body? It was written the way it 
was before to avoid code duplication.


================
Comment at: clang/lib/CodeGen/CodeGenTypes.cpp:641
+  case BuiltinType::Id: {                                                      
\
+    ASTContext::BuiltinVectorTypeInfo Info =                                   
\
+        Context.getBuiltinVectorTypeInfo(cast<BuiltinType>(Ty));               
\
----------------
Can you unify tuple and non-tuple by checking Info.NumVectors != 1?


================
Comment at: clang/lib/CodeGen/CodeGenTypes.cpp:645
+        ConvertType(Info.ElementType), Info.EC.getKnownMinValue());            
\
+    llvm::SmallVector<llvm::Type *, 4> EltTys;                                 
\
+    for (unsigned I = 0; I < Info.NumVectors; ++I)                             
\
----------------
`llvm::SmallVector<llvm::Type *, 4> EltTys(Info.NumVectors, EltTy)`


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D146873/new/

https://reviews.llvm.org/D146873

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to