aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/ModuleBuilder.cpp
diff options
context:
space:
mode:
authorM. Zeeshan Siddiqui <mzs@microsoft.com>2023-05-27 11:45:12 +0800
committerPhoebe Wang <phoebe.wang@intel.com>2023-05-27 13:33:50 +0800
commite62175736551abf40a3410bc246f58e650eb8158 (patch)
tree51400d3e4a153c855d5b9d06b17207b7df3e47df /clang/lib/CodeGen/ModuleBuilder.cpp
parentaddc156f59c17345ec09b725d82a65e55792700e (diff)
downloadllvm-e62175736551abf40a3410bc246f58e650eb8158.zip
llvm-e62175736551abf40a3410bc246f58e650eb8158.tar.gz
llvm-e62175736551abf40a3410bc246f58e650eb8158.tar.bz2
[Clang][BFloat16] Upgrade __bf16 to arithmetic type, change mangling, and extend excess precision support
Pursuant to discussions at https://discourse.llvm.org/t/rfc-c-23-p1467r9-extended-floating-point-types-and-standard-names/70033/22, this commit enhances the handling of the __bf16 type in Clang. - Firstly, it upgrades __bf16 from a storage-only type to an arithmetic type. - Secondly, it changes the mangling of __bf16 to DF16b on all architectures except ARM. This change has been made in accordance with the finalization of the mangling for the std::bfloat16_t type, as discussed at https://github.com/itanium-cxx-abi/cxx-abi/pull/147. - Finally, this commit extends the existing excess precision support to the __bf16 type. This applies to hardware architectures that do not natively support bfloat16 arithmetic. Appropriate tests have been added to verify the effects of these changes and ensure no regressions in other areas of the compiler. Reviewed By: rjmccall, pengfei, zahiraam Differential Revision: https://reviews.llvm.org/D150913
Diffstat (limited to 'clang/lib/CodeGen/ModuleBuilder.cpp')
0 files changed, 0 insertions, 0 deletions