Author: yaxunl
Date: Tue Apr 24 18:10:37 2018
New Revision: 330790
URL: http://llvm.org/viewvc/llvm-project?rev=330790&view=rev
Log:
[HIP] Add hip input kind and codegen for kernel launching
HIP is a language similar to CUDA
(https://github.com/ROCm-Developer-Tools/HIP/blob/master/docs/markdown/
Author: yaxunl
Date: Tue Apr 24 19:34:04 2018
New Revision: 330793
URL: http://llvm.org/viewvc/llvm-project?rev=330793&view=rev
Log:
Fix failure in lit test kernel-call.cu
There is signext on ppc64. Just remove check for function argument.
Modified:
cfe/trunk/test/CodeGenCUDA/kernel-call.cu
Author: yaxunl
Date: Tue Apr 24 20:16:07 2018
New Revision: 330795
URL: http://llvm.org/viewvc/llvm-project?rev=330795&view=rev
Log:
Fix lit test kernel-call.cu failure on ps4 due to dso_local
Modified:
cfe/trunk/test/CodeGenCUDA/kernel-call.cu
Modified: cfe/trunk/test/CodeGenCUDA/kernel-cal
Author: yaxunl
Date: Wed Apr 25 06:07:58 2018
New Revision: 330821
URL: http://llvm.org/viewvc/llvm-project?rev=330821&view=rev
Log:
Fix failure in lit test kernel-call.cu due to name mangling
Modified:
cfe/trunk/test/CodeGenCUDA/kernel-call.cu
Modified: cfe/trunk/test/CodeGenCUDA/kernel-cal
Author: yaxunl
Date: Wed Apr 25 06:33:19 2018
New Revision: 330824
URL: http://llvm.org/viewvc/llvm-project?rev=330824&view=rev
Log:
[HIP] Add predefined macros __HIPCC__ and __HIP_DEVICE_COMPILE__
Differential Revision: https://reviews.llvm.org/D45441
Modified:
cfe/trunk/lib/Frontend/InitPr
Author: yaxunl
Date: Wed Oct 9 11:46:43 2019
New Revision: 374198
URL: http://llvm.org/viewvc/llvm-project?rev=374198&view=rev
Log:
[HIP] Fix -save-temps
Currently clang does not save some of the intermediate file generated during
device compilation for HIP when -save-temps is specified.
This
Author: yaxunl
Date: Wed Oct 9 16:54:10 2019
New Revision: 374263
URL: http://llvm.org/viewvc/llvm-project?rev=374263&view=rev
Log:
[CUDA][HIP] Fix host/device check with -fopenmp
CUDA/HIP program may be compiled with -fopenmp. In this case, -fopenmp is only
passed to host compilation
to take a
Author: yaxunl
Date: Thu Oct 10 15:43:00 2019
New Revision: 374467
URL: http://llvm.org/viewvc/llvm-project?rev=374467&view=rev
Log:
Fix help message for -ffp-contract
Differential Revision: https://reviews.llvm.org/D68823
Modified:
cfe/trunk/include/clang/Driver/Options.td
Modified: cfe/tr
Author: yaxunl
Date: Thu Oct 10 19:43:28 2019
New Revision: 374502
URL: http://llvm.org/viewvc/llvm-project?rev=374502&view=rev
Log:
[CUDA][HIP} Add a test for constexpr default ctor
Differential Revision: https://reviews.llvm.org/D68753
Added:
cfe/trunk/test/SemaCUDA/constexpr-ctor.cu
Adde
Author: yaxunl
Date: Sun Oct 20 08:02:22 2019
New Revision: 375362
URL: http://llvm.org/viewvc/llvm-project?rev=375362&view=rev
Log:
[AMDGPU] Fix assertion due to initializer list
Sometimes a global var is replaced by a different llvm value. clang use
GetAddrOfGlobalVar to get the original llvm
Author: Yaxun (Sam) Liu
Date: 2019-10-22T16:06:20-04:00
New Revision: 68f5ca4e19c16f12895a6f0b9fbabc1d86c4b6b0
URL:
https://github.com/llvm/llvm-project/commit/68f5ca4e19c16f12895a6f0b9fbabc1d86c4b6b0
DIFF:
https://github.com/llvm/llvm-project/commit/68f5ca4e19c16f12895a6f0b9fbabc1d86c4b6b0.dif
Author: Yaxun (Sam) Liu
Date: 2019-10-22T16:36:28-04:00
New Revision: 1c98ff49a30b88a2601b92e8702ff2058c4fc226
URL:
https://github.com/llvm/llvm-project/commit/1c98ff49a30b88a2601b92e8702ff2058c4fc226
DIFF:
https://github.com/llvm/llvm-project/commit/1c98ff49a30b88a2601b92e8702ff2058c4fc226.dif
Author: Yaxun (Sam) Liu
Date: 2020-05-21T09:02:56-04:00
New Revision: 361e4f14e35981e7498a38ab7c31da7fb7414fb8
URL:
https://github.com/llvm/llvm-project/commit/361e4f14e35981e7498a38ab7c31da7fb7414fb8
DIFF:
https://github.com/llvm/llvm-project/commit/361e4f14e35981e7498a38ab7c31da7fb7414fb8.dif
Author: Yaxun (Sam) Liu
Date: 2020-05-21T11:01:40-04:00
New Revision: 3ef11346f391e6e3da0cfa25f9f7dac22771438e
URL:
https://github.com/llvm/llvm-project/commit/3ef11346f391e6e3da0cfa25f9f7dac22771438e
DIFF:
https://github.com/llvm/llvm-project/commit/3ef11346f391e6e3da0cfa25f9f7dac22771438e.dif
Author: Yaxun (Sam) Liu
Date: 2020-07-17T07:51:55-04:00
New Revision: 4fc752b30b9acac73a282cb844a6240e6cb70cca
URL:
https://github.com/llvm/llvm-project/commit/4fc752b30b9acac73a282cb844a6240e6cb70cca
DIFF:
https://github.com/llvm/llvm-project/commit/4fc752b30b9acac73a282cb844a6240e6cb70cca.dif
Author: Yaxun (Sam) Liu
Date: 2020-07-17T08:10:56-04:00
New Revision: a46ef7d42dc8aa5083319bef678262bddf299f82
URL:
https://github.com/llvm/llvm-project/commit/a46ef7d42dc8aa5083319bef678262bddf299f82
DIFF:
https://github.com/llvm/llvm-project/commit/a46ef7d42dc8aa5083319bef678262bddf299f82.dif
Author: Yaxun (Sam) Liu
Date: 2020-07-17T09:14:39-04:00
New Revision: 9275e14379961a4304de559f16fdbac275fb6301
URL:
https://github.com/llvm/llvm-project/commit/9275e14379961a4304de559f16fdbac275fb6301
DIFF:
https://github.com/llvm/llvm-project/commit/9275e14379961a4304de559f16fdbac275fb6301.dif
Author: Yaxun (Sam) Liu
Date: 2020-07-21T17:39:46-04:00
New Revision: ce04d4e39c936528fa0e0dc49fdf376eaee21f14
URL:
https://github.com/llvm/llvm-project/commit/ce04d4e39c936528fa0e0dc49fdf376eaee21f14
DIFF:
https://github.com/llvm/llvm-project/commit/ce04d4e39c936528fa0e0dc49fdf376eaee21f14.dif
Author: Yaxun (Sam) Liu
Date: 2020-04-03T09:08:13-04:00
New Revision: a46e7d7a5f60b452340eb8ebc873538659c73e78
URL:
https://github.com/llvm/llvm-project/commit/a46e7d7a5f60b452340eb8ebc873538659c73e78
DIFF:
https://github.com/llvm/llvm-project/commit/a46e7d7a5f60b452340eb8ebc873538659c73e78.dif
Author: Yaxun (Sam) Liu
Date: 2020-04-03T09:56:30-04:00
New Revision: b72fce1ffd0a0de5b46b486c7030d54cc5d8c225
URL:
https://github.com/llvm/llvm-project/commit/b72fce1ffd0a0de5b46b486c7030d54cc5d8c225
DIFF:
https://github.com/llvm/llvm-project/commit/b72fce1ffd0a0de5b46b486c7030d54cc5d8c225.dif
Author: Yaxun (Sam) Liu
Date: 2020-04-06T13:07:43-04:00
New Revision: 2c31aa2de13a23a00ced87123b92e905f2929c7b
URL:
https://github.com/llvm/llvm-project/commit/2c31aa2de13a23a00ced87123b92e905f2929c7b
DIFF:
https://github.com/llvm/llvm-project/commit/2c31aa2de13a23a00ced87123b92e905f2929c7b.dif
Author: Yaxun (Sam) Liu
Date: 2020-04-06T14:01:41-04:00
New Revision: 77e24936022add9e5a0b4ff3db99148c96d113af
URL:
https://github.com/llvm/llvm-project/commit/77e24936022add9e5a0b4ff3db99148c96d113af
DIFF:
https://github.com/llvm/llvm-project/commit/77e24936022add9e5a0b4ff3db99148c96d113af.dif
Author: Yaxun (Sam) Liu
Date: 2020-06-03T11:09:22-04:00
New Revision: 04abbb3a78186aa92809866b43217c32cba90b71
URL:
https://github.com/llvm/llvm-project/commit/04abbb3a78186aa92809866b43217c32cba90b71
DIFF:
https://github.com/llvm/llvm-project/commit/04abbb3a78186aa92809866b43217c32cba90b71.dif
Author: Yaxun (Sam) Liu
Date: 2020-06-03T21:56:52-04:00
New Revision: 049d860707ef22978b9379fee6dce38c66a22671
URL:
https://github.com/llvm/llvm-project/commit/049d860707ef22978b9379fee6dce38c66a22671
DIFF:
https://github.com/llvm/llvm-project/commit/049d860707ef22978b9379fee6dce38c66a22671.dif
Author: Yaxun (Sam) Liu
Date: 2020-06-04T16:54:52-04:00
New Revision: 263390d4f5f23967a31af09eb6e0c12e633d6104
URL:
https://github.com/llvm/llvm-project/commit/263390d4f5f23967a31af09eb6e0c12e633d6104
DIFF:
https://github.com/llvm/llvm-project/commit/263390d4f5f23967a31af09eb6e0c12e633d6104.dif
Author: Yaxun (Sam) Liu
Date: 2020-06-05T13:21:35-04:00
New Revision: e987c372185d805e3a30097366af2c6f94bc0b29
URL:
https://github.com/llvm/llvm-project/commit/e987c372185d805e3a30097366af2c6f94bc0b29
DIFF:
https://github.com/llvm/llvm-project/commit/e987c372185d805e3a30097366af2c6f94bc0b29.dif
Author: Yaxun (Sam) Liu
Date: 2020-06-05T14:36:36-04:00
New Revision: ee608478623a716da38cd09383f640f3a96f8d61
URL:
https://github.com/llvm/llvm-project/commit/ee608478623a716da38cd09383f640f3a96f8d61
DIFF:
https://github.com/llvm/llvm-project/commit/ee608478623a716da38cd09383f640f3a96f8d61.dif
Author: Yaxun (Sam) Liu
Date: 2020-06-05T15:31:53-04:00
New Revision: 392843617acbce5baf6ca7c7fff8dbac58bf853f
URL:
https://github.com/llvm/llvm-project/commit/392843617acbce5baf6ca7c7fff8dbac58bf853f
DIFF:
https://github.com/llvm/llvm-project/commit/392843617acbce5baf6ca7c7fff8dbac58bf853f.dif
Author: Yaxun (Sam) Liu
Date: 2020-06-08T14:13:32-04:00
New Revision: 4615abc11f2fcbf7526f7c939f2a3f71d80f0d93
URL:
https://github.com/llvm/llvm-project/commit/4615abc11f2fcbf7526f7c939f2a3f71d80f0d93
DIFF:
https://github.com/llvm/llvm-project/commit/4615abc11f2fcbf7526f7c939f2a3f71d80f0d93.dif
Author: Yaxun (Sam) Liu
Date: 2020-06-10T23:47:13-04:00
New Revision: af00eb25f890ecbf02818f1466da8f30d93e6298
URL:
https://github.com/llvm/llvm-project/commit/af00eb25f890ecbf02818f1466da8f30d93e6298
DIFF:
https://github.com/llvm/llvm-project/commit/af00eb25f890ecbf02818f1466da8f30d93e6298.dif
Author: Yaxun (Sam) Liu
Date: 2020-06-15T18:55:01-04:00
New Revision: e8090d83fd92cc6a9d03b48c91f979bbfa6bb1fc
URL:
https://github.com/llvm/llvm-project/commit/e8090d83fd92cc6a9d03b48c91f979bbfa6bb1fc
DIFF:
https://github.com/llvm/llvm-project/commit/e8090d83fd92cc6a9d03b48c91f979bbfa6bb1fc.dif
Author: Yaxun (Sam) Liu
Date: 2020-06-15T21:09:18-04:00
New Revision: 6752786d657ae13df93e1fa45df5277052ab
URL:
https://github.com/llvm/llvm-project/commit/6752786d657ae13df93e1fa45df5277052ab
DIFF:
https://github.com/llvm/llvm-project/commit/6752786d657ae13df93e1fa45df5277052ab.dif
Author: Yaxun (Sam) Liu
Date: 2020-07-08T13:10:26-04:00
New Revision: 1eaad01046c88be6bf65265a2bcc53db5a5b48d0
URL:
https://github.com/llvm/llvm-project/commit/1eaad01046c88be6bf65265a2bcc53db5a5b48d0
DIFF:
https://github.com/llvm/llvm-project/commit/1eaad01046c88be6bf65265a2bcc53db5a5b48d0.dif
Author: Yaxun (Sam) Liu
Date: 2020-07-10T23:20:15-04:00
New Revision: 849d4405f534434ebbda9889f24ff20122e34671
URL:
https://github.com/llvm/llvm-project/commit/849d4405f534434ebbda9889f24ff20122e34671
DIFF:
https://github.com/llvm/llvm-project/commit/849d4405f534434ebbda9889f24ff20122e34671.dif
Author: Yaxun (Sam) Liu
Date: 2020-07-11T12:45:29-04:00
New Revision: 5d2c3e031a6861b3e95673d0e238c09938dd9c0d
URL:
https://github.com/llvm/llvm-project/commit/5d2c3e031a6861b3e95673d0e238c09938dd9c0d
DIFF:
https://github.com/llvm/llvm-project/commit/5d2c3e031a6861b3e95673d0e238c09938dd9c0d.dif
Author: Yaxun (Sam) Liu
Date: 2020-06-18T08:40:09-04:00
New Revision: 92d8ad02e92fed3884169ba5d98056fe4fa5660d
URL:
https://github.com/llvm/llvm-project/commit/92d8ad02e92fed3884169ba5d98056fe4fa5660d
DIFF:
https://github.com/llvm/llvm-project/commit/92d8ad02e92fed3884169ba5d98056fe4fa5660d.dif
Author: Yaxun (Sam) Liu
Date: 2020-06-18T16:34:37-04:00
New Revision: c830d517b4e46abb617a80b3967b26546370c928
URL:
https://github.com/llvm/llvm-project/commit/c830d517b4e46abb617a80b3967b26546370c928
DIFF:
https://github.com/llvm/llvm-project/commit/c830d517b4e46abb617a80b3967b26546370c928.dif
Author: Yaxun (Sam) Liu
Date: 2020-06-22T08:39:12-04:00
New Revision: 2580635bd2f3c0527353e4d7823326cd9f92ff7c
URL:
https://github.com/llvm/llvm-project/commit/2580635bd2f3c0527353e4d7823326cd9f92ff7c
DIFF:
https://github.com/llvm/llvm-project/commit/2580635bd2f3c0527353e4d7823326cd9f92ff7c.dif
Author: Yaxun (Sam) Liu
Date: 2020-06-25T23:17:08-04:00
New Revision: ed398c3ca404f9ec50b134863a227555a9e374df
URL:
https://github.com/llvm/llvm-project/commit/ed398c3ca404f9ec50b134863a227555a9e374df
DIFF:
https://github.com/llvm/llvm-project/commit/ed398c3ca404f9ec50b134863a227555a9e374df.dif
Author: Yaxun (Sam) Liu
Date: 2020-06-26T00:26:05-04:00
New Revision: 8013ce4490225faf8aae911ee88087ce445e604c
URL:
https://github.com/llvm/llvm-project/commit/8013ce4490225faf8aae911ee88087ce445e604c
DIFF:
https://github.com/llvm/llvm-project/commit/8013ce4490225faf8aae911ee88087ce445e604c.dif
Author: Yaxun (Sam) Liu
Date: 2020-04-24T08:46:33-04:00
New Revision: 2da89df4e8d240160d5f265ecac4b0c6a0705d65
URL:
https://github.com/llvm/llvm-project/commit/2da89df4e8d240160d5f265ecac4b0c6a0705d65
DIFF:
https://github.com/llvm/llvm-project/commit/2da89df4e8d240160d5f265ecac4b0c6a0705d65.dif
Author: Yaxun (Sam) Liu
Date: 2020-04-24T14:55:18-04:00
New Revision: c77a4078e01033aa2206c31a579d217c8a07569b
URL:
https://github.com/llvm/llvm-project/commit/c77a4078e01033aa2206c31a579d217c8a07569b
DIFF:
https://github.com/llvm/llvm-project/commit/c77a4078e01033aa2206c31a579d217c8a07569b.dif
Author: Yaxun (Sam) Liu
Date: 2020-04-24T14:57:10-04:00
New Revision: 7eae00477fddf3943b92d485a6055f4043852f9b
URL:
https://github.com/llvm/llvm-project/commit/7eae00477fddf3943b92d485a6055f4043852f9b
DIFF:
https://github.com/llvm/llvm-project/commit/7eae00477fddf3943b92d485a6055f4043852f9b.dif
Author: Yaxun (Sam) Liu
Date: 2020-04-24T16:53:18-04:00
New Revision: b46b1a916d44216f0c70de55ae2123eb9de69027
URL:
https://github.com/llvm/llvm-project/commit/b46b1a916d44216f0c70de55ae2123eb9de69027
DIFF:
https://github.com/llvm/llvm-project/commit/b46b1a916d44216f0c70de55ae2123eb9de69027.dif
Author: Yaxun (Sam) Liu
Date: 2020-04-28T09:14:13-04:00
New Revision: 55bcb96f3154808bcb5afc3fb46d8e00bf1db847
URL:
https://github.com/llvm/llvm-project/commit/55bcb96f3154808bcb5afc3fb46d8e00bf1db847
DIFF:
https://github.com/llvm/llvm-project/commit/55bcb96f3154808bcb5afc3fb46d8e00bf1db847.dif
Author: Yaxun (Sam) Liu
Date: 2020-08-05T07:57:38-04:00
New Revision: 45f2a56856e29b8cb038b2e559289b91fb98fedf
URL:
https://github.com/llvm/llvm-project/commit/45f2a56856e29b8cb038b2e559289b91fb98fedf
DIFF:
https://github.com/llvm/llvm-project/commit/45f2a56856e29b8cb038b2e559289b91fb98fedf.dif
Author: Yaxun (Sam) Liu
Date: 2020-08-07T13:50:22-04:00
New Revision: ac3e720dc1af9555c5591017bd2b6c7f6641a34d
URL:
https://github.com/llvm/llvm-project/commit/ac3e720dc1af9555c5591017bd2b6c7f6641a34d
DIFF:
https://github.com/llvm/llvm-project/commit/ac3e720dc1af9555c5591017bd2b6c7f6641a34d.dif
Author: Yaxun (Sam) Liu
Date: 2020-08-10T19:02:49-04:00
New Revision: fb04d7b4a69831f6b999b1776da738557b108e0d
URL:
https://github.com/llvm/llvm-project/commit/fb04d7b4a69831f6b999b1776da738557b108e0d
DIFF:
https://github.com/llvm/llvm-project/commit/fb04d7b4a69831f6b999b1776da738557b108e0d.dif
Author: Yaxun (Sam) Liu
Date: 2020-05-04T12:26:18-04:00
New Revision: 66041187c9028f730c41597fe5ea6a63fda1ccad
URL:
https://github.com/llvm/llvm-project/commit/66041187c9028f730c41597fe5ea6a63fda1ccad
DIFF:
https://github.com/llvm/llvm-project/commit/66041187c9028f730c41597fe5ea6a63fda1ccad.dif
Author: Yaxun (Sam) Liu
Date: 2020-05-04T21:52:04-04:00
New Revision: d75a6e93ae99bfcd67219454307da56ebd155d45
URL:
https://github.com/llvm/llvm-project/commit/d75a6e93ae99bfcd67219454307da56ebd155d45
DIFF:
https://github.com/llvm/llvm-project/commit/d75a6e93ae99bfcd67219454307da56ebd155d45.dif
Author: Yaxun (Sam) Liu
Date: 2020-05-07T11:01:42-04:00
New Revision: e85bc0056ef8e7a4ec5b91f20226df609f6f7f12
URL:
https://github.com/llvm/llvm-project/commit/e85bc0056ef8e7a4ec5b91f20226df609f6f7f12
DIFF:
https://github.com/llvm/llvm-project/commit/e85bc0056ef8e7a4ec5b91f20226df609f6f7f12.dif
Author: Yaxun (Sam) Liu
Date: 2020-05-12T08:27:50-04:00
New Revision: e03394c6a6ff5832aa43259d4b8345f40ca6a22c
URL:
https://github.com/llvm/llvm-project/commit/e03394c6a6ff5832aa43259d4b8345f40ca6a22c
DIFF:
https://github.com/llvm/llvm-project/commit/e03394c6a6ff5832aa43259d4b8345f40ca6a22c.dif
Author: Yaxun (Sam) Liu
Date: 2020-05-13T11:34:22-04:00
New Revision: cf2fb139321ca06b5200a88847fabec93ee92d80
URL:
https://github.com/llvm/llvm-project/commit/cf2fb139321ca06b5200a88847fabec93ee92d80
DIFF:
https://github.com/llvm/llvm-project/commit/cf2fb139321ca06b5200a88847fabec93ee92d80.dif
Author: Yaxun (Sam) Liu
Date: 2020-05-13T17:55:40-04:00
New Revision: 1b7bf1bd75dcc4a362a83e4abc1200aaa75a38be
URL:
https://github.com/llvm/llvm-project/commit/1b7bf1bd75dcc4a362a83e4abc1200aaa75a38be
DIFF:
https://github.com/llvm/llvm-project/commit/1b7bf1bd75dcc4a362a83e4abc1200aaa75a38be.dif
Author: yaxunl
Date: Mon Sep 19 09:54:41 2016
New Revision: 281904
URL: http://llvm.org/viewvc/llvm-project?rev=281904&view=rev
Log:
[OpenCL] Diagnose assignment to dereference of half type pointer
Differential Revision: https://reviews.llvm.org/D24626
Modified:
cfe/trunk/include/clang/Basic
This revision was automatically updated to reflect the committed changes.
Closed by commit rL281904: [OpenCL] Diagnose assignment to dereference of half
type pointer (authored by yaxunl).
Changed prior to commit:
https://reviews.llvm.org/D24626?vs=71548&id=71823#toc
Repository:
rL LLVM
http
yaxunl added inline comments.
Comment at: lib/Sema/SemaDecl.cpp:7599-7602
@@ -7595,3 +7598,6 @@
// of event_t type.
-S.Diag(Param->getLocation(), diag::err_bad_kernel_param_type) << PT;
+// Do not diagnose half type since it is diagnosed as invalid argument
+// ty
yaxunl marked 6 inline comments as done.
Comment at: lib/Sema/SemaDecl.cpp:7600
@@ +7599,3 @@
+// Do not diagnose half type since it is diagnosed as invalid argument
+// type for any function eleswhere.
+if (!PT->isHalfType())
Anastasia wrote:
> -> els
Author: yaxunl
Date: Mon Sep 19 12:11:22 2016
New Revision: 281915
URL: http://llvm.org/viewvc/llvm-project?rev=281915&view=rev
Log:
[OpenCL] Allow half type kernel argument when cl_khr_fp16 is enabled
Modified:
cfe/trunk/lib/Sema/SemaDecl.cpp
cfe/trunk/test/SemaOpenCL/half.cl
cfe/tru
yaxunl added inline comments.
Comment at: lib/Sema/SemaExpr.cpp:3431
@@ -3410,1 +3430,3 @@
+.getSupportedOpenCLOpts()
+.cl_khr_fp64) ||
getOpenCLOptions().cl_khr_fp64)) {
This check
(getLangOpt
yaxunl added a comment.
In https://reviews.llvm.org/D21698#540237, @Anastasia wrote:
> I have made an experiment with a simple kernel:
>
> void foo1(void);
> void foo2(void);
> void foo3(void);
> void foo4(void);
> void foo5(void);
> void foo6(void);
> void foo7(void);
> void foo8
yaxunl added inline comments.
Comment at: lib/Sema/SemaExpr.cpp:3431
@@ -3410,1 +3430,3 @@
+.getSupportedOpenCLOpts()
+.cl_khr_fp64) ||
getOpenCLOptions().cl_khr_fp64)) {
neil.hickey wrote:
> yaxu
yaxunl added a comment.
I think we need two more tests for concatenating and overriding the option, e.g
-cl-ext=-cl_khr_fp64 -cl-ext=+cl_khr_fp64
and
-cl-ext=-cl_khr_fp64,+cl_khr_fp64
Comment at: include/clang/Basic/OpenCLOptions.h:35
@@ +34,3 @@
+ void setAll(bool Enabl
yaxunl added a comment.
Is it possible to merge
cfe/trunk/test/CodeGen/fp-contract-pragma___on-by-default___-O[0-3]___aarch64-backend.c
as one and remove
cfe/trunk/test/CodeGen/fp-contract-pragma___on-by-default___-O1...3___aarch64-backend.h?
They look the same except the RUN commands. Why not
yaxunl added a comment.
> ... then that will cause 3 compilations and 3 tests, right?
Right.
https://reviews.llvm.org/D24481
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
yaxunl added inline comments.
Comment at:
clang/test/CodeGen/fp-contract-pragma___on-by-default___-O1...3___aarch64-backend.c:8
@@ +7,3 @@
+// CHECK: fmadd d0, d{{[0-7]}}, d{{[0-7]}}, d{{[0-7]}}
+// CHECK-NEXT: ret
+double fmadd_double(double a, double b, double c) {
yaxunl added inline comments.
Comment at: clang/lib/Frontend/CompilerInvocation.cpp:2441
@@ +2440,3 @@
+
+ if ((LangOpts.C11 || LangOpts.C99 || LangOpts.CPlusPlus)
+ && ( CodeGenOptions::FPC_On == Res.getCodeGenOpts().getFPContractMode()
)
The format o
yaxunl added a comment.
I think we need two more tests for concatenating and overriding the option, e.g
-cl-ext=-cl_khr_fp64 -cl-ext=+cl_khr_fp64
and
-cl-ext=-cl_khr_fp64,+cl_khr_fp64
Comment at: include/clang/Basic/OpenCLOptions.h:39
@@ +38,3 @@
+
+ void set(llvm::Strin
yaxunl added a comment.
LGTM. Thanks.
https://reviews.llvm.org/D24481
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
yaxunl created this revision.
yaxunl added a reviewer: Anastasia.
yaxunl added subscribers: cfe-commits, b-sumner, bader.
__builtin_astype is used to cast OpenCL opaque types to other types, as such,
it needs to be able to handle casting from and to pointer types correctly.
Current it cannot han
Author: yaxunl
Date: Mon Oct 3 09:41:50 2016
New Revision: 283114
URL: http://llvm.org/viewvc/llvm-project?rev=283114&view=rev
Log:
[OpenCL] Fix bug in __builtin_astype causing invalid LLVM cast instructions
__builtin_astype is used to cast OpenCL opaque types to other types, as such,
it needs
This revision was automatically updated to reflect the committed changes.
Closed by commit rL283114: [OpenCL] Fix bug in __builtin_astype causing invalid
LLVM cast instructions (authored by yaxunl).
Changed prior to commit:
https://reviews.llvm.org/D25123?vs=73125&id=73412#toc
Repository:
rL
yaxunl accepted this revision.
yaxunl added a comment.
This revision is now accepted and ready to land.
LGTM. Thanks!
https://reviews.llvm.org/D23712
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listi
yaxunl added a comment.
Please add a test. Thanks.
Repository:
rL LLVM
https://reviews.llvm.org/D25305
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
yaxunl created this revision.
yaxunl added reviewers: Anastasia, bader.
yaxunl added a subscriber: cfe-commits.
Currently Clang allows partial initializer for C99 but not for OpenCL, e.g.
float a[16][16] = {1.0f, 2.0f};
is allowed in C99 but not allowed in OpenCL.
This patch fixes that.
https
yaxunl created this revision.
yaxunl added reviewers: Anastasia, bader.
yaxunl added subscribers: cfe-commits, b-sumner.
Certain OpenCL builtin functions are supposed to be executed by all threads in
a work group or sub group. Such functions should not be duplicated during
transformation. It mak
yaxunl added a comment.
In https://reviews.llvm.org/D25343#564092, @arsenm wrote:
> These should be convergent instead
Unfortunately convergent is not supported as Clang attribute. There was patch
to add it but the author withdrew it.
Anastasia/Alexey,
Do you think it is a good idea to add _
yaxunl added inline comments.
Comment at: test/CodeGenOpenCL/partial_initializer.cl:5
+
+// CHECK: @GA = addrspace(1) global [6 x [6 x float]] {{[[][[]}}6 x float]
[float 1.00e+00, float 2.00e+00, float 0.00e+00, float
0.00e+00, float 0.00e+00, float 0.0
Author: yaxunl
Date: Tue Oct 11 10:53:28 2016
New Revision: 283891
URL: http://llvm.org/viewvc/llvm-project?rev=283891&view=rev
Log:
[OpenCL] Allow partial initializer for array and struct
Currently Clang allows partial initializer for C99 but not for OpenCL, e.g.
float a[16][16] = {1.0f, 2.0f};
This revision was automatically updated to reflect the committed changes.
Closed by commit rL283891: [OpenCL] Allow partial initializer for array and
struct (authored by yaxunl).
Changed prior to commit:
https://reviews.llvm.org/D25335?vs=73818&id=74266#toc
Repository:
rL LLVM
https://revie
yaxunl retitled this revision from "[OpenCL] Mark group functions as
noduplicate in opencl-c.h" to "[OpenCL] Mark group functions as convergent in
opencl-c.h".
yaxunl updated the summary for this revision.
yaxunl added a reviewer: aaron.ballman.
yaxunl updated this revision to Diff 74394.
https:
yaxunl updated this revision to Diff 74514.
yaxunl marked 5 inline comments as done.
yaxunl added a comment.
Revised by Aaron's comments. Added a sema test.
https://reviews.llvm.org/D25343
Files:
include/clang/Basic/Attr.td
include/clang/Basic/AttrDocs.td
lib/CodeGen/CGCall.cpp
lib/Head
yaxunl updated this revision to Diff 74541.
yaxunl added a comment.
Minor revision by Aaron's comments.
https://reviews.llvm.org/D25343
Files:
include/clang/Basic/Attr.td
include/clang/Basic/AttrDocs.td
lib/CodeGen/CGCall.cpp
lib/Headers/opencl-c.h
lib/Sema/SemaDeclAttr.cpp
test/Cod
yaxunl added a comment.
The test looks OK. However, the patch only contains the test now.
https://reviews.llvm.org/D25305
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
yaxunl accepted this revision.
yaxunl added a comment.
This revision is now accepted and ready to land.
LGTM. Thanks!
https://reviews.llvm.org/D25305
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listi
Author: yaxunl
Date: Wed Dec 6 17:39:52 2017
New Revision: 32
URL: http://llvm.org/viewvc/llvm-project?rev=32&view=rev
Log:
CodeGen: Fix invalid bitcasts for memcpy
CreateCoercedLoad/CreateCoercedStore assumes pointer argument of
memcpy is in addr space 0, which is not correct and causes
@@ -5743,9 +5743,9 @@ void Clang::ConstructJob(Compilation &C, const JobAction
&JA,
} else if (Triple.getArch() == llvm::Triple::x86_64) {
Ok = llvm::is_contained({"small", "kernel", "medium", "large", "tiny"},
CM);
-} else if (Tripl
yxsamliu wrote:
I think we need to fix clang and not passing -mcmodel=tiny/kernel to clang
-cc1.
https://github.com/llvm/llvm-project/pull/70760/files#r1383372722
probably we can do that in this PR
https://github.com/llvm/llvm-project/pull/71019
__
yxsamliu wrote:
sometimes the formatter checks the diff of the rebase when you rebase your
code. However if you rebase your commits against ToT of trunk the formatter
issue may disappear.
https://github.com/llvm/llvm-project/pull/69371
___
cfe-commit
https://github.com/yxsamliu approved this pull request.
LGTM. Thanks
https://github.com/llvm/llvm-project/pull/69371
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
yxsamliu wrote:
ping
This patch passes our internal CI.
https://github.com/llvm/llvm-project/pull/70369
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/yxsamliu closed
https://github.com/llvm/llvm-project/pull/70369
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/yxsamliu approved this pull request.
LGTM. Thanks.
https://github.com/llvm/llvm-project/pull/69266
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
https://github.com/yxsamliu created
https://github.com/llvm/llvm-project/pull/71978
Currently nvcc supports 128 bit int division in device code. This patch adds
support of 128 bit int division to HIP.
It builds lib functions for 128 bit division in compiler-rt for amdgcn target.
Then links co
@@ -937,27 +938,105 @@ bool CodeGenAction::loadLinkModules(CompilerInstance
&CI) {
for (const CodeGenOptions::BitcodeFileToLink &F :
CI.getCodeGenOpts().LinkBitcodeFiles) {
-auto BCBuf = CI.getFileManager().getBufferForFile(F.Filename);
-if (!BCBuf) {
+
+
@@ -937,27 +938,105 @@ bool CodeGenAction::loadLinkModules(CompilerInstance
&CI) {
for (const CodeGenOptions::BitcodeFileToLink &F :
CI.getCodeGenOpts().LinkBitcodeFiles) {
-auto BCBuf = CI.getFileManager().getBufferForFile(F.Filename);
-if (!BCBuf) {
+
+
@@ -937,27 +938,105 @@ bool CodeGenAction::loadLinkModules(CompilerInstance
&CI) {
for (const CodeGenOptions::BitcodeFileToLink &F :
CI.getCodeGenOpts().LinkBitcodeFiles) {
-auto BCBuf = CI.getFileManager().getBufferForFile(F.Filename);
-if (!BCBuf) {
+
+
https://github.com/yxsamliu created
https://github.com/llvm/llvm-project/pull/74504
The test fails intermittently due to non-unique file name %T.
Use %t based file names instead.
Fixes: https://github.com/llvm/llvm-project/issues/74472
>From 19bfca890a66b38ce92c2d5dc39d8ee144df0bcf Mon Sep 17
https://github.com/yxsamliu closed
https://github.com/llvm/llvm-project/pull/74504
___
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
@@ -596,6 +596,7 @@ static bool mustPreserveGV(const GlobalValue &GV) {
if (const Function *F = dyn_cast(&GV))
return F->isDeclaration() || F->getName().startswith("__asan_") ||
F->getName().startswith("__sanitizer_") ||
+ F->getName() == "__divti3" |
101 - 200 of 1680 matches
Mail list logo