summaryrefslogtreecommitdiff
path: root/lib/Analysis/ThreadSafetyCommon.cpp
Commit message (Collapse)AuthorAge
* Thread Safety Analysis: implement review suggestions from Aaron Ballman.DeLesley Hutchins2014-05-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209847 91177308-0d34-0410-b5e6-96231b3b80d8
* Thread Safety Analysis: update TIL traversal mechanism to allow arbitraryDeLesley Hutchins2014-05-28
| | | | | | local contexts. Also includes some minor refactoring. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@209774 91177308-0d34-0410-b5e6-96231b3b80d8
* Thread Safety Analysis: add new node types to thread safety TIL.DeLesley Hutchins2014-05-15
| | | | | | This fills in a few missing gaps in functionality. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208830 91177308-0d34-0410-b5e6-96231b3b80d8
* ThreadSafetyAnalysis: Don't crash when trying to analyze objc methods.Benjamin Kramer2014-05-09
| | | | | | | | | | | The thread safety analysis isn't very useful in ObjC (you can't annotate ObjC classes or methods) but we can still analyze the actual code and show violations in usage of C/C++ functions. Fixes PR19541, which does not use thread safety attributes but crashes with -Weverything. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208436 91177308-0d34-0410-b5e6-96231b3b80d8
* Replacing a naked pointer with a unique_ptr. No functional changes intended.Aaron Ballman2014-04-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206986 91177308-0d34-0410-b5e6-96231b3b80d8
* Updated to be a bit more const friendly. Also switched the linkage to be ↵Aaron Ballman2014-04-23
| | | | | | static since this function is file-local. No functional changes intended. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206982 91177308-0d34-0410-b5e6-96231b3b80d8
* Thread safety analysis: add array operations to SExpr.DeLesley Hutchins2014-04-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206907 91177308-0d34-0410-b5e6-96231b3b80d8
* Thread safety analysis: fix warning.DeLesley Hutchins2014-04-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206899 91177308-0d34-0410-b5e6-96231b3b80d8
* Thread safety analysis: misc updates to SExpr handling. Fix to minimal SSA,DeLesley Hutchins2014-04-21
| | | | | | function parameters, and compound assignment. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206827 91177308-0d34-0410-b5e6-96231b3b80d8
* Thread Safety Analysis: Convert to minimal SSA.DeLesley Hutchins2014-04-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206681 91177308-0d34-0410-b5e6-96231b3b80d8
* Thread Safety Analysis: Update SSA pass to handle loops.DeLesley Hutchins2014-04-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206676 91177308-0d34-0410-b5e6-96231b3b80d8
* Since the object is new'ed in the enterCFG function, now deleting in the ↵Aaron Ballman2014-04-17
| | | | | | exitCFG function instead of the destructor to ensure proper pairing. This allows reuse of the builder without creating a memory leak. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206471 91177308-0d34-0410-b5e6-96231b3b80d8
* Thread Safety Analysis: rewrite SSA pass to use the new SExpr and CFGDeLesley Hutchins2014-04-15
| | | | | | | traversal system. The new pass is still undergoing testing; no change in functionality. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206338 91177308-0d34-0410-b5e6-96231b3b80d8
* Thread Safety Analysis: reorganized SExpr header files. No change inDeLesley Hutchins2014-04-09
| | | | | | functionality. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205936 91177308-0d34-0410-b5e6-96231b3b80d8
* Thread Safety Analysis: now with less includes. No functional changes.Aaron Ballman2014-04-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205929 91177308-0d34-0410-b5e6-96231b3b80d8
* Thread Safety Analysis: some minor cleanups to the latest thread safety ↵Aaron Ballman2014-04-09
| | | | | | | | | | | | | changes. No functional changes intended. * Adds an iterator_range interface to CallExpr to get the arguments * Modifies SExpr such that it must be allocated in the Arena, and cannot be deleted * Minor const-correctness and nullptr updates * Adds some operator!= implementations to complement operator== * Removes unused functionality git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205915 91177308-0d34-0410-b5e6-96231b3b80d8
* Thread Safety Analysis. Misc fixes to SExpr code, responding to code reviewDeLesley Hutchins2014-04-08
| | | | | | by Aaron Ballman. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205809 91177308-0d34-0410-b5e6-96231b3b80d8
* Thread Safety Analysis: various fixes to new SExpr code.DeLesley Hutchins2014-04-07
| | | | | | Implemented ownership policy, updated to use nullptr, const-cleanup. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205745 91177308-0d34-0410-b5e6-96231b3b80d8
* Thread Safety Analysis: update to internal SExpr handling.DeLesley Hutchins2014-04-07
This patch is the first part of a significant refactoring that seeks to restore sanity to way thread safety analysis deals with capability expressions. The current patch merely provides an outline of the structure of the new system. It's not yet connected to the actual analysis, so there's no change in functionality. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205728 91177308-0d34-0410-b5e6-96231b3b80d8