- Oct 19, 2017
-
-
Vedant Kumar authored
LineCoverageIterator makes it easy for clients of coverage data to determine line execution counts for a file or function. The coverage iteration logic is tricky enough that it really pays not to have multiple copies of it. Hopefully having just one implementation in LLVM will make the iteration logic easier to test, reuse, and update. This commit is NFC but I've added a unit test to go along with it just because it's easy to do now. llvm-svn: 316141
-
Vedant Kumar authored
This is a simple code cleanup. It will facilitate moving LineCoverageIterator to libCoverage. llvm-svn: 316140
-
Justin Bogner authored
This runs `udpate_mir_test_checks --add-vreg-checks` on the tests taht are already more or less in the format that generates, so that there will be less churn in some upcoming changes. llvm-svn: 316139
-
Justin Bogner authored
llvm-svn: 316138
-
Justin Bogner authored
This converts a large and somewhat arbitrary set of tests to use update_mir_test_checks. I ran the script on all of the tests I expect to need to modify for an upcoming mir syntax change and kept the ones that obviously didn't change the tests in ways that might make it harder to understand. llvm-svn: 316137
-
Richard Smith authored
instantiation declarations if they are usable from constant expressions. We are permitted to instantiate in these cases, and required to do so in order to have an initializer available for use within constant evaluation. llvm-svn: 316136
-
Chandler Carruth authored
one place. llvm-svn: 316135
-
Justin Bogner authored
This is a temporary hack to support adding checks for the "registers:" block of mir functions. This is necessary to convert a number of tests so that there's less churn when we change the MIR printer to put the vreg classes on defs instead of in their own block. llvm-svn: 316134
-
Justin Bogner authored
llvm-svn: 316133
-
Erich Keane authored
The .cpp file has this properly capitalized, but the header does not. Simply fixed it. llvm-svn: 316132
-
Tony Tye authored
- Add description on nontemporal support. - Correct OpenCL sequentially consistent and fence code sequences. - Minor test cleanup. Differential Revision: https://reviews.llvm.org/D39073 llvm-svn: 316131
-
Krasimir Georgiev authored
Summary: This patch enables sorting the full block of using declarations when some line is affected. Reviewers: djasper Reviewed By: djasper Subscribers: cfe-commits, klimek Differential Revision: https://reviews.llvm.org/D39024 llvm-svn: 316130
-
Sanjoy Das authored
This reverts commit r316054. There was some confusion over the review process: http://lists.llvm.org/pipermail/llvm-commits/Week-of-Mon-20171016/495884.html llvm-svn: 316129
-
- Oct 18, 2017
-
-
Eugene Zelenko authored
[Transforms] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). llvm-svn: 316128
-
Benjamin Kramer authored
No functionality change intended. llvm-svn: 316127
-
Sam Clegg authored
llvm-svn: 316126
-
Marshall Clow authored
Fix a think-o in the design of the stable_XXX sort tests; only shows up for test cases > 255 elements llvm-svn: 316125
-
Dylan McKay authored
llvm-svn: 316124
-
Sam Clegg authored
This was causing execname-options.ll to fail on the wasm waterfall. Differential Revision: https://reviews.llvm.org/D39022 llvm-svn: 316123
-
Vedant Kumar authored
llvm-cov tends to highlight too many regions because its policy is to highlight all region entry segments. This can look confusing to users: not all region entry segments are interesting and deserve highlighting. Emitting these highlights only when the region count differs from the line count is a more user-friendly policy. llvm-svn: 316109
-
Vedant Kumar authored
Instead of copying around the wrapped segment and the list of line segments, just pass a reference to a LineCoverageStats object. This simplifies the interface. It also makes an upcoming change to suppress distracting highlights possible. llvm-svn: 316108
-
Vedant Kumar authored
llvm-cov typically doesn't highlight gap segments, but it should if the gap occurs after an uncovered region in order to preserve continuity. llvm-svn: 316107
-
Pavel Labath authored
We were creating a StringRef pointing to a temporary string. Problem manifested itself when running the test on osx. llvm-svn: 316106
-
Alex Lorenz authored
unittest. As suggested by Haojian Wu! llvm-svn: 316105
-
Alex Lorenz authored
consecutive statements This commit adds a CodeRangeASTSelection value to the refactoring library. This value represents a set of selected statements in one body of code. Differential Revision: https://reviews.llvm.org/D38835 llvm-svn: 316104
-
Matt Morehouse authored
llvm-svn: 316103
-
Sumanth Gundapaneni authored
This patch has the following changes A new flag "-mhvx-length={64B|128B}" is introduced to specify the length of the vector. Previously we have used "-mhvx-double" for 128 Bytes. This adds the target-feature "+hvx-length{64|128}b" The "-mhvx" flag must be provided on command line to enable HVX for Hexagon. If no -mhvx-length flag is specified, a default length is picked from the arch mentioned in this priority order from either -mhvx=vxx or -mcpu. For v60 and v62 the default length is 64 Byte. For unknown versions, the length is 128 Byte. The -mhvx flag adds the target-feature "+hvxv{hvx_version}" The 64 Byte mode is soon going to be deprecated. A warning is emitted if 64 Byte is enabled. A warning is still emitted for the default 64 Byte as well. This warning can be suppressed with a -Wno flag. The "-mhvx-double" and "-mno-hvx-double" flags are deprecated. A warning is emitted if the driver sees them on commandline. "-mhvx-double" is an alias to "-mhvx-length=128B" The compilation will error out if -mhvx-length is specified with out an -mhvx/-mhvx= flag The macro HVX_LENGTH is defined and is set to the length of the vector. Eg: #define HVX_LENGTH 64 The macro HVX_ARCH is defined and is set to the version of the HVX. Eg: #define HVX_ARCH 62 Differential Revision: https://reviews.llvm.org/D38852 llvm-svn: 316102
-
Sumanth Gundapaneni authored
This patch lets the llvm tools handle the new HVX target features that are added by frontend (clang). The target-features are of the form "hvx-length64b" for 64 Byte HVX mode, "hvx-length128b" for 128 Byte mode HVX. "hvx-double" is an alias to "hvx-length128b" and is soon will be deprecated. The hvx version target feature is upgated form "+hvx" to "+hvxv{version_number}. Eg: "+hvxv62" For the correct HVX code generation, the user must use the following target features. For 64B mode: "+hvxv62" "+hvx-length64b" For 128B mode: "+hvxv62" "+hvx-length128b" Clang picks a default length if none is specified. If for some reason, no hvx-length is specified to llvm, the compilation will bail out. There is a corresponding clang patch. Differential Revision: https://reviews.llvm.org/D38851 llvm-svn: 316101
-
Konstantin Zhuravlyov authored
- R600 Arch: Use Radeon HD XXXX Series - GCN Arch: Use GFXX Differential Revision: https://reviews.llvm.org/D39019 llvm-svn: 316100
-
Sumanth Gundapaneni authored
Differential Revision: https://reviews.llvm.org/D38850 llvm-svn: 316099
-
Krzysztof Parzyszek authored
All loads of form V6_vL32b_{,cur,nt,tmp,nt_cur,nt_tmp}_{ai,pi,ppu} are predicable on v62 (but not on v60). Mark them all as predicable in the instruction definitions, and handle the v60 case in HII::isPredicable. llvm-svn: 316098
-
Konstantin Zhuravlyov authored
Differential Revision: https://reviews.llvm.org/D38957 llvm-svn: 316097
-
Aaron Ballman authored
Enable support for the [[maybe_unused]] attribute from WG14 N2053 when enabling double square bracket attributes in C code. llvm-svn: 316096
-
Marshall Clow authored
Fix regex bug with ^\W. Thanks to Tim Shen for the patch. Reviewed as https://reviews.llvm.org/D37955 llvm-svn: 316095
-
Jonas Toth authored
The previous fix only worked for 64bit MSVC, this one should fix all different architectures. llvm-svn: 316094
-
Jonas Toth authored
The testcase defined `FILE` as `unsigned long`, but MSVC expect `unsigned long long`. llvm-svn: 316093
-
Jonas Toth authored
Summary: This patch introduces support for legacy C-style resource functions that must obey the 'owner<>' semantics. - added legacy creators like malloc,fopen,... - added legacy consumers like free,fclose,... This helps codes that mostly benefit from owner: Legacy, C-Style code that isn't feasable to port directly to RAII but needs a step in between to identify actual resource management and just using the resources. Reviewers: aaron.ballman, alexfh, hokein Reviewed By: aaron.ballman Subscribers: nemanjai, JDevlieghere, xazax.hun, kbarton Differential Revision: https://reviews.llvm.org/D38396 llvm-svn: 316092
-
Alex Bradbury authored
r315275 set the IsLittleEndian parameter incorrectly. This patch corrects this, and adds a test to ensure such mistakes will be caught in the future. llvm-svn: 316091
-
Haojian Wu authored
check_clang_tidy.py currently only handles C and C++ source files. This extends the logic to also handle Objective-C (.m) and Objective-C++ (.mm) files. However, by default, clang compiles .m/.mm files using Objective-C 1.0 syntax. Objective-C 2.0 has been the default in Xcode for about 10 years, and Objective-C Automatic Reference Counting (ARC) for about 6 years, so this enables both by default. (Clients which actually want to test clang-tidy checks for Objective-C 1.0 or non-ARC files can pass custom flags to check_clang_tidy.py after --, which will disable the Objective-C 2.0 and ARC flags). I did not add logic to handle running clang-tidy on Objective-C header files alone; they also use the .h file extension, so we'd need to look inside their contents. I included a new test to confirm the new behavior. Depends On D38963 Patch by Ben Hamilton! llvm-svn: 316090
-
Justin Bogner authored
An empty livein block doesn't make much sense (why not just omit it?) but they're legal and some tests have them, so its best to handle it. llvm-svn: 316089
-