3,405 changes: 3,405 additions & 0 deletions clang/lib/CodeGen/Targets/X86.cpp

Large diffs are not rendered by default.

662 changes: 662 additions & 0 deletions clang/lib/CodeGen/Targets/XCore.cpp

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion clang/test/CodeGenCXX/microsoft-abi-member-pointers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,7 @@ void (B2::*convertMultipleFuncToB2(void (Multiple::*mp)()))() {
return static_cast<void (B2::*)()>(mp);
// FIXME: We should return ptr instead of i32 here. The ptrtoint cast prevents
// LLVM from optimizing away the branch. This is likely a bug in
// lib/CodeGen/TargetInfo.cpp with how we classify memptr types for returns.
// lib/CodeGen/Targets/X86.cpp with how we classify memptr types for returns.
//
// CHECK: define dso_local i32 @"?convertMultipleFuncToB2@@YAP8B2@@AEXXZP8Multiple@@AEXXZ@Z"{{.*}} {
// CHECK: store
Expand Down
27 changes: 27 additions & 0 deletions llvm/utils/gn/secondary/clang/lib/CodeGen/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ static_library("CodeGen") {
"//llvm/lib/Transforms/Utils",
]
sources = [
"ABIInfo.cpp",
"ABIInfoImpl.cpp",
"BackendUtil.cpp",
"CGAtomic.cpp",
"CGBlocks.cpp",
Expand Down Expand Up @@ -96,6 +98,31 @@ static_library("CodeGen") {
"SanitizerMetadata.cpp",
"SwiftCallingConv.cpp",
"TargetInfo.cpp",
"Targets/AArch64.cpp",
"Targets/AMDGPU.cpp",
"Targets/ARC.cpp",
"Targets/ARM.cpp",
"Targets/AVR.cpp",
"Targets/BPF.cpp",
"Targets/CSKY.cpp",
"Targets/Hexagon.cpp",
"Targets/Lanai.cpp",
"Targets/LoongArch.cpp",
"Targets/M68k.cpp",
"Targets/MSP430.cpp",
"Targets/Mips.cpp",
"Targets/NVPTX.cpp",
"Targets/PNaCl.cpp",
"Targets/PPC.cpp",
"Targets/RISCV.cpp",
"Targets/SPIR.cpp",
"Targets/Sparc.cpp",
"Targets/SystemZ.cpp",
"Targets/TCE.cpp",
"Targets/VE.cpp",
"Targets/WebAssembly.cpp",
"Targets/X86.cpp",
"Targets/XCore.cpp",
"VarBypassDetector.cpp",
]
}