r274825 - [X86] Remove dead builtins that don't exist in the backend intrinsic file and don't have custom handling in CGBuiltins.cpp either.

2016-07-07 Thread Craig Topper via cfe-commits
Author: ctopper Date: Fri Jul 8 00:11:47 2016 New Revision: 274825 URL: http://llvm.org/viewvc/llvm-project?rev=274825=rev Log: [X86] Remove dead builtins that don't exist in the backend intrinsic file and don't have custom handling in CGBuiltins.cpp either. Modified:

Re: revert clang r244207 - Mark calls in thunk functions as tail-call optimization candidates? { Re: [PATCH] D21948: [DSE] fix - missing store to runtime stack in thunk with tail call bvval arg }

2016-07-07 Thread Gerolf Hoflehner via cfe-commits
> On Jul 7, 2016, at 8:36 PM, Gerolf Hoflehner wrote: > > Ahmed pointed out the clang commit causing the issue is r244207 - Mark calls > in thunk functions as tail-call optimization candidates > > The purpose of the fix was to prevent thunks from showing up on the call

Re: [PATCH] D20352: Add XRay flags to Clang

2016-07-07 Thread Dean Michael Berris via cfe-commits
dberris added a comment. Thanks -- I don't have commit powers yet, do either of you mind landing this for me? Cheers http://reviews.llvm.org/D20352 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

r274823 - [CodeGen] Use llvm::Type::getVectorNumElements instead of casting to llvm::VectorType and calling getNumElements. This is equivalent and shorter.

2016-07-07 Thread Craig Topper via cfe-commits
Author: ctopper Date: Thu Jul 7 21:17:35 2016 New Revision: 274823 URL: http://llvm.org/viewvc/llvm-project?rev=274823=rev Log: [CodeGen] Use llvm::Type::getVectorNumElements instead of casting to llvm::VectorType and calling getNumElements. This is equivalent and shorter. Modified:

r274821 - [X86] Reuse existing lambda and remove unnecessary argument from vector cmp builtin handling. NFC

2016-07-07 Thread Craig Topper via cfe-commits
Author: ctopper Date: Thu Jul 7 20:57:24 2016 New Revision: 274821 URL: http://llvm.org/viewvc/llvm-project?rev=274821=rev Log: [X86] Reuse existing lambda and remove unnecessary argument from vector cmp builtin handling. NFC Modified: cfe/trunk/lib/CodeGen/CGBuiltin.cpp Modified:

r274820 - [X86] Remove a couple calls to create V2F64 and V4F32 types for builtin handling. Just get the type from the operand of the builtin instead. NFC

2016-07-07 Thread Craig Topper via cfe-commits
Author: ctopper Date: Thu Jul 7 20:48:44 2016 New Revision: 274820 URL: http://llvm.org/viewvc/llvm-project?rev=274820=rev Log: [X86] Remove a couple calls to create V2F64 and V4F32 types for builtin handling. Just get the type from the operand of the builtin instead. NFC Modified:

Re: [PATCH] D11360: Proposed patch to prevent the creation of empty (forwarding) blocks resulting from nested ifs.

2016-07-07 Thread Mehdi AMINI via cfe-commits
mehdi_amini accepted this revision. mehdi_amini added a reviewer: mehdi_amini. mehdi_amini added a comment. This revision is now accepted and ready to land. LGTM. http://reviews.llvm.org/D11360 ___ cfe-commits mailing list

Re: [PATCH] D21667: [analyzer] Add rudimentary handling of AtomicExpr.

2016-07-07 Thread Devin Coughlin via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL274816: [analyzer] Add rudimentary handling of AtomicExpr. (authored by dcoughlin). Changed prior to commit: http://reviews.llvm.org/D21667?vs=63096=63172#toc Repository: rL LLVM

r274816 - [analyzer] Add rudimentary handling of AtomicExpr.

2016-07-07 Thread Devin Coughlin via cfe-commits
Author: dcoughlin Date: Thu Jul 7 19:53:18 2016 New Revision: 274816 URL: http://llvm.org/viewvc/llvm-project?rev=274816=rev Log: [analyzer] Add rudimentary handling of AtomicExpr. This proposed patch adds crude handling of atomics to the static analyzer. Rather than ignore AtomicExprs, as we

Re: [PATCH] D21991: [libunwind][ARM] Improve unwinder stack usage - Make WMMX support optional

2016-07-07 Thread Saleem Abdulrasool via cfe-commits
compnerd added inline comments. Comment at: src/Registers.hpp:1497 @@ -1479,3 +1496,3 @@ _LIBUNWIND_ABORT("unsupported arm register"); } rmaprath wrote: > compnerd wrote: > > Early returns would be nicer imo. > Not sure if I follow, did you mean to check

r274814 - Revert "Driver: Stop linking to C++ when using sanitizers on Darwin"

2016-07-07 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Thu Jul 7 19:37:31 2016 New Revision: 274814 URL: http://llvm.org/viewvc/llvm-project?rev=274814=rev Log: Revert "Driver: Stop linking to C++ when using sanitizers on Darwin" This reverts SVN r274797. It broke the Green Dragon bot. Revert it until the failure can be

Re: [PATCH] D21667: [analyzer] Add rudimentary handling of AtomicExpr.

