[PATCH] D131594: WORK IN PROGRESS Add Clang UEFI target to support "x86_64-unknown-uefi" triple
Petr Hosek via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Oct 18 15:10:06 PDT 2022
phosek added inline comments.
================
Comment at: clang/lib/Basic/Targets/X86.h:812-828
+ case CC_X86StdCall:
+ case CC_X86ThisCall:
+ case CC_X86FastCall:
+ return CCCR_Ignore;
+ case CC_C:
+ case CC_X86VectorCall:
+ case CC_IntelOclBicc:
----------------
According to https://wiki.osdev.org/UEFI#Calling_Conventions, only cdecl, Microsoft's 64-bit calling convention and ARM SMC are supported for UEFI. This would translate to `CC_C` and `CC_Win64` (I'm not sure if SMC is supported by Clang, it doesn't appear to be).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D131594/new/
https://reviews.llvm.org/D131594
More information about the cfe-commits
mailing list