summaryrefslogtreecommitdiffstats
path: root/utils
Commit message (Collapse)AuthorAgeFilesLines
* Remove the vestiges of the C backend.Eric Christopher2012-03-233-6/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@153308 91177308-0d34-0410-b5e6-96231b3b80d8
* Adding namespace qualifiers to the visualizers and improving their behavior.Aaron Ballman2012-03-101-8/+8
| | | | | | Patch thanks to Nikola Smiljanic git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152514 91177308-0d34-0410-b5e6-96231b3b80d8
* [utils/FuzzTest] Add '--stop-on-fail' to stop the script on the first failureArgyrios Kyrtzidis2012-03-081-1/+11
| | | | | | without reverting the changes. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152333 91177308-0d34-0410-b5e6-96231b3b80d8
* [utils/FuzzTest] The help message says that if you don't specify --max-testsArgyrios Kyrtzidis2012-03-081-1/+1
| | | | | | "the script will run forever continually picking new tests to run", make it so. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152327 91177308-0d34-0410-b5e6-96231b3b80d8
* [utils/FuzzTest] For --filelist the option type is string, not integer.Argyrios Kyrtzidis2012-03-081-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152324 91177308-0d34-0410-b5e6-96231b3b80d8
* Spelling.Daniel Dunbar2012-03-081-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152281 91177308-0d34-0410-b5e6-96231b3b80d8
* Refactor Clang sema attribute handling.Michael Han2012-03-073-0/+131
| | | | | | | | | | | | | | | | | | | This submission improves Clang sema handling by using Clang tablegen to generate common boilerplate code. As a start, it implements AttributeList enumerator generation and case statements for AttributeList::getKind. A new field "SemaHandler" is introduced in Attr.td and by default set to 1 as most of attributes in Attr.td have semantic checking in Sema. For a small number of attributes that don't appear in Sema, the value is set to 0. Also there are a small number of attributes that only appear in Sema but not in Attr.td. Currently these attributes are still hardcoded in Sema AttributeList. Reviewed by Delesley Hutchins. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152169 91177308-0d34-0410-b5e6-96231b3b80d8
* [tablegen] Make sure that the code that is determining the order of warning ↵Argyrios Kyrtzidis2012-03-061-51/+46
| | | | | | | | groups is shared to avoid any "misalignment" if indices. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@152074 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Testing: These checkers are not experimental anymore.Anna Zaks2012-02-201-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150989 91177308-0d34-0410-b5e6-96231b3b80d8
* Store the warning option corresponding to a diagnostics as an index into the ↵Benjamin Kramer2012-02-151-5/+23
| | | | | | | | option table instead of storing the name. Another 8 bytes + relocation removed from every diagnostic on x86_64. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150615 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Add the Malloc checker to the list of tested checkers.Anna Zaks2012-02-151-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150535 91177308-0d34-0410-b5e6-96231b3b80d8
* Add a script that produces a list of all diagnostics that are defined inDmitri Gribenko2012-02-131-0/+19
| | | | | | | | Diagnostic*.td files but not used in sources. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150410 91177308-0d34-0410-b5e6-96231b3b80d8
* drop more llvm:: prefixes on SmallString<>Dylan Noblesmith2012-02-131-1/+1
| | | | | | More cleanup after r149799. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150380 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove stray semi-colon.Daniel Dunbar2012-02-101-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150231 91177308-0d34-0410-b5e6-96231b3b80d8
* Kill the brief and full explanation fields from StaticDiagInfoRec. They were ↵Benjamin Kramer2012-02-091-8/+0
| | | | | | | | unused and wasted space for nothing. - per PR11952. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@150199 91177308-0d34-0410-b5e6-96231b3b80d8
* Added MSVC visualizers for PointerIntPair and PointerUnions.Aaron Ballman2012-02-061-1/+91
| | | | | | Patch by Nikola Smiljanic git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149896 91177308-0d34-0410-b5e6-96231b3b80d8
* Move instantiateTemplateAttribute into the sema namespace, make helpers static.Benjamin Kramer2012-02-061-2/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149864 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Testing: add automated reference results reset.Anna Zaks2012-02-031-12/+70
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149682 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Testing: add 2 new checkers to the buildbot script.Anna Zaks2012-02-011-1/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@149514 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Add the HTML file to the SATest diagnostic diff.Anna Zaks2012-01-242-4/+5
| | | | | | (Uses the functionality which has been in CmpRuns long before.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148868 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Testing: make diagnostic diffs more informative (addAnna Zaks2012-01-241-2/+5
| | | | | | diagnostic message). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148867 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Unbreak the static analyzer bot. Regression from r148558.Anna Zaks2012-01-211-1/+1
| | | | | | When we build a single source file, we call clang directly (not though scan-build). git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148612 91177308-0d34-0410-b5e6-96231b3b80d8
* Delayed template instantiation of late-parsed attributes.DeLesley Hutchins2012-01-201-1/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148595 91177308-0d34-0410-b5e6-96231b3b80d8
* Instantiate dependent attributes when instantiating templates.DeLesley Hutchins2012-01-203-3/+162
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148592 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Tweak the buildbot script to include the experimental taint ↵Anna Zaks2012-01-201-2/+2
| | | | | | checker and correct the checker enabling setting. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148558 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove unreachable code in Clang. (replace with llvm_unreachable where ↵David Blaikie2012-01-171-11/+1
| | | | | | appropriate or when GCC requires it) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148292 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove unnecessary default cases in switches over enums.David Blaikie2012-01-171-3/+0
| | | | | | This allows -Wswitch-enum to find switches that need updating when these enums are modified. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148281 91177308-0d34-0410-b5e6-96231b3b80d8
* CodeInit was replaced by StringInit.Jakob Stoklund Olesen2012-01-131-3/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@148095 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Testing infrastructure: Flush output after every printAnna Zaks2012-01-101-1/+10
| | | | | | statement. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147862 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove unused include of VectorExtras.h.Benjamin Kramer2012-01-071-1/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147737 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Correct the error message in the testing infrastructure.Anna Zaks2012-01-041-2/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@147568 91177308-0d34-0410-b5e6-96231b3b80d8
* Relax type checking for a few Neon intrinsics. <rdar://problem/10538555>Bob Wilson2011-12-201-0/+11
| | | | | | | | | | | | Not long ago, I tightened up the type checking for pointer arguments of Neon intrinsics to match the specifications provided by ARM. One consequence was that it became impossible to access the unaligned versions of a few Neon load/store operations. Since there are just a few of these intrinsics where it makes a difference, I think it's better to relax the type checking than to either introduce new non-standard unaligned intrinsics or to disallow intrinsics for the unaligned operations. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146963 91177308-0d34-0410-b5e6-96231b3b80d8
* Unweaken vtables as per ↵David Blaikie2011-12-201-1/+1
| | | | | | http://llvm.org/docs/CodingStandards.html#ll_virtual_anch git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@146959 91177308-0d34-0410-b5e6-96231b3b80d8
* Add support for pretty-printing attributes, from Richard Membarth!Douglas Gregor2011-11-191-0/+67
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145002 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix Neon builtin pointer argument checking for "sret" builtins.Bob Wilson2011-11-161-6/+24
| | | | | | | | | | | The code for checking Neon builtin pointer argument types was assuming that there would only be one pointer argument. But, for vld2-4 builtins, the first argument is a special sret pointer where the result will be stored. So, instead of scanning all the arguments to find a pointer, have TableGen figure out the index of the pointer argument that needs checking. That's better than scanning all the arguments regardless. <rdar://problem/10448804> git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144834 91177308-0d34-0410-b5e6-96231b3b80d8
* Validate DiagGroup names in TableGen, they're used as command line arguments ↵Benjamin Kramer2011-11-151-0/+4
| | | | | | so we don't want shell meta chars in there. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144645 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Testing: test with all the non-experimental checker packages.Anna Zaks2011-11-081-2/+6
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144142 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Testing: support for regenerate reference outputAnna Zaks2011-11-081-12/+15
| | | | | | | Change the flow of the SATestAdd so that it could be used for regenerating the reference output without exiting with an error. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144141 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Testing: Display the number of reported differences in the main log.Anna Zaks2011-11-082-13/+16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144113 91177308-0d34-0410-b5e6-96231b3b80d8
* Check pointer types for arguments of Neon load/store macros. rdar://9958031Bob Wilson2011-11-081-10/+18
| | | | | | | | | | | The Neon load/store intrinsics need to be implemented as macros to avoid hiding alignment attributes on the pointer arguments, and the macros can only evaluate those pointer arguments once (in case they have side effects), so it has been hard to get the right type checking for those pointers. I tried various alternatives in the arm_neon.h header, but it's much more straightforward to just check directly in Sema. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144075 91177308-0d34-0410-b5e6-96231b3b80d8
* Clean up type flags for overloaded Neon builtins. No functional change.Bob Wilson2011-11-082-13/+43
| | | | | | | | | This patch just adds a simple NeonTypeFlags class to replace the various hardcoded constants that had been used until now. Unfortunately I couldn't figure out a good way to avoid duplicating that class between clang and TableGen, but since it's small and rarely changes, that's not so bad. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144054 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Testing infrastructure: flush the output between projects.Anna Zaks2011-11-081-0/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@144051 91177308-0d34-0410-b5e6-96231b3b80d8
* Use StringRef's case transformation methods.Benjamin Kramer2011-11-061-2/+1
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143889 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Relax the cmp criteria for analyzer reports.Anna Zaks2011-11-051-1/+1
| | | | | | Until we find out a way to easily find out what changed by looking at the logs. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143789 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Add support for testing with individual preprocessed files.Anna Zaks2011-11-052-34/+133
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143786 91177308-0d34-0410-b5e6-96231b3b80d8
* [analyzer] Tweak the test scriptAnna Zaks2011-11-021-9/+13
| | | | | | | | Rename the pre_run_static_analyzer script into cleanup_run_static_analyzer and use it to clean up after the reference build - which is done as part of adding a new project to the system. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143568 91177308-0d34-0410-b5e6-96231b3b80d8
* Update the CMake build for clang-tblgen to reflect that it directlyChandler Carruth2011-11-021-0/+1
| | | | | | | depends on the Support library rather than relying on TableGen's transitive dependency. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143532 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove the Alpha backend.Dan Gohman2011-10-273-6/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@143165 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove the Blackfin backend.Dan Gohman2011-10-253-6/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142881 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove the SystemZ backend.Dan Gohman2011-10-243-6/+0
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@142879 91177308-0d34-0410-b5e6-96231b3b80d8