2016-07-07 Thread Devin Coughlin via cfe-commits
dcoughlin added a comment. Anna and Jordan said I should just go ahead and commit this. http://reviews.llvm.org/D21667 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D20795: Added basic capabilities to detect source code clones.

2016-07-07 Thread Raphael Isemann via cfe-commits
teemperor updated this revision to Diff 63161. teemperor marked 5 inline comments as done. teemperor added a comment. - Fixed type of StmtSequence::iterator. http://reviews.llvm.org/D20795 Files: include/clang/AST/CloneDetection.h include/clang/StaticAnalyzer/Checkers/Checkers.td

Re: [PATCH] D21857: [Driver][OpenMP] Add support to create jobs for unbundling actions.

2016-07-07 Thread Samuel Antao via cfe-commits
sfantao added a comment. In http://reviews.llvm.org/D21857#476527, @Hahnfeld wrote: > Hi Samuel, > > this looks pretty good overall! > > I've only encountered one issue which I don't really know is caused by which > patch: I can't use the (exact) same triple for offloading and the host when >

Re: [PATCH] D21851: [Driver][OpenMP][CUDA] Add capability to bundle object files in sections of the host binary format.

2016-07-07 Thread Samuel Antao via cfe-commits
sfantao added a comment. Hi Jonas, Thanks for trying that out! Comment at: tools/clang-offload-bundler/ClangOffloadBundler.cpp:477-490 @@ +476,16 @@ + +// Do the incremental linking. We write to the output file directly. So, we +// close it and use the name to pass

Re: [PATCH] D20795: Added basic capabilities to detect source code clones.

2016-07-07 Thread Raphael Isemann via cfe-commits
teemperor updated this revision to Diff 63159. teemperor added a comment. - Fixed the problems pointed out by Vassil (Thanks!) - Comments now have less line breaks. - Added more documentation to HashValue, it's hash function and the used prime numbers. - Added a typedef for

r274805 - [CUDA] Pass correct option in test.

2016-07-07 Thread Michael Kuperstein via cfe-commits
Author: mkuper Date: Thu Jul 7 18:22:39 2016 New Revision: 274805 URL: http://llvm.org/viewvc/llvm-project?rev=274805=rev Log: [CUDA] Pass correct option in test. Modified: cfe/trunk/test/Driver/cuda-version-check.cu Modified: cfe/trunk/test/Driver/cuda-version-check.cu URL:

Re: r274628 - Include debug info for nested structs and classes

