[RISCV] Support overloaded version ntlh intrinsic function
commit2df05cd01c17f3ef720e554dc7cde43df27e5224
authorPiyou Chen <piyou.chen@sifive.com>
Thu, 27 Jul 2023 05:04:33 +0000 (26 22:04 -0700)
committerPiyou Chen <piyou.chen@sifive.com>
Fri, 4 Aug 2023 07:39:25 +0000 (4 00:39 -0700)
tree45915c1f62f3e66a298991420a80bc751039c89a
parentb80ff2fec674b3db9ae0827c0ebd5dbbecbf1dbe
[RISCV] Support overloaded version ntlh intrinsic function

Here is the proposal https://github.com/riscv-non-isa/riscv-c-api-doc/pull/47.

The version that omit the domain argument imply domain=__RISCV_NTLH_ALL.

```
type __riscv_ntl_load (type *ptr);
void __riscv_ntl_store (type *ptr, type val);
```

Reviewed By: kito-cheng, craig.topper

Differential Revision: https://reviews.llvm.org/D156221
clang/lib/CodeGen/CGBuiltin.cpp
clang/lib/Headers/riscv_ntlh.h
clang/lib/Sema/SemaChecking.cpp
clang/test/CodeGen/RISCV/ntlh-intrinsics/riscv32-zihintntl.c