[clang] [UEFI] X86_64 UEFI Clang Driver (PR #76838)

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Thu Jan 11 15:40:24 PST 2024


================
@@ -819,6 +819,43 @@ class LLVM_LIBRARY_VISIBILITY X86_64TargetInfo : public X86TargetInfo {
   }
 };
 
+// x86-64 UEFI target
+class LLVM_LIBRARY_VISIBILITY UEFIX86_64TargetInfo
+    : public UEFITargetInfo<X86_64TargetInfo> {
+public:
+  UEFIX86_64TargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts)
+      : UEFITargetInfo<X86_64TargetInfo>(Triple, Opts) {
----------------
MaskRay wrote:

This clangBasic change needs a `clang/test/CodeGen` test for things including: data layout , calling convention.

https://github.com/llvm/llvm-project/pull/76838


More information about the cfe-commits mailing list