[clang] [HLSL] add BuiltinsHLSL and set it up as target builtins. (PR #81902)
Farzon Lotfi via cfe-commits
cfe-commits at lists.llvm.org
Thu Feb 15 10:56:22 PST 2024
farzonl wrote:
create handle test:
```
D:\projects\llvm-project>python ..\directx-llvm-build\bin\llvm-lit.py -sv clang\test\CodeGenHLSL\builtins\create_handle.hlsl
llvm-lit.py: D:\projects\llvm-project\llvm\utils\lit\lit\llvm\config.py:57: note: using lit tools: C:\Program Files\Git\usr\bin
llvm-lit.py: D:\projects\llvm-project\llvm\utils\lit\lit\llvm\config.py:502: note: using clang: d:\projects\directx-llvm-build\bin\clang.exe
-- Testing: 1 tests, 1 workers --
Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
Testing Time: 6.71s
Total Discovered Tests: 1
Passed: 1 (100.00%)
```
WaveActiveCountBits Sema Tests:
```
D:\projects\llvm-project>python ..\directx-llvm-build\bin\llvm-lit.py -sv clang\test\SemaHLSL\WaveBuiltinAvailability.hlsl
llvm-lit.py: D:\projects\llvm-project\llvm\utils\lit\lit\llvm\config.py:57: note: using lit tools: C:\Program Files\Git\usr\bin
llvm-lit.py: D:\projects\llvm-project\llvm\utils\lit\lit\llvm\config.py:502: note: using clang: d:\projects\directx-llvm-build\bin\clang.exe
-- Testing: 1 tests, 1 workers --
Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
Testing Time: 0.37s
Total Discovered Tests: 1
Passed: 1 (100.00%)
D:\projects\llvm-project>python ..\directx-llvm-build\bin\llvm-lit.py -sv clang\test\SemaHLSL\Wave.hlsl
llvm-lit.py: D:\projects\llvm-project\llvm\utils\lit\lit\llvm\config.py:57: note: using lit tools: C:\Program Files\Git\usr\bin
llvm-lit.py: D:\projects\llvm-project\llvm\utils\lit\lit\llvm\config.py:502: note: using clang: d:\projects\directx-llvm-build\bin\clang.exe
-- Testing: 1 tests, 1 workers --
Testing: 0.. 10.. 20.. 30.. 40.. 50.. 60.. 70.. 80.. 90..
Testing Time: 0.28s
Total Discovered Tests: 1
Passed: 1 (100.00%)
```
https://github.com/llvm/llvm-project/pull/81902
More information about the cfe-commits
mailing list