2016-07-07 Thread Adrian McCarthy via cfe-commits
This patch was reverted because it breaks a test on the buildbots (that I've been unable to reproduce locally), so that's why you didn't seen anything. I'll try again to land the patch once I can fix and verify that test. This patch is one part of the change. The other part is

Re: r274246 - [codeview] Emit qualified display names if -gline-tables-only is on

2016-07-07 Thread Reid Kleckner via cfe-commits
On Thu, Jul 7, 2016 at 3:45 PM, David Blaikie wrote: > Yeah - is this necessary for CodeView? (does something break, or do you > just get simple names where you'd prefer full mangled or qualified names) > > It was chosen pretty deliberately to do it this way (use unqualified

Re: r274677 - [CodeGen, DebugInfo] Use hasLocalLinkage instead of hasInternalLinkage

2016-07-07 Thread David Blaikie via cfe-commits
On Wed, Jul 6, 2016 at 2:07 PM, David Majnemer via cfe-commits < cfe-commits@lists.llvm.org> wrote: > Author: majnemer > Date: Wed Jul 6 16:07:53 2016 > New Revision: 274677 > > URL: http://llvm.org/viewvc/llvm-project?rev=274677=rev > Log: > [CodeGen, DebugInfo] Use hasLocalLinkage instead of

Re: r274628 - Include debug info for nested structs and classes

2016-07-07 Thread David Blaikie via cfe-commits
Ah, I see why I might not've seen the result - it was reverted & I didn't spot the revert in a quick search for r274628 (because it was quoted as rL because Phab is weird and likes to put an "L" in there). On Thu, Jul 7, 2016 at 4:03 PM, David Blaikie wrote: > This may

Re: r274628 - Include debug info for nested structs and classes

2016-07-07 Thread David Blaikie via cfe-commits
This may cause problems for DWARF type unit consistency... Under what conditions do nested types appear in the member list? (my simple test case on a fresh clang didn't seem to produce anything about the nested type: struct outer { struct inner { int i; }; int j; }; outer o; ) On Wed, Jul 6,

r274800 - [Lex] Speed up updateConsecutiveMacroArgTokens (NFC)

2016-07-07 Thread Vedant Kumar via cfe-commits
Author: vedantk Date: Thu Jul 7 17:38:29 2016 New Revision: 274800 URL: http://llvm.org/viewvc/llvm-project?rev=274800=rev Log: [Lex] Speed up updateConsecutiveMacroArgTokens (NFC) SM.isWrittenInSameFile() calls getFileID(), which can be expensive. Move this check behind some cheaper filters.

Re: r274246 - [codeview] Emit qualified display names if -gline-tables-only is on

2016-07-07 Thread David Blaikie via cfe-commits
Yeah - is this necessary for CodeView? (does something break, or do you just get simple names where you'd prefer full mangled or qualified names) It was chosen pretty deliberately to do it this way (use unqualified names) for gmlt to keep size down. Have you got numbers for the size delta for

r274799 - Update switch statement to match coding standards.

2016-07-07 Thread Simon Pilgrim via cfe-commits
Author: rksimon Date: Thu Jul 7 17:32:26 2016 New Revision: 274799 URL: http://llvm.org/viewvc/llvm-project?rev=274799=rev Log: Update switch statement to match coding standards. Modified: cfe/trunk/lib/Basic/Targets.cpp Modified: cfe/trunk/lib/Basic/Targets.cpp URL:

Re: [PATCH] D21814: clang-rename: support multiple renames with one invocation

2016-07-07 Thread Kirill Bobyrev via cfe-commits
omtcyf0 added a comment. Manuel, > I think it's important to note that Miklos is probably a user, otherwise I'd > guess he wouldn't add those features. Sure. But there are different kinds of users :) IIRC there's a discussion in cfe-def called "Clang should natively support Fortran" or

Re: [PATCH] D21031: [OpenCL] Allow -cl-std and other standard -cl- options in driver

2016-07-07 Thread Aaron En Ye Shi via cfe-commits
ashi1 marked an inline comment as done. Comment at: cfe/trunk/include/clang/Driver/Options.td:381 @@ +380,3 @@ +def cl_unsafe_math_optimizations : Flag<["-"], "cl-unsafe-math-optimizations">, Group, Flags<[CC1Option]>, + HelpText<"OpenCL only. Allow unsafe floating-point

r274797 - Driver: Stop linking to C++ when using sanitizers on Darwin

2016-07-07 Thread Saleem Abdulrasool via cfe-commits
Author: compnerd Date: Thu Jul 7 16:42:29 2016 New Revision: 274797 URL: http://llvm.org/viewvc/llvm-project?rev=274797=rev Log: Driver: Stop linking to C++ when using sanitizers on Darwin Sanitizers on Darwin are built as dynamic libraries, not static libraries. Sanitizers will have their C++

Re: [PATCH] D21962: MPITypeMismatchCheck for Clang-Tidy

2016-07-07 Thread Alexander Droste via cfe-commits
Alexander_Droste updated this revision to Diff 63142. Alexander_Droste added a comment. - fix typo http://reviews.llvm.org/D21962 Files: clang-tidy/misc/CMakeLists.txt clang-tidy/misc/MiscTidyModule.cpp clang-tidy/misc/MpiTypeMismatchCheck.cpp clang-tidy/misc/MpiTypeMismatchCheck.h

Re: [PATCH] D22067: [OpenCL] Add missing -cl-no-signed-zeros option into driver

2016-07-07 Thread Aaron En Ye Shi via cfe-commits
ashi1 added a reviewer: yaxunl. ashi1 removed rL LLVM as the repository for this revision. ashi1 updated this revision to Diff 63143. ashi1 added a comment. Revised base on Sam's comments. Added no-signed-zeros as an attribute no-signed-zeros-fp-math. Added a test for no-signed-zeros-fp-math.

[PATCH] D22113: C does not have inline variables

2016-07-07 Thread Paul Robinson via cfe-commits
probinson created this revision. probinson added a reviewer: rsmith. probinson added a subscriber: cfe-commits. We have a C test that now gets a warning about a C++1z extension, which seems inappropriate. http://reviews.llvm.org/D22113 Files: lib/Sema/SemaDecl.cpp test/Sema/inline.c

Re: [PATCH] D21962: MPITypeMismatchCheck for Clang-Tidy

2016-07-07 Thread Alexander Droste via cfe-commits
Alexander_Droste marked 4 inline comments as done. Alexander_Droste added a comment. http://reviews.llvm.org/D21962 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D21814: clang-rename: support multiple renames with one invocation

2016-07-07 Thread Manuel Klimek via cfe-commits
klimek added a comment. Kirill, I think it's important to note that Miklos is probably a user, otherwise I'd guess he wouldn't add those features. Generally, we also internally have a (large scale) simplified rename tool that allows renaming multiple things in a code base at once; it is

Re: [PATCH] D21814: clang-rename: support multiple renames with one invocation

2016-07-07 Thread Kirill Bobyrev via cfe-commits
omtcyf0 added a comment. Miklos, thanks for the feedback! Hm, I'm not sure about a) and b) camps here. I think we can have both. It may be that I haven't looked too much into the code or I am missing something, but so far both integration and cross-TU analysis seem OK together in one tool as

Re: [PATCH] D20352: Add XRay flags to Clang

2016-07-07 Thread Eric Christopher via cfe-commits
echristo added a comment. In http://reviews.llvm.org/D20352#477203, @rnk wrote: > In http://reviews.llvm.org/D20352#477084, @aaron.ballman wrote: > > > No, I'm not. I am worried about how this conflicts with another in-flight > > patch for supporting MS hotpatchable functions since it seems

Re: [PATCH] D20352: Add XRay flags to Clang

2016-07-07 Thread Reid Kleckner via cfe-commits
rnk added a comment. In http://reviews.llvm.org/D20352#477084, @aaron.ballman wrote: > No, I'm not. I am worried about how this conflicts with another in-flight > patch for supporting MS hotpatchable functions since it seems these two > attributes do roughly the same thing. I'd like to

[PATCH] D22105: [X86][SSE] Reimplement SSE fp2si conversion intrinsics instead of using generic IR

2016-07-07 Thread Simon Pilgrim via cfe-commits
RKSimon created this revision. RKSimon added reviewers: eli.friedman, mkuper, craig.topper, spatel, andreadb. RKSimon added a subscriber: cfe-commits. RKSimon set the repository for this revision to rL LLVM. D20859 and D20860 attempted to replace the SSE (V)CVTTPS2DQ and VCVTTPD2DQ truncating

[PATCH] D22102: [clang-rename] extend testset

2016-07-07 Thread Kirill Bobyrev via cfe-commits
omtcyf0 created this revision. omtcyf0 added reviewers: alexfh, klimek, bkramer, ioeric. omtcyf0 added a subscriber: cfe-commits. This patch introduces few additional tests including one case the tool does not handle yet, which should be fixed in the future. http://reviews.llvm.org/D22102

Re: [PATCH] D20352: Add XRay flags to Clang

2016-07-07 Thread Aaron Ballman via cfe-commits
aaron.ballman requested changes to this revision. aaron.ballman added a comment. This revision now requires changes to proceed. In http://reviews.llvm.org/D20352#477038, @rnk wrote: > Looks good from a driver perspective. Aaron, you're happy with the attribute > spelling stuff, right? No, I'm

Re: [PATCH] D20352: Add XRay flags to Clang

2016-07-07 Thread Reid Kleckner via cfe-commits
rnk accepted this revision. rnk added a comment. This revision is now accepted and ready to land. Looks good from a driver perspective. Aaron, you're happy with the attribute spelling stuff, right? It looks like you can actually land this before landing the two dependent changes you mention

r274782 - [CUDA] s/OPT_nocuda_version_chec/OPT_no_cuda_version_check/.

2016-07-07 Thread Justin Lebar via cfe-commits
Author: jlebar Date: Thu Jul 7 13:24:28 2016 New Revision: 274782 URL: http://llvm.org/viewvc/llvm-project?rev=274782=rev Log: [CUDA] s/OPT_nocuda_version_chec/OPT_no_cuda_version_check/. Fix build breakage. Modified: cfe/trunk/lib/Driver/ToolChains.cpp cfe/trunk/lib/Driver/Tools.cpp

[PATCH] D22100: [clang-rename] fix typo in Python script for Vim integration

2016-07-07 Thread Kirill Bobyrev via cfe-commits
omtcyf0 created this revision. omtcyf0 added reviewers: kimgr, alexfh, bkramer, hokein, ioeric. omtcyf0 added a subscriber: cfe-commits. http://reviews.llvm.org/D22100 Files: clang-rename/tool/clang-rename.py Index: clang-rename/tool/clang-rename.py

Re: [PATCH] D22087: [clang-rename] add basic vim integration

2016-07-07 Thread Kirill Bobyrev via cfe-commits
omtcyf0 added a comment. @kimgr oops, sorry. I'll send a cleanup patch. Thanks for noticing. Repository: rL LLVM http://reviews.llvm.org/D22087 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D20196: [clang-tidy] Inefficient string operation

2016-07-07 Thread Bittner Barni via cfe-commits
bittnerbarni updated this revision to Diff 63098. bittnerbarni added a comment. Thank you, for your valuable comments Alexander! http://reviews.llvm.org/D20196 Files: clang-tidy/performance/CMakeLists.txt clang-tidy/performance/InefficientStringConcatenationCheck.cpp

Re: [PATCH] D21912: [CUDA] Don't assume that destructors can't be overloaded.

2016-07-07 Thread Justin Lebar via cfe-commits
jlebar added a comment. Friendly ping http://reviews.llvm.org/D21912 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D21869: [CUDA] Check that our CUDA install supports the requested architectures.

2016-07-07 Thread Justin Lebar via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL274781: [CUDA] Check that our CUDA install supports the requested architectures. (authored by jlebar). Changed prior to commit: http://reviews.llvm.org/D21869?vs=63094=63100#toc Repository: rL LLVM

r274781 - [CUDA] Check that our CUDA install supports the requested architectures.

2016-07-07 Thread Justin Lebar via cfe-commits
Author: jlebar Date: Thu Jul 7 13:17:52 2016 New Revision: 274781 URL: http://llvm.org/viewvc/llvm-project?rev=274781=rev Log: [CUDA] Check that our CUDA install supports the requested architectures. Summary: Raise an error if you're using a CUDA installation that's too old for the requested

r274780 - [CUDA] Rename the __nvvm_bar0 builtin back to __syncthreads.

2016-07-07 Thread Justin Lebar via cfe-commits
Author: jlebar Date: Thu Jul 7 13:15:03 2016 New Revision: 274780 URL: http://llvm.org/viewvc/llvm-project?rev=274780=rev Log: [CUDA] Rename the __nvvm_bar0 builtin back to __syncthreads. The builtin was renamed in r274770. But __syncthreads is part of our user-facing API, so we need to keep

Re: [PATCH] D21814: clang-rename: support multiple renames with one invocation

2016-07-07 Thread Kirill Bobyrev via cfe-commits
omtcyf0 added a subscriber: omtcyf0. omtcyf0 added a comment. Hi @vmiklos! Thank you very much for contributing to clang-rename. The patch looks nice, but it conflicts with my understanding of the view on what the tool should do. Generally, I do not support the idea of adding an option to

Re: [PATCH] D21869: [CUDA] Check that our CUDA install supports the requested architectures.

2016-07-07 Thread Artem Belevich via cfe-commits
tra accepted this revision. tra added a comment. This revision is now accepted and ready to land. LGTM. Comment at: lib/Driver/ToolChains.cpp:1798 @@ +1797,3 @@ +FS.getBufferForFile(InstallPath + "/version.txt"); +if (!VersionFile) { + // CUDA 7.0 doesn't have

Re: [PATCH] D21667: [analyzer] Add rudimentary handling of AtomicExpr.

2016-07-07 Thread Devin Coughlin via cfe-commits
dcoughlin marked an inline comment as done. dcoughlin added a comment. Ping. Richard: Would you be willing to take a quick look at the change to the AST? http://reviews.llvm.org/D21667 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D21667: [analyzer] Add rudimentary handling of AtomicExpr.

2016-07-07 Thread Devin Coughlin via cfe-commits
dcoughlin marked an inline comment as done. Comment at: test/Analysis/atomics.c:5 @@ +4,3 @@ +// because we don't fully model the atomics and instead imprecisely +// treat their arguments as escaping. + Thanks! Fixed. http://reviews.llvm.org/D21667

Re: [PATCH] D21667: [analyzer] Add rudimentary handling of AtomicExpr.

2016-07-07 Thread Devin Coughlin via cfe-commits
dcoughlin updated this revision to Diff 63096. dcoughlin added a comment. Fix typo and bad indentation. http://reviews.llvm.org/D21667 Files: include/clang/AST/Expr.h include/clang/StaticAnalyzer/Core/PathSensitive/ExprEngine.h lib/StaticAnalyzer/Core/ExprEngine.cpp

Re: [PATCH] D21869: [CUDA] Check that our CUDA install supports the requested architectures.

2016-07-07 Thread Justin Lebar via cfe-commits
jlebar updated this revision to Diff 63094. jlebar marked 3 inline comments as done. jlebar added a comment. Address review comments. http://reviews.llvm.org/D21869 Files: include/clang/Basic/DiagnosticDriverKinds.td include/clang/Driver/Options.td lib/Driver/ToolChains.cpp

Re: [PATCH] D22091: [clang-rename] exit code-related bugfix and code cleanup

2016-07-07 Thread Kirill Bobyrev via cfe-commits
omtcyf0 updated this revision to Diff 63093. omtcyf0 marked an inline comment as done. http://reviews.llvm.org/D22091 Files: clang-rename/RenamingAction.cpp clang-rename/USRLocFinder.cpp clang-rename/USRLocFinder.h clang-rename/tool/ClangRename.cpp Index:

Re: [PATCH] D22091: [clang-rename] exit code-related bugfix and code cleanup

2016-07-07 Thread Kirill Bobyrev via cfe-commits
omtcyf0 added inline comments. Comment at: clang-rename/USRLocFinder.h:38 @@ -37,2 +37,2 @@ -#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_RENAME_USR_LOC_FINDER_H +#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_RENAME_USR_LOC_FINDER_H bkramer wrote: > In LLVM we usually have

Re: [PATCH] D21962: MPITypeMismatchCheck for Clang-Tidy

2016-07-07 Thread Alexander Droste via cfe-commits
Alexander_Droste marked 22 inline comments as done. Comment at: clang-tidy/misc/MpiTypeMismatchCheck.cpp:153 @@ +152,3 @@ + {BuiltinType::LongDouble, "MPI_C_LONG_DOUBLE_COMPLEX"}}; + + const auto *Builtin = Sure, I can do that. I marked all addressed

RE: [PATCH] D21567: [OpenCL] Generate struct type for sampler_t and function call for the initializer

2016-07-07 Thread Liu, Yaxun (Sam) via cfe-commits
+ Brian Hi Anastasia, The advantage for translating sampler variable to a global variable with __sampler_initializer type is that it is consistent with OpenCL C++ and SPIRV, so it is easier to translate the IR to SPIRV. About the type name of sampler_t in LLVM, using a name without `.` allows

Re: [PATCH] D21962: MPITypeMismatchCheck for Clang-Tidy

2016-07-07 Thread Alexander Droste via cfe-commits
Alexander_Droste updated this revision to Diff 63091. Alexander_Droste added a comment. - make static functions free functions - make static containers local to their corresponding functions - only assign the buffer type name in case of an error - fix capitalization and punctuation in error

Re: [PATCH] D22048: [analyzer] Suppress false positives in std::shared_ptr

2016-07-07 Thread Devin Coughlin via cfe-commits
dcoughlin closed this revision. dcoughlin added a comment. This was committed in r274691. I forgot to add the Differential Revision line so phabricator didn't pick it up. http://reviews.llvm.org/D22048 ___ cfe-commits mailing list

Re: [PATCH] D22075: [OpenMP] Fix incorrect diagnostics in map clause

2016-07-07 Thread David S via cfe-commits
davidsh updated this revision to Diff 63090. davidsh added a comment. Address comments http://reviews.llvm.org/D22075 Files: lib/Sema/SemaOpenMP.cpp test/OpenMP/target_map_messages.cpp Index: test/OpenMP/target_map_messages.cpp

Re: [PATCH] D22075: [OpenMP] Fix incorrect diagnostics in map clause

2016-07-07 Thread Samuel Antao via cfe-commits
sfantao added a comment. Thanks. You have to wait for Alexey to take a look at the patch too. Thanks again, Samuel http://reviews.llvm.org/D22075 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D21667: [analyzer] Add rudimentary handling of AtomicExpr.

2016-07-07 Thread Anna Zaks via cfe-commits
zaks.anna accepted this revision. This revision is now accepted and ready to land. Comment at: lib/StaticAnalyzer/Core/ExprEngine.cpp:2075 @@ +2074,3 @@ +void ExprEngine::VisitAtomicExpr(const AtomicExpr *AE, ExplodedNode *Pred, + ExplodedNodeSet ) { +

Re: [PATCH] D21869: [CUDA] Check that our CUDA install supports the requested architectures.

2016-07-07 Thread Artem Belevich via cfe-commits
tra added inline comments. Comment at: include/clang/Basic/DiagnosticDriverKinds.td:32 @@ -29,1 +31,3 @@ + "Use --cuda-path to specify a different CUDA install, or pass " + "--nocuda-version-check.">; def err_drv_invalid_thread_model_for_target : Error< Is it

r274767 - Revert "[aarch64] Update datalayout for aarch64 tests"

2016-07-07 Thread Chad Rosier via cfe-commits
Author: mcrosier Date: Thu Jul 7 11:37:21 2016 New Revision: 274767 URL: http://llvm.org/viewvc/llvm-project?rev=274767=rev Log: Revert "[aarch64] Update datalayout for aarch64 tests" This reverts commit r273289, which was a follow to r273280, which was reverted because the change was not

r274770 - NVPTX: Use the nvvm builtins to read SRegs rather than the legacy ptx ones

2016-07-07 Thread Justin Bogner via cfe-commits
Author: bogner Date: Thu Jul 7 11:41:08 2016 New Revision: 274770 URL: http://llvm.org/viewvc/llvm-project?rev=274770=rev Log: NVPTX: Use the nvvm builtins to read SRegs rather than the legacy ptx ones The ptx spellings were removed from LLVM in r274769. Modified:

r274766 - Revert "[AArch64] Change the preferred alignment for char and short to word alignment"

2016-07-07 Thread Chad Rosier via cfe-commits
Author: mcrosier Date: Thu Jul 7 11:37:19 2016 New Revision: 274766 URL: http://llvm.org/viewvc/llvm-project?rev=274766=rev Log: Revert "[AArch64] Change the preferred alignment for char and short to word alignment" This reverts commit r273280 as the change was not properly approved.

Re: [PATCH] D20948: [OpenCL] Fix access qualifiers handling for typedefs

2016-07-07 Thread Anastasia Stulova via cfe-commits
Anastasia added inline comments. Comment at: include/clang/Basic/DiagnosticSemaKinds.td:2509 @@ -2508,3 +2508,3 @@ "functions, methods, and parameters|classes|enums|variables|methods|" - "fields and global variables|structs|variables and typedefs|thread-local variables|" -

Re: [PATCH] D20948: [OpenCL] Fix access qualifiers handling for typedefs

2016-07-07 Thread Anastasia Stulova via cfe-commits
Anastasia accepted this revision. Anastasia added a comment. This revision is now accepted and ready to land. LGTM! Could you please address these last minor comments though before committing. Thanks! Comment at: test/SemaOpenCL/access-qualifier.cl:10 @@ +9,3 @@ +#if

Re: [PATCH] D22091: [clang-rename] exit code-related bugfix and code cleanup

2016-07-07 Thread Benjamin Kramer via cfe-commits
bkramer added inline comments. Comment at: clang-rename/USRLocFinder.h:38 @@ -37,2 +37,2 @@ -#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_RENAME_USR_LOC_FINDER_H +#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_RENAME_USR_LOC_FINDER_H In LLVM we usually have only one space

Re: [PATCH] D21567: [OpenCL] Generate struct type for sampler_t and function call for the initializer

2016-07-07 Thread Anastasia Stulova via cfe-commits
Anastasia added inline comments. Comment at: include/clang/AST/BuiltinTypes.def:164 @@ +163,3 @@ +// Internal OpenCL sampler initializer type. +BUILTIN_TYPE(OCLSamplerInit, OCLSamplerInitTy) + > However, we want it to be translated to __sampler_initializer* type.

Re: [PATCH] D22087: [clang-rename] add basic vim integration

2016-07-07 Thread Kim Gräsman via cfe-commits
kimgr added a subscriber: kimgr. kimgr added a comment. I only caught this typo after it was committed. Comment at: clang-tools-extra/trunk/clang-rename/tool/clang-rename.py:17-18 @@ +16,4 @@ +All you have to do now is to place a cursor on a variable/function/class which +you

Re: [PATCH] D22091: [clang-rename] exit code-related bugfix and code cleanup

2016-07-07 Thread Miklos Vajna via cfe-commits
vmiklos added a subscriber: vmiklos. vmiklos added a comment. Can you please postpone the cleanup till http://reviews.llvm.org/D21814 is reviewed? The two patches conflict with each other, I fear. Thanks. :-) http://reviews.llvm.org/D22091 ___

Re: [PATCH] D22046: [clang-tidy] Add dependency on clang-headers

2016-07-07 Thread Eugene Zelenko via cfe-commits
Eugene.Zelenko added a subscriber: Eugene.Zelenko. Eugene.Zelenko closed this revision. Eugene.Zelenko added a comment. Committed in r274751. http://reviews.llvm.org/D22046 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D20948: [OpenCL] Fix access qualifiers handling for typedefs

2016-07-07 Thread Andrew Savonichev via cfe-commits
asavonic marked 4 inline comments as done. asavonic added a comment. http://reviews.llvm.org/D20948 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D20948: [OpenCL] Fix access qualifiers handling for typedefs

2016-07-07 Thread Andrew Savonichev via cfe-commits
asavonic updated this revision to Diff 63073. asavonic added a comment. Merged invalid-access-qualifier.cl and images-typedef.cl tests, fixed code style issues. http://reviews.llvm.org/D20948 Files: include/clang/Basic/Attr.td include/clang/Basic/DiagnosticSemaKinds.td

Re: [PATCH] D22087: [clang-rename] add basic vim integration

2016-07-07 Thread Phabricator via cfe-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL274759: [clang-rename] add basic vim integration (authored by d0k). Changed prior to commit: http://reviews.llvm.org/D22087?vs=63058=63072#toc Repository: rL LLVM http://reviews.llvm.org/D22087

[clang-tools-extra] r274759 - [clang-rename] add basic vim integration

2016-07-07 Thread Benjamin Kramer via cfe-commits
Author: d0k Date: Thu Jul 7 09:35:32 2016 New Revision: 274759 URL: http://llvm.org/viewvc/llvm-project?rev=274759=rev Log: [clang-rename] add basic vim integration This patch introduces basic Vim integration for clang-rename tool. For setup reference see clang-rename/tool/clang-rename.py

Re: [PATCH] D22087: [clang-rename] add basic vim integration

2016-07-07 Thread Kirill Bobyrev via cfe-commits
omtcyf0 added a comment. @bkramer can you please land the patch? http://reviews.llvm.org/D22087 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[PATCH] D22091: [clang-rename] exit code-related bugfix and code cleanup

2016-07-07 Thread Kirill Bobyrev via cfe-commits
omtcyf0 created this revision. omtcyf0 added reviewers: alexfh, klimek, bkramer, ioeric. omtcyf0 added a subscriber: cfe-commits. This patch does the following: * enforces proper formatting for few files (i.e. deals with 80 linewidth violations and few other things) * ensures '\n' chars are

Re: [PATCH] D20857: [clang-tidy] Add modernize-explicit-operator-bool check.

2016-07-07 Thread Alexander Kornienko via cfe-commits
alexfh requested changes to this revision. alexfh added a comment. This revision now requires changes to proceed. Sorry for the delay. Feel free to ping me earlier. Comment at: clang-tidy/modernize/ExplicitOperatorBoolCheck.cpp:38 @@ +37,3 @@ + Finder->addMatcher( +

[clang-tools-extra] r274751 - [clang-tidy] Add dependency on clang-headers

2016-07-07 Thread Nico Weber via cfe-commits
Author: nico Date: Thu Jul 7 08:19:45 2016 New Revision: 274751 URL: http://llvm.org/viewvc/llvm-project?rev=274751=rev Log: [clang-tidy] Add dependency on clang-headers Currently, to be able to process a source file including e.g. stddef.h with clang-tidy, one has to build both clang-tidy and

Re: [PATCH] D22046: [clang-tidy] Add dependency on clang-headers

2016-07-07 Thread Nico Weber via cfe-commits
thakis added a comment. r274751, thanks! http://reviews.llvm.org/D22046 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D18821: Add bugprone-bool-to-integer-conversion

2016-07-07 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. Sorry for the delay. Your patch was lost in my inbox. Feel free to ping me earlier. Comment at: docs/clang-tidy/checks/bugprone-bool-to-integer-conversion.rst:37 @@ +36,3 @@ + +It turns out that the common bug is to have function returning only bools

[PATCH] D22090: [analyzer] Add more FileIDs to PlistDiagnostic map

2016-07-07 Thread Aleksei Sidorin via cfe-commits
a.sidorin created this revision. a.sidorin added reviewers: zaks.anna, dcoughlin. a.sidorin added a subscriber: cfe-commits. Some FileIDs that may be used by PlistDiagnostics are not added while building a list of pieces. This leads to assertion violation in `GetFID()` function. This patch

Re: [PATCH] D21962: MPITypeMismatchCheck for Clang-Tidy

2016-07-07 Thread Alexander Kornienko via cfe-commits
alexfh requested changes to this revision. This revision now requires changes to proceed. Comment at: clang-tidy/misc/MpiTypeMismatchCheck.cpp:147 @@ +146,3 @@ +const Type *MpiTypeMismatchCheck::argumentType(const CallExpr *const CE, +

Re: [PATCH] D21814: clang-rename: support multiple renames with one invocation

2016-07-07 Thread Manuel Klimek via cfe-commits
klimek added a comment. In http://reviews.llvm.org/D21814#476572, @bkramer wrote: > In http://reviews.llvm.org/D21814#475322, @klimek wrote: > > > I think we really want 2 tools: > > a) one that is optimized for oldname->newname renames, and supports the > > multi-TU case really well > > b)

Re: [PATCH] D22087: [clang-rename] add basic vim integration

2016-07-07 Thread Kirill Bobyrev via cfe-commits
omtcyf0 marked an inline comment as done. Comment at: clang-rename/tool/clang-rename.py:13 @@ +12,3 @@ +map ,cr :pyf /clang-rename.py + +IMPORTANT NOTE: Before running the tool, make sure you saved the file. Aw, sure; sorry for that. That's an artifact from

Re: [PATCH] D22087: [clang-rename] add basic vim integration

2016-07-07 Thread Kirill Bobyrev via cfe-commits
omtcyf0 updated this revision to Diff 63058. http://reviews.llvm.org/D22087 Files: clang-rename/tool/clang-rename.py Index: clang-rename/tool/clang-rename.py === --- /dev/null +++ clang-rename/tool/clang-rename.py @@ -0,0 +1,61

Re: [PATCH] D22087: [clang-rename] add basic vim integration

2016-07-07 Thread Kirill Bobyrev via cfe-commits
omtcyf0 updated this revision to Diff 63057. omtcyf0 marked 2 inline comments as done. http://reviews.llvm.org/D22087 Files: clang-rename/tool/clang-rename.py Index: clang-rename/tool/clang-rename.py === --- /dev/null +++

Re: [PATCH] D22087: [clang-rename] add basic vim integration

2016-07-07 Thread Kirill Bobyrev via cfe-commits
omtcyf0 marked an inline comment as done. omtcyf0 added a comment. http://reviews.llvm.org/D22087 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D21992: [clang-tidy] new cppcoreguidelines-slicing

2016-07-07 Thread Alexander Kornienko via cfe-commits
alexfh added a comment. Thanks for the new awesome check! Please run the check on LLVM and include your analysis of the results in the patch description. Another couple of comments below. Comment at: clang-tidy/cppcoreguidelines/SlicingCheck.cpp:93 @@ +92,3 @@ +

Re: [PATCH] D22069: clang-tidy modernize-loop-convert: preserve type of alias declaration (bug 28341)

2016-07-07 Thread Alexander Kornienko via cfe-commits
alexfh requested changes to this revision. This revision now requires changes to proceed. Comment at: clang-tidy/modernize/LoopConvertCheck.cpp:525 @@ +524,3 @@ + DeclarationType = DeclarationType.getNonReferenceType(); +if (Descriptor.ElemType.isNull() ||

Re: [PATCH] D22087: [clang-rename] add basic vim integration

2016-07-07 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-rename/tool/clang-rename.py:17 @@ +16,3 @@ +All you have to do now is to place a cursor on a variable/function/class which +you would like to rename and press ',cf'. You will be promted a new name if the +cursor points to a valid

Re: [PATCH] D22087: [clang-rename] add basic vim integration

2016-07-07 Thread Alexander Kornienko via cfe-commits
alexfh accepted this revision. alexfh added a comment. LG http://reviews.llvm.org/D22087 ___ cfe-commits mailing list cfe-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Re: [PATCH] D22087: [clang-rename] add basic vim integration

2016-07-07 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-rename/tool/ClangRename.cpp:39 @@ -38,3 +38,2 @@ #include "llvm/Support/Host.h" -#include #include bkramer wrote: > omtcyf0 wrote: > > bkramer wrote: > > > This looks unrelated. > > Right, but I'm not sure

Re: [PATCH] D22087: [clang-rename] add basic vim integration

2016-07-07 Thread Alexander Kornienko via cfe-commits
alexfh added inline comments. Comment at: clang-rename/tool/clang-rename.py:12 @@ +11,3 @@ + +map ,cf :pyf /clang-include-fixer.py + ioeric wrote: > Maybe a different key binding so that it doesn't conflict with > include-fixer's suggested key binding? `,cr`

Re: [PATCH] D21983: Add C++ dependencies to xray runtime

2016-07-07 Thread Aaron Ballman via cfe-commits
aaron.ballman accepted this revision. aaron.ballman added a comment. This revision is now accepted and ready to land. LGTM (once other deps land). http://reviews.llvm.org/D21983 ___ cfe-commits mailing list cfe-commits@lists.llvm.org

Re: [PATCH] D21834: Implementing 'If statement with Initializer'

2016-07-07 Thread Anton Bikineev via cfe-commits
AntonBikineev updated this revision to Diff 63056. AntonBikineev added a comment. @rsmith, I've added some tests for c++1z init statement. Please let me know if there is anything else I should add or change. http://reviews.llvm.org/D21834 Files: include/clang/AST/Stmt.h

Re: [PATCH] D22087: [clang-rename] add basic vim integration

2016-07-07 Thread Benjamin Kramer via cfe-commits
bkramer added inline comments. Comment at: clang-rename/tool/ClangRename.cpp:39 @@ -38,3 +38,2 @@ #include "llvm/Support/Host.h" -#include #include omtcyf0 wrote: > bkramer wrote: > > This looks unrelated. > Right, but I'm not sure one-line patches are

  1   2   >