r374470 - [tooling] Teach Tooling to understand compilation with offloading.

2019-10-10 Thread Michael Liao via cfe-commits
Author: hliao Date: Thu Oct 10 16:05:55 2019 New Revision: 374470 URL: http://llvm.org/viewvc/llvm-project?rev=374470=rev Log: [tooling] Teach Tooling to understand compilation with offloading. Summary: - So far, we only recognize the host compilation with offloading and skip the offloading

r374276 - [ast] Fix indentation. NFC.

2019-10-09 Thread Michael Liao via cfe-commits
Author: hliao Date: Wed Oct 9 21:16:52 2019 New Revision: 374276 URL: http://llvm.org/viewvc/llvm-project?rev=374276=rev Log: [ast] Fix indentation. NFC. Modified: cfe/trunk/include/clang/AST/Decl.h Modified: cfe/trunk/include/clang/AST/Decl.h URL:

r374274 - [sema] Revise `getCurrentMangleNumberContext` interface. NFC.

2019-10-09 Thread Michael Liao via cfe-commits
Author: hliao Date: Wed Oct 9 20:14:51 2019 New Revision: 374274 URL: http://llvm.org/viewvc/llvm-project?rev=374274=rev Log: [sema] Revise `getCurrentMangleNumberContext` interface. NFC. - Prefer returning mulitple values using a tuple instead of additional pointers/references. Modified:

r374200 - [mangle] Fix mangling where an extra mangle context is required.

2019-10-09 Thread Michael Liao via cfe-commits
Author: hliao Date: Wed Oct 9 12:08:52 2019 New Revision: 374200 URL: http://llvm.org/viewvc/llvm-project?rev=374200=rev Log: [mangle] Fix mangling where an extra mangle context is required. Summary: - [Itanium C++ ABI][1], for certain contexts like default parameter and etc., mangling

r374167 - [clang-offload-bundler] Support `.cui` and `.d`.

2019-10-09 Thread Michael Liao via cfe-commits
Author: hliao Date: Wed Oct 9 06:53:37 2019 New Revision: 374167 URL: http://llvm.org/viewvc/llvm-project?rev=374167=rev Log: [clang-offload-bundler] Support `.cui` and `.d`. Reviewers: tra, yaxunl Subscribers: cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D68663

r374097 - [driver][hip] Skip bundler if host action is nothing.

2019-10-08 Thread Michael Liao via cfe-commits
Author: hliao Date: Tue Oct 8 11:06:51 2019 New Revision: 374097 URL: http://llvm.org/viewvc/llvm-project?rev=374097=rev Log: [driver][hip] Skip bundler if host action is nothing. Reviewers: sfantao, tra, yaxunl Subscribers: cfe-commits Tags: #clang Differential Revision:

r373634 - [HIP] Enable specifying different default gpu arch for HIP/CUDA.

2019-10-03 Thread Michael Liao via cfe-commits
Author: hliao Date: Thu Oct 3 10:49:20 2019 New Revision: 373634 URL: http://llvm.org/viewvc/llvm-project?rev=373634=rev Log: [HIP] Enable specifying different default gpu arch for HIP/CUDA. Reviewers: tra, yaxunl Subscribers: cfe-commits Tags: #clang Differential Revision:

r373410 - Fix unused variable warning. NFCI.

2019-10-01 Thread Michael Liao via cfe-commits
Author: hliao Date: Tue Oct 1 17:22:45 2019 New Revision: 373410 URL: http://llvm.org/viewvc/llvm-project?rev=373410=rev Log: Fix unused variable warning. NFCI. Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntime.cpp Modified: cfe/trunk/lib/CodeGen/CGOpenMPRuntime.cpp URL:

r372898 - [CUDA][HIP] Enable kernel function return type deduction.

2019-09-25 Thread Michael Liao via cfe-commits
Author: hliao Date: Wed Sep 25 09:51:45 2019 New Revision: 372898 URL: http://llvm.org/viewvc/llvm-project?rev=372898=rev Log: [CUDA][HIP] Enable kernel function return type deduction. Summary: - Even though only `void` is still accepted as the deduced return type, enabling

r372640 - [Sema] Fix the atomic expr rebuilding order.

2019-09-23 Thread Michael Liao via cfe-commits
Author: hliao Date: Mon Sep 23 11:48:06 2019 New Revision: 372640 URL: http://llvm.org/viewvc/llvm-project?rev=372640=rev Log: [Sema] Fix the atomic expr rebuilding order. Summary: - Rearrange the atomic expr order to the API order when rebuilding atomic expr during template instantiation.

