On Feb 6, 2013, at 6:05 AM, "Benyei, Guy" <[email protected]> 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.
_______________________________________________
cfe-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits