[clang][RISCV] Set HasLegalHalfType to true if zhinx is enabled
authorAlex Bradbury <asb@igalia.com>
Thu, 18 May 2023 14:01:48 +0000 (15:01 +0100)
committerAlex Bradbury <asb@igalia.com>
Thu, 18 May 2023 14:01:48 +0000 (15:01 +0100)
commit8e82376863460f6dc2dbb7fe6754af3ba69cc9c4
tree77c1ba59eb8836a71a29a78cfeb1e212a1a60880
parent0bf5f632ed53cb8c986d69168589228014522e1b
[clang][RISCV] Set HasLegalHalfType to true if zhinx is enabled

Now that codegen support for zhinx in landed (D149811), we should set
HasLegalHalfType=true for zhinx (see D145071 for the patch doing this
for zfh).

Differential Revision: https://reviews.llvm.org/D150777
clang/lib/Basic/Targets/RISCV.cpp
clang/test/CodeGen/RISCV/Float16-arith.c