[llvm-commits] Patches to build EFI with clang/llvm

Jakob Stoklund Olesen stoklund at 2pi.dk
Tue Jan 25 16:32:21 PST 2011


On Jan 25, 2011, at 1:47 PM, Carl Norum wrote:

> 
> I've attached some patches to LLVM for review.  We're currently using these patches to build EFI boot ROMs on Mac OS X using clang/llvm.  The biggest change there is putting Windows ABI code into Mach-O objects.  The patch should apply cleanly to r124214 or later - hopefully nothing's gotten in the way so far!
> 
> Questions/comments/suggestions much appreciated!

Thanks, Carl.

Could you separate the Mach-O related changes from the Win64 tail call fixes, please?

> +// Register class for scratch registers available for tailcalls and tailjumps.
> +def ptr_rc_tc : PointerLikeRegClass<2>;
> +

The reason for having a dynamic register class was to avoid creating new Windows-specific pseudo-instructions, but you still have a bunch of new WIN* pseudos.

Takumi recently submitted a patch to do the exact same thing. I think he managed to avoid the new instructions. I think his solution was better, assuming it works for you.

/jakob

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110125/b27be5e4/attachment.html>


More information about the llvm-commits mailing list