r372356 - [CUDA][HIP] Re-apply part of r372318.

2019-09-19 Thread Michael Liao via cfe-commits
Author: hliao Date: Thu Sep 19 14:26:18 2019 New Revision: 372356 URL: http://llvm.org/viewvc/llvm-project?rev=372356=rev Log: [CUDA][HIP] Re-apply part of r372318. - r372318 causes violation of `use-of-uninitialized-value` detected by MemorySanitizer. Once `Viable` field is set to false,

r372318 - [CUDA][HIP] Fix typo in `BestViableFunction`

2019-09-19 Thread Michael Liao via cfe-commits
Author: hliao Date: Thu Sep 19 06:14:03 2019 New Revision: 372318 URL: http://llvm.org/viewvc/llvm-project?rev=372318=rev Log: [CUDA][HIP] Fix typo in `BestViableFunction` Summary: - Should consider viable ones only when checking SameSide candidates. - Replace erasing with clearing viable flag

[clang-tools-extra] r370763 - [clangd] Remove redundant semi-colon.

2019-09-03 Thread Michael Liao via cfe-commits
Author: hliao Date: Tue Sep 3 08:02:46 2019 New Revision: 370763 URL: http://llvm.org/viewvc/llvm-project?rev=370763=rev Log: [clangd] Remove redundant semi-colon. Modified: clang-tools-extra/trunk/clangd/FindTarget.cpp Modified: clang-tools-extra/trunk/clangd/FindTarget.cpp URL:

r368748 - Remove the extra `;`.

2019-08-13 Thread Michael Liao via cfe-commits
Author: hliao Date: Tue Aug 13 14:26:42 2019 New Revision: 368748 URL: http://llvm.org/viewvc/llvm-project?rev=368748=rev Log: Remove the extra `;`. Modified: cfe/trunk/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h Modified:

r366010 - Remove extra ';' to silent compiler warning.

2019-07-13 Thread Michael Liao via cfe-commits
Author: hliao Date: Sat Jul 13 12:49:39 2019 New Revision: 366010 URL: http://llvm.org/viewvc/llvm-project?rev=366010=rev Log: Remove extra ';' to silent compiler warning. - Plus extra style formatting. Modified: cfe/trunk/lib/Sema/SemaDecl.cpp Modified: cfe/trunk/lib/Sema/SemaDecl.cpp

r364428 - Make CodeGen depend on ASTMatchers

2019-06-26 Thread Michael Liao via cfe-commits
Author: hliao Date: Wed Jun 26 07:13:43 2019 New Revision: 364428 URL: http://llvm.org/viewvc/llvm-project?rev=364428=rev Log: Make CodeGen depend on ASTMatchers - Shared library builds are broken due to the missing dependency. Modified: cfe/trunk/lib/CodeGen/CMakeLists.txt Modified:

r363585 - [clang][AST] Remove unnecessary 'const'.

2019-06-17 Thread Michael Liao via cfe-commits
Author: hliao Date: Mon Jun 17 10:47:03 2019 New Revision: 363585 URL: http://llvm.org/viewvc/llvm-project?rev=363585=rev Log: [clang][AST] Remove unnecessary 'const'. Modified: cfe/trunk/include/clang/AST/Expr.h Modified: cfe/trunk/include/clang/AST/Expr.h URL:

r363553 - [HIP] Add the interface deriving the stub name of device kernels.

2019-06-17 Thread Michael Liao via cfe-commits
Author: hliao Date: Mon Jun 17 05:51:36 2019 New Revision: 363553 URL: http://llvm.org/viewvc/llvm-project?rev=363553=rev Log: [HIP] Add the interface deriving the stub name of device kernels. Summary: - Revise the interface to derive the stub name and simplify the assertion of it. Reviewers:

r362232 - Revise test case due to the change from CUDA 10+.

2019-05-31 Thread Michael Liao via cfe-commits
Author: hliao Date: Fri May 31 08:29:55 2019 New Revision: 362232 URL: http://llvm.org/viewvc/llvm-project?rev=362232=rev Log: Revise test case due to the change from CUDA 10+. Modified: cfe/trunk/test/Driver/offloading-interoperability.c Modified:

r361994 - [CUDA][HIP] Skip setting `externally_initialized` for static device variables.

