Changeset View
Changeset View
Standalone View
Standalone View
contrib/llvm/tools/clang/lib/Basic/Targets/PPC.h
Show First 20 Lines • Show All 366 Lines • ▼ Show 20 Lines | PPC64TargetInfo(const llvm::Triple &Triple, const TargetOptions &Opts) | ||||
} else { | } else { | ||||
resetDataLayout("E-m:e-i64:64-n32:64"); | resetDataLayout("E-m:e-i64:64-n32:64"); | ||||
} | } | ||||
switch (Triple.getOS()) { | switch (Triple.getOS()) { | ||||
case llvm::Triple::FreeBSD: | case llvm::Triple::FreeBSD: | ||||
LongDoubleWidth = LongDoubleAlign = 64; | LongDoubleWidth = LongDoubleAlign = 64; | ||||
LongDoubleFormat = &llvm::APFloat::IEEEdouble(); | LongDoubleFormat = &llvm::APFloat::IEEEdouble(); | ||||
if (Triple.getOSMajorVersion() >= 13) | |||||
ABI = "elfv2"; | |||||
break; | break; | ||||
default: | default: | ||||
break; | break; | ||||
} | } | ||||
// PPC64 supports atomics up to 8 bytes. | // PPC64 supports atomics up to 8 bytes. | ||||
MaxAtomicPromoteWidth = MaxAtomicInlineWidth = 64; | MaxAtomicPromoteWidth = MaxAtomicInlineWidth = 64; | ||||
} | } | ||||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |