[clang] [HLSL] prevent generation of wrong double intrinsics. (PR #86932)

2024-03-28 Thread Andrii Levitskiy via cfe-commits
aabysswalker wrote: thanks for review! can you merge that? https://github.com/llvm/llvm-project/pull/86932 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] prevent generation of wrong double intrinsics. (PR #86932)

2024-03-28 Thread Andrii Levitskiy via cfe-commits
https://github.com/aabysswalker edited https://github.com/llvm/llvm-project/pull/86932 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] prevent generation of double intrinsics. (PR #86932)

2024-03-28 Thread Andrii Levitskiy via cfe-commits
https://github.com/aabysswalker updated https://github.com/llvm/llvm-project/pull/86932 >From caec748f3f0ab16b829f7765c5c2d87ed7f7b73f Mon Sep 17 00:00:00 2001 From: aabysswalker Date: Thu, 28 Mar 2024 12:50:25 +0200 Subject: [PATCH 1/2] Prevent generating double of ceil, exp, exp2, floor. Rem

[clang] [HLSL] prevent generation of double intrinsics. (PR #86932)

2024-03-28 Thread Andrii Levitskiy via cfe-commits
@@ -1,12 +1,13 @@ -// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.6-library %s -fnative-half-type -emit-llvm -disable-llvm-passes -verify -DTEST_FUNC=__builtin_elementwise_cos -// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.6

[clang] [HLSL] prevent generation of double intrinsics. (PR #86932)

2024-03-28 Thread Andrii Levitskiy via cfe-commits
https://github.com/aabysswalker created https://github.com/llvm/llvm-project/pull/86932 As #86555, we should cover all of non-double builtins. Closes #86818 >From caec748f3f0ab16b829f7765c5c2d87ed7f7b73f Mon Sep 17 00:00:00 2001 From: aabysswalker Date: Thu, 28 Mar 2024 12:50:25 +0200 Subjec

[clang] [HLSL] prevent generation of double intrinsics. (PR #86930)

2024-03-28 Thread Andrii Levitskiy via cfe-commits
https://github.com/aabysswalker closed https://github.com/llvm/llvm-project/pull/86930 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] remove double impelementation of log, sin, trunc intrinsics (PR #86440)

2024-03-25 Thread Andrii Levitskiy via cfe-commits
aabysswalker wrote: @farzonl Thank for review, i dont have write access, can you merge the PR? btw, i spend long time searching for a tests, but these intrinsics werent really covered, shouldv mentioned that in pr. https://github.com/llvm/llvm-project/pull/86440 ___

[clang] [HLSL] remove double impelementation of log, sin, trunc intrinsics (PR #86440)

2024-03-24 Thread Andrii Levitskiy via cfe-commits
https://github.com/aabysswalker edited https://github.com/llvm/llvm-project/pull/86440 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] remove double impelementation of log, sin, trunc intrinsics (PR #86440)

2024-03-24 Thread Andrii Levitskiy via cfe-commits
https://github.com/aabysswalker created https://github.com/llvm/llvm-project/pull/86440 This change removes the log, log2, log10, sin, trunc intrinsics with parameters of type double as it is not available in the DCX compiler. https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-gra

[clang] [HLSL] remove double impelementation of log, sin, trunc intrinsics (PR #86432)

2024-03-24 Thread Andrii Levitskiy via cfe-commits
https://github.com/aabysswalker closed https://github.com/llvm/llvm-project/pull/86432 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] remove double impelementation of log, sin, trunc intrinsics (PR #86432)

2024-03-24 Thread Andrii Levitskiy via cfe-commits
https://github.com/aabysswalker updated https://github.com/llvm/llvm-project/pull/86432 >From 93e207ccaadb2d6bef60c71af39333dd2685927a Mon Sep 17 00:00:00 2001 From: aabysswalker Date: Sun, 24 Mar 2024 13:48:17 +0200 Subject: [PATCH] This change removes the log, log2, log10, sin, trunc intrins

[clang] [HLSL] remove double impelementation of log, sin, trunc intrinsics (PR #86432)

2024-03-24 Thread Andrii Levitskiy via cfe-commits
https://github.com/aabysswalker edited https://github.com/llvm/llvm-project/pull/86432 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [HLSL] remove double impelementation of log, sin, trunc intrinsics (PR #86432)

2024-03-24 Thread Andrii Levitskiy via cfe-commits
https://github.com/aabysswalker created https://github.com/llvm/llvm-project/pull/86432 This change removes the log, log2, log10, sin, trunc intrinsics with parameters of type double as it is not available in the DCX compiler. https://learn.microsoft.com/en-us/windows/win32/direct3dhlsl/dx-gra