2019-05-29 Thread Michael Liao via cfe-commits
Author: hliao Date: Wed May 29 10:23:27 2019 New Revision: 361994 URL: http://llvm.org/viewvc/llvm-project?rev=361994=rev Log: [CUDA][HIP] Skip setting `externally_initialized` for static device variables. Summary: - By declaring device variables as `static`, we assume they won't be

r360214 - [hip] Fix ambiguity from `>>>` of CUDA.

2019-05-07 Thread Michael Liao via cfe-commits
Author: hliao Date: Tue May 7 17:52:33 2019 New Revision: 360214 URL: http://llvm.org/viewvc/llvm-project?rev=360214=rev Log: [hip] Fix ambiguity from `>>>` of CUDA. Summary: - For template arguments ending with `>>>`, we should cease lookahead and treat it as type-id firstly, so that

r359344 - [HIP] Fix visibility of `__constant__` variables.

2019-04-26 Thread Michael Liao via cfe-commits
Author: hliao Date: Fri Apr 26 12:31:48 2019 New Revision: 359344 URL: http://llvm.org/viewvc/llvm-project?rev=359344=rev Log: [HIP] Fix visibility of `__constant__` variables. Summary: - `__constant__` variables should not be `hidden` as the linker may turn them into `LOCAL` symbols.

r357236 - [Sema] Fix a crash when nonnull checking

2019-03-28 Thread Michael Liao via cfe-commits
Author: hliao Date: Thu Mar 28 20:55:52 2019 New Revision: 357236 URL: http://llvm.org/viewvc/llvm-project?rev=357236=rev Log: [Sema] Fix a crash when nonnull checking Summary: - If a parameter is used, nonnull checking needs function prototype to retrieve the corresponding parameter's

r356385 - [AMDGPU] Add the missing clang change of the experimental buffer fat pointer

2019-03-18 Thread Michael Liao via cfe-commits
Author: hliao Date: Mon Mar 18 11:11:37 2019 New Revision: 356385 URL: http://llvm.org/viewvc/llvm-project?rev=356385=rev Log: [AMDGPU] Add the missing clang change of the experimental buffer fat pointer Modified: cfe/trunk/lib/Basic/Targets/AMDGPU.cpp

r355551 - [CUDA][HIP][DebugInfo] Skip reference device function

2019-03-06 Thread Michael Liao via cfe-commits
Author: hliao Date: Wed Mar 6 13:16:27 2019 New Revision: 31 URL: http://llvm.org/viewvc/llvm-project?rev=31=rev Log: [CUDA][HIP][DebugInfo] Skip reference device function Summary: - A device functions could be used as a non-type template parameter in a global/host function template.

r354909 - [AMDGPU] Allow using integral non-type template parameters

2019-02-26 Thread Michael Liao via cfe-commits
Author: hliao Date: Tue Feb 26 10:49:36 2019 New Revision: 354909 URL: http://llvm.org/viewvc/llvm-project?rev=354909=rev Log: [AMDGPU] Allow using integral non-type template parameters Summary: - Allow using integral non-type template parameters in the following attributes

r354742 - Typo: s/CHCCK/CHECK

2019-02-23 Thread Michael Liao via cfe-commits
Author: hliao Date: Sat Feb 23 19:10:14 2019 New Revision: 354742 URL: http://llvm.org/viewvc/llvm-project?rev=354742=rev Log: Typo: s/CHCCK/CHECK Modified: cfe/trunk/test/CodeGenCXX/pragma-loop-safety.cpp Modified: cfe/trunk/test/CodeGenCXX/pragma-loop-safety.cpp URL:

r354741 - [NFC] Minor coding style (indent) fix.

2019-02-23 Thread Michael Liao via cfe-commits
Author: hliao Date: Sat Feb 23 19:07:32 2019 New Revision: 354741 URL: http://llvm.org/viewvc/llvm-project?rev=354741=rev Log: [NFC] Minor coding style (indent) fix. Modified: cfe/trunk/lib/AST/Type.cpp Modified: cfe/trunk/lib/AST/Type.cpp URL:

r354610 - [CodeGen] Fix string literal address space casting.

2019-02-21 Thread Michael Liao via cfe-commits
Author: hliao Date: Thu Feb 21 11:40:20 2019 New Revision: 354610 URL: http://llvm.org/viewvc/llvm-project?rev=354610=rev Log: [CodeGen] Fix string literal address space casting. Summary: - If a string literal is reused directly, need to add necessary address space casting if the target

<    1   2