[PATCH] D150913: [Clang][Bfloat16] Upgrade __bf16 to arithmetic type, change mangling, and extend excess precision support.
M. Zeeshan Siddiqui via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu May 18 15:33:07 PDT 2023
codemzs added a comment.
Misc style improvement.
================
Comment at: clang/lib/AST/Type.cpp:2199
if (const auto *BT = dyn_cast<BuiltinType>(CanonicalType))
- return BT->getKind() >= BuiltinType::Bool &&
- BT->getKind() <= BuiltinType::Ibm128 &&
- BT->getKind() != BuiltinType::BFloat16;
+ return BT->getKind() >= BuiltinType::Bool &&
+ BT->getKind() <= BuiltinType::Ibm128;
----------------
Remove the tab whitespace.
================
Comment at: clang/lib/Sema/SemaOverload.cpp:2051-2052
FromType = ToType.getUnqualifiedType();
- } else if (IsTransparentUnionStandardConversion(S, From, ToType,
- InOverloadResolution,
- SCS, CStyle)) {
+ } else if (IsTransparentUnionStandardConversion(
+ S, From, ToType, InOverloadResolution, SCS, CStyle)) {
SCS.Second = ICK_TransparentUnionConversion;
----------------
================
Comment at: clang/test/Sema/arm-bfloat.cpp:45-55
+ a * b;
+ a / b;
+
+ a + c;
+ a - c;
+ a * c;
+ a / c;
----------------
Remove newline.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D150913/new/
https://reviews.llvm.org/D150913
More information about the cfe-commits
mailing list