diff options
| author | Vitaly Buka <vitalybuka@google.com> | 2024-04-10 15:09:22 -0700 |
|---|---|---|
| committer | Vitaly Buka <vitalybuka@google.com> | 2024-04-10 15:09:22 -0700 |
| commit | 3143c5bed137957d78daf72d3bbf26362d6291ac (patch) | |
| tree | 11b1437a369425ee275622868c4d63a79bfda0c4 /clang/lib/CodeGen/CodeGenModule.cpp | |
| parent | 93133e271d02ed558a040469115315e8a66af4a5 (diff) | |
| parent | 9f6d08f2566a26144ea1753f80aebb1f2ecfdc63 (diff) | |
[𝘀𝗽𝗿] changes introduced through rebaseusers/vitalybuka/spr/main.clangbuiltin-implement-__builtin_allow_runtime_check
Created using spr 1.3.4
[skip ci]
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
| -rw-r--r-- | clang/lib/CodeGen/CodeGenModule.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index 00b3bfcaa0bc..75519be8bba0 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -2087,6 +2087,14 @@ void CodeGenModule::SetLLVMFunctionAttributes(GlobalDecl GD, llvm::AttributeList PAL; ConstructAttributeList(F->getName(), Info, GD, PAL, CallingConv, /*AttrOnCallSite=*/false, IsThunk); + if (CallingConv == llvm::CallingConv::X86_VectorCall && + getTarget().getTriple().isWindowsArm64EC()) { + SourceLocation Loc; + if (const Decl *D = GD.getDecl()) + Loc = D->getLocation(); + + Error(Loc, "__vectorcall calling convention is not currently supported"); + } F->setAttributes(PAL); F->setCallingConv(static_cast<llvm::CallingConv::ID>(CallingConv)); } |
