[PATCH] D124790: [HLSL] Enable half type for hlsl.

Xiang Li via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 2 11:16:06 PDT 2022


python3kgae created this revision.
python3kgae added reviewers: Anastasia, aaron.ballman, beanz, pow2clk.
Herald added a subscriber: dexonsmith.
Herald added a project: All.
python3kgae requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay.
Herald added a project: clang.

HLSL supports half type.
When enable-16bit-types is not set, half will be treated as float.
When enable-16bit-types is set, half will be treated like real 16bit float type and map to llvm half type.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D124790

Files:
  clang/include/clang/Driver/Options.td
  clang/lib/Basic/LangOptions.cpp
  clang/lib/Basic/Targets/DirectX.h
  clang/lib/Driver/ToolChains/Clang.cpp
  clang/lib/Sema/SemaType.cpp
  clang/test/CodeGenHLSL/half.hlsl

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D124790.426461.patch
Type: text/x-patch
Size: 4350 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220502/4238e1ab/attachment.bin>


More information about the cfe-commits mailing list