[PATCH]Handle intel_ocl_bicc calling convention

John McCall rjmccall at apple.com
Thu Feb 7 11:50:13 PST 2013


On Feb 6, 2013, at 6:05 AM, "Benyei, Guy" <guy.benyei at intel.com> wrote:
> Attached a patch, which changes the ABI for functions with intel_ocl_bicc for x86_64 non-windows targets.
> This patch is needed to support the Intel OpenCL builtin library.

-    unsigned neededInt, neededSSE;
-    it->info = classifyArgumentType(it->type, freeIntRegs, neededInt,
-                                    neededSSE);
+    if (FI.getCallingConvention() == llvm::CallingConv::Intel_OCL_BI)
+      it->info = classifyOCLBIType(it->type);
+    else {

Instead of reindenting the main loop body, please just do this at the top:

  if (FI.getCallingConvention() == llvm::CallingConv::Intel_OCL_BI) {
    it->info = classifyOCLBIType(it->type);
    continue;
  }

John.




More information about the cfe-commits mailing list