[llvm-commits] Patches to build EFI with clang/llvm
Carl Norum
carl.norum at apple.com
Tue Jan 25 16:37:59 PST 2011
On Jan 25, 2011, at 4:32 PM, Jakob Stoklund Olesen wrote:
>
> 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?
I'll see what I can do.
>> +// 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.
It very well might; I sort of inherited this code, so I'll have to dig around a bit before figuring that all out. Has that patch gone into TOT, and if not, where can I get it from?
-- Carl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20110125/5bc0951f/attachment.html>
More information about the llvm-commits
mailing list