[llvm] r290244 - [X86] Vectorcall Calling Convention - Adding CodeGen Complete Support

Oren Ben Simhon via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 21 00:59:42 PST 2016


Author: orenb
Date: Wed Dec 21 02:59:42 2016
New Revision: 290244

URL: http://llvm.org/viewvc/llvm-project?rev=290244&view=rev
Log:
[X86] Vectorcall Calling Convention - Adding CodeGen Complete Support

Fixing build issues.


Modified:
    llvm/trunk/lib/Target/X86/X86CallingConv.cpp

Modified: llvm/trunk/lib/Target/X86/X86CallingConv.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86CallingConv.cpp?rev=290244&r1=290243&r2=290244&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86CallingConv.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86CallingConv.cpp Wed Dec 21 02:59:42 2016
@@ -62,23 +62,23 @@ static ArrayRef<MCPhysReg> CC_X86_Vector
   if (ValVT.is512BitVector()) {
     static const MCPhysReg RegListZMM[] = {X86::ZMM0, X86::ZMM1, X86::ZMM2,
                                            X86::ZMM3, X86::ZMM4, X86::ZMM5};
-    return RegListZMM;
+    return makeArrayRef(std::begin(RegListZMM), std::end(RegListZMM));
   }
 
   if (ValVT.is256BitVector()) {
     static const MCPhysReg RegListYMM[] = {X86::YMM0, X86::YMM1, X86::YMM2,
                                            X86::YMM3, X86::YMM4, X86::YMM5};
-    return RegListYMM;
+    return makeArrayRef(std::begin(RegListYMM), std::end(RegListYMM));
   }
 
   static const MCPhysReg RegListXMM[] = {X86::XMM0, X86::XMM1, X86::XMM2,
                                          X86::XMM3, X86::XMM4, X86::XMM5};
-  return RegListXMM;
+  return makeArrayRef(std::begin(RegListXMM), std::end(RegListXMM));
 }
 
 static ArrayRef<MCPhysReg> CC_X86_64_VectorCallGetGPRs() {
   static const MCPhysReg RegListGPR[] = {X86::RCX, X86::RDX, X86::R8, X86::R9};
-  return RegListGPR;
+  return makeArrayRef(std::begin(RegListGPR), std::end(RegListGPR));
 }
 
 static bool CC_X86_VectorCallAssignRegister(unsigned &ValNo, MVT &ValVT,




More information about the llvm-commits mailing list