Alexey Samsonov
5a26e1fbf2
[Sanitizer] Add new header - sanitizer_platform_interceptors.h, which should define whether or not given function should be intercepted on a given platform.
...
llvm-svn: 170115
2012-12-13 08:50:16 +00:00
Alexey Samsonov
447e2f2f19
[ASan] one more macro for 'read' interception
...
llvm-svn: 170114
2012-12-13 08:36:13 +00:00
Dmitry Vyukov
3e7ede230f
tsan: support MapThreadTrace() on all platforms
...
llvm-svn: 170113
2012-12-13 08:14:02 +00:00
Alexey Samsonov
65c14f5314
[ASan] more macro for conditional interception of pread functions
...
llvm-svn: 170112
2012-12-13 08:10:23 +00:00
Kostya Serebryany
ad81738822
[asan] add asan/lit_tests/overflow-in-qsort.cc (not fully working yet)
...
llvm-svn: 170111
2012-12-13 08:05:03 +00:00
Richard Smith
bb741f4552
Point a hyperlink back to where it was before it got reStructured.
...
llvm-svn: 170110
2012-12-13 07:29:23 +00:00
Richard Smith
177f80376d
ubsan unit tests for -fsanitize=bool and -fsanitize=enum.
...
llvm-svn: 170109
2012-12-13 07:12:20 +00:00
Richard Smith
1629da95fe
ubsan: Add -fsanitize=bool and -fsanitize=enum, which check for loads of
...
bit-patterns which are not valid values for enumerated or boolean types.
These checks are the ubsan analogue of !range metadata.
llvm-svn: 170108
2012-12-13 07:11:50 +00:00
Richard Smith
32952215b6
ubsan: Add -fsanitize=bool and -fsanitize=enum, which check for loads of
...
bit-patterns which are not valid values for enumerated or boolean types.
These checks are the ubsan analogue of !range metadata.
llvm-svn: 170107
2012-12-13 07:00:14 +00:00
Eric Christopher
a1bbeeca72
Revert "Restore the PHI optimization I accidently removed" temporarily since
...
it seems to be breaking self-host for a few people and is PR14592.
This reverts commit r170024.
llvm-svn: 170106
2012-12-13 06:48:05 +00:00
Eric Christopher
c859c2912f
Revert "Add a funciton to get the segment name of a section."
...
This reverts commit r170095 since it appears to be breaking the bots.
llvm-svn: 170105
2012-12-13 06:36:18 +00:00
Patrik Hagglund
5e6c361bc0
Change TargetLowering::getRegClassFor to take an MVT, instead of EVT.
...
Accordingly, add helper funtions getSimpleValueType (in parallel to
getValueType) in SDValue, SDNode, and TargetLowering.
This is the first, in a series of patches.
This is the second attempt. In the first attempt (r169837), a few
getSimpleVT() were hoisted too far, detected by bootstrap failures.
llvm-svn: 170104
2012-12-13 06:34:11 +00:00
Kostya Serebryany
07bb3925b0
[sanitizer] replace size_t with SIZE_T in interceptors (same for ssize_t, off_t and off64_t). This is done to avoid confusion and to make the code work with compilers that define size_t w/o any includes (MSVC)
...
llvm-svn: 170103
2012-12-13 06:31:40 +00:00
Tobias Grosser
e36abf6d5d
isl: Detect openmp parallelism
...
Based on code written by Riyadh Baghdadi.
llvm-svn: 170102
2012-12-13 06:24:06 +00:00
Kostya Serebryany
a167087571
[asan] fix windows build
...
llvm-svn: 170101
2012-12-13 05:51:02 +00:00
Richard Smith
f0480fc988
Simplify. No functionality change.
...
llvm-svn: 170100
2012-12-13 05:41:48 +00:00
Kostya Serebryany
9806628792
[sanitizer] introduce MmapFixedOrDie and use it in SizeClassAllocator64
...
llvm-svn: 170099
2012-12-13 05:36:00 +00:00
Kostya Serebryany
eec22a628b
[asan] fix the Android build (pread64 interceptor again)
...
llvm-svn: 170098
2012-12-13 05:27:08 +00:00
Kostya Serebryany
2ce42e0aef
[sanitizer] change the way SizeClassAllocator64 allocated memory from the system: instead of one huge mmap(NORESERVE) it does one huge mprotect and then does small on-demand mmaps. This allows us to call OnMap callbacks which are required to poison newly allocated memory in asan
...
llvm-svn: 170097
2012-12-13 05:05:11 +00:00
Rafael Espindola
0f207edaa5
Initial support for FreeBSD on ARM.
...
Patch by Andrew Turner.
llvm-svn: 170096
2012-12-13 04:17:14 +00:00
Rafael Espindola
bc8016d062
Add a funciton to get the segment name of a section.
...
On MachO, sections also have segment names. When a tool looking at a .o file
prints a segment name, this is what they mean. In reality, a .o has only one,
anonymous, segment.
This patch adds a MachO only function to fetch that segment name. I named it
getSectionFinalSegmentName since the main use for the name seems to be informing
the linker with segment this section should go to.
The patch also changes MachOObjectFile::getSectionName to return just the
section name instead of computing SegmentName,SectionName.
llvm-svn: 170095
2012-12-13 04:07:18 +00:00
Rafael Espindola
a2c107e661
Missed these calls from the previous rename somehow.
...
llvm-svn: 170094
2012-12-13 03:42:31 +00:00
Rafael Espindola
319f74cd11
Rename isPowerOfTwo to isKnownToBeAPowerOfTwo.
...
In a previous thread it was pointed out that isPowerOfTwo is not a very precise
name since it can return false for powers of two if it is unable to show that
they are powers of two.
llvm-svn: 170093
2012-12-13 03:37:24 +00:00
Akira Hatanaka
cf9a61b6ee
[mips] Do not copy GOT address to register $gp if the function being called has
...
internal linkage.
llvm-svn: 170092
2012-12-13 03:17:29 +00:00
Michael Ilseman
536cc32ba0
Pattern matching code for intrinsics.
...
Provides m_Argument that allows matching against a CallSite's specified argument. Provides m_Intrinsic pattern that can be templatized over the intrinsic id and bind/match arguments similarly to other pattern matchers. Implementations provided for 0 to 4 arguments, though it's very simple to extend for more. Also provides example template specialization for bswap (m_BSwap) and example of code cleanup for its use.
llvm-svn: 170091
2012-12-13 03:13:36 +00:00
Eric Christopher
cf6d6317cc
Remove extraneous debugging code.
...
llvm-svn: 170090
2012-12-13 03:07:28 +00:00
Jordan Rose
b0fe7fdb57
[analyzer] Generalize ObjCMissingSuperCallChecker.
...
We now check a few methods for UIResponder, NSResponder, and NSDocument.
Patch by Julian Mayer!
llvm-svn: 170089
2012-12-13 03:06:45 +00:00
Eric Christopher
996b2b7ae6
Use default label name for a section in emitting abbreviation
...
section to help prep some code to be split about.
llvm-svn: 170088
2012-12-13 03:00:38 +00:00
Eric Christopher
80882db88f
Add a way of printing out an arbitrary label name for a section
...
given the section.
llvm-svn: 170087
2012-12-13 03:00:35 +00:00
Michael Ilseman
eae9752381
m_CombineOr and m_CombineAnd pattern combinators
...
llvm-svn: 170086
2012-12-13 02:55:53 +00:00
Hao Liu
10be3b20f1
Define getHostCPUFeatures for ARM Linux platform
...
llvm-svn: 170085
2012-12-13 02:40:20 +00:00
Akira Hatanaka
b2cc8a756f
[mips] Delete all floating point instruction classes that are no longer used.
...
No functionality change.
llvm-svn: 170084
2012-12-13 02:05:02 +00:00
Eli Bendersky
f9be4c8b47
Make this Lit config file a bit slimmer
...
llvm-svn: 170083
2012-12-13 02:03:46 +00:00
Jason Molenda
0f47b2a631
<rdar://problem/12831670>
...
For iOS native lldb, don't initialize the ModuleList notifier
callback. See the added comment for details on how this is a problem
in that environment. We'll need to restructure how the ModuleDidLoad
notification is called vrs. when the DynamicLoader pluging has had
a chance to set the Sectino load addresses.
llvm-svn: 170082
2012-12-13 01:54:18 +00:00
Eli Friedman
07bab73c7f
Using CanQualType::getAs<ArrayType> is unsafe; fix the code currently using it,
...
and make sure additional uses don't get introduced. <rdar://problem/12858424>.
llvm-svn: 170081
2012-12-13 01:43:21 +00:00
Akira Hatanaka
6262bbf819
[mips] Modify definitions of floating point conditional move instructions.
...
No functionality change.
llvm-svn: 170080
2012-12-13 01:41:15 +00:00
Sean Callanan
b36c6c0955
Made "target modules add" flush the process to
...
reset stack frames etc.
<rdar://problem/12842024>
llvm-svn: 170079
2012-12-13 01:39:39 +00:00
Evan Cheng
bf0baa9de7
Fix a bug in DAGCombiner::MatchBSwapHWord. Make sure the node has operands before referencing them. rdar://12868039
...
llvm-svn: 170078
2012-12-13 01:34:32 +00:00
Akira Hatanaka
79e1cdb00b
[mips] Modify definitions of floating point comparison instructions.
...
No functionality change.
llvm-svn: 170077
2012-12-13 01:34:09 +00:00
Akira Hatanaka
fd9163b74c
[mips] Modify definitions of floating point branch instructions.
...
No functionality change.
llvm-svn: 170076
2012-12-13 01:32:36 +00:00
Akira Hatanaka
cd3dfd238e
[mips] Modify definitions of floating point indexed load and store instructions.
...
No functionality change.
llvm-svn: 170075
2012-12-13 01:30:49 +00:00
Andrew Kaylor
2529ae3962
Marking test_lldb_iter_frame in TestLLDBIterator.py as expectedFailureLinux (due to lack of multi-threaded debugging support).
...
llvm-svn: 170074
2012-12-13 01:28:44 +00:00
Akira Hatanaka
b0d4acbc65
[mips] Modify definitions of floating point multiply-add/sub instructions.
...
No functionality change.
llvm-svn: 170073
2012-12-13 01:27:48 +00:00
Akira Hatanaka
92994f4846
[mips] Modify definitions of floating point load and store instructions.
...
No functionality change.
llvm-svn: 170072
2012-12-13 01:24:00 +00:00
Akira Hatanaka
2b75dde5fa
[mips] Modify definitions of move from/to coprocessor instructions.
...
No functionality change.
llvm-svn: 170071
2012-12-13 01:16:49 +00:00
Akira Hatanaka
dea8f61ae0
[mips] Modify definitions of two register operand floating point instructions.
...
No functionality change.
llvm-svn: 170069
2012-12-13 01:14:07 +00:00
Jason Molenda
4fa896da11
Remove insufficient linkedit address check; the problem
...
is deeper than that and avoiding the crash in this
one part of code won't solve anything. I know where
the real problem is now.
llvm-svn: 170068
2012-12-13 01:13:00 +00:00
Sean Silva
bf9b4cd596
docs: More reST conversion.
...
Sorry for the large commit, but it is much faster to convert in batches.
llvm-svn: 170067
2012-12-13 01:10:46 +00:00
Akira Hatanaka
29b513871a
[mips] Modify definitions of three register operand floating point instructions
...
and separate encoding information from the rest.
llvm-svn: 170066
2012-12-13 01:07:37 +00:00
Quentin Colombet
c0dba2035a
Take into account minimize size attribute in the inliner.
...
Better controls the inlining of functions when the caller function has MinSize attribute.
Basically, when the caller function has this attribute, we do not "force" the inlining
of callee functions carrying the InlineHint attribute (i.e., functions defined with
inline keyword)
llvm-svn: 170065
2012-12-13 01:05:25 +00:00