Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions clang/lib/CodeGen/CodeGenModule.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,16 @@ static void checkDataLayoutConsistency(const TargetInfo &Target,
Check("__ibm128", llvm::Type::getPPC_FP128Ty(Context), Target.Ibm128Align);

Check("void*", llvm::PointerType::getUnqual(Context), Target.PointerAlign);

if (Triple.f128LibmShouldUseLongDouble() &&
&Target.getLongDoubleFormat() != &llvm::APFloat::IEEEquad()) {
llvm::errs()
<< "For target " << Triple.str()
<< " LLVM wants to use `long double` symbols for `_Float128` libm call "
"lowering, but clang specifies `long double` as "
<< Target.getLongDoubleFormat() << "\n";
abort();
}
#endif
}

Expand Down
3 changes: 2 additions & 1 deletion llvm/include/llvm/CodeGen/TargetLowering.h
Original file line number Diff line number Diff line change
Expand Up @@ -3564,7 +3564,8 @@ class LLVM_ABI TargetLoweringBase {
return Libcalls.getLibcallImpl(Call);
}

/// Get the libcall routine name for the specified libcall.
/// Get the libcall routine name for the specified libcall if implemented,
/// otherwise NULL.
const char *getLibcallName(RTLIB::Libcall Call) const {
return Libcalls.getLibcallName(Call);
}
Expand Down
Loading
Loading