Nadav Rotem
f036ca466e
CostModel: add another known vector trunc optimization.
...
llvm-svn: 167488
2012-11-06 21:17:17 +00:00
Eli Friedman
1e83d6f612
Fix a silly mistake in r167437.
...
llvm-svn: 167487
2012-11-06 21:10:22 +00:00
Howard Hinnant
cd47cbc7a4
Provide a way to disable use of extern templates in libc++. This is intended for the clients of libc++, not the libc++ build. The dylib should always contain the extern templates. To disable the client needs to put -D'_LIBCPP_EXTERN_TEMPLATE(...)=' on the command line.
...
llvm-svn: 167486
2012-11-06 21:08:48 +00:00
NAKAMURA Takumi
dc4ecaff07
clang/test/Driver/fsanitize.c: Speculative fix to improve test on win32, not to mix emissions into stdout.
...
llvm-svn: 167485
2012-11-06 20:44:29 +00:00
Argyrios Kyrtzidis
073e009ed5
[c-index-test] When building with BUILD_CLANG_ONLY=YES, include c-index-test.
...
It is part of libclang and has other uses besides running the clang tests.
llvm-svn: 167484
2012-11-06 19:54:46 +00:00
Douglas Gregor
162405da9b
Remove C++11-isms I just introduced in r167482
...
llvm-svn: 167483
2012-11-06 19:41:11 +00:00
Douglas Gregor
9194a91dc9
Introduce inferred framework modules into the module map file,
...
allowing a module map to be placed one level above the '.framework'
directories to specify that all .frameworks within that directory can
be inferred as framework modules. One can also specifically exclude
frameworks known not to work.
This makes explicit (and more restricted) behavior modules have had
"forever", where *any* .framework was assumed to be able to be built
as a module. That's not necessarily true, so we white-list directories
(with exclusions) when those directories have been audited.
llvm-svn: 167482
2012-11-06 19:39:40 +00:00
Michael Han
64536a6d25
Teach Clang parser to reject C++11 attributes that appertain to declaration specifiers.
...
We don't support any C++11 attributes that appertain to declaration specifiers so reject
the attributes in parser until we support them; this also conforms to what g++ 4.8 is doing.
llvm-svn: 167481
2012-11-06 19:34:54 +00:00
Nadav Rotem
0914f0b262
Cost Model: add tables for some avx type-conversion hacks.
...
llvm-svn: 167480
2012-11-06 19:33:53 +00:00
Richard Smith
d902b34e66
Updates to user's manual and release notes for -fsanitize= options.
...
llvm-svn: 167479
2012-11-06 19:23:14 +00:00
Argyrios Kyrtzidis
d3a20f5974
[c-index-test] When building with BUILD_CLANG_ONLY=YES, include c-index-test.
...
It is part of libclang and has other uses besides running the clang tests.
llvm-svn: 167478
2012-11-06 19:14:25 +00:00
Andrew Kaylor
49517a494b
Fix build error from previous commit.
...
llvm-svn: 167477
2012-11-06 19:06:46 +00:00
Manman Ren
77b0238596
Cleanup: 80-column violation
...
llvm-svn: 167476
2012-11-06 19:05:29 +00:00
Andrew Kaylor
d8ffd9c7e7
Add interface for object-based JIT events.
...
This patch adds the interface to expose events from MCJIT when an object is emitted or freed and implements the MCJIT functionality to send those events. The IntelJITEventListener implementation is left empty for now. It will be fleshed out in a future patch.
llvm-svn: 167475
2012-11-06 18:51:59 +00:00
Greg Clayton
9f078b773d
Added unnamed bitfields to our bitfield test.
...
llvm-svn: 167473
2012-11-06 18:22:59 +00:00
Chad Rosier
2fa5fb5ab8
Use the -fsanitize=thread flag to unbreak buildbot.
...
llvm-svn: 167472
2012-11-06 18:16:37 +00:00
Greg Clayton
6421cccff8
Make sure to check the module is valid after trying to find a shared module.
...
llvm-svn: 167471
2012-11-06 17:50:15 +00:00
Manuel Klimek
e6de22d3dc
Add unit tests for source locations of AST nodes.
...
Patch by Philip Craig.
llvm-svn: 167470
2012-11-06 17:31:40 +00:00
Fariborz Jahanian
aa4a242f53
Modern objective-C translator: Start adding line info to the
...
translated source where it is needed. wip.
llvm-svn: 167469
2012-11-06 17:30:23 +00:00
Daniel Dunbar
65706d85b6
Basic: Windows doesn't define S_IFIFO.
...
llvm-svn: 167468
2012-11-06 17:08:24 +00:00
Daniel Dunbar
e2d25c2731
MemoryBuffer: Windows doesn't define S_IFIFO.
...
llvm-svn: 167467
2012-11-06 17:08:09 +00:00
Dmitry Vyukov
da78be74f3
tsan: slightly relax requirements for lazy shadow memory (can overlap and may not be properly aligned)
...
it's problematic on windows where allocation granularity is much larger than page size
llvm-svn: 167466
2012-11-06 16:48:46 +00:00
Alexey Samsonov
33bfe09c34
Use -fsanitize= flag in docs for ASan/TSan
...
llvm-svn: 167465
2012-11-06 16:19:11 +00:00
Dmitry Vyukov
c015712992
tsan: lazily allocate shadow for Go
...
llvm-svn: 167464
2012-11-06 16:00:16 +00:00
Dmitry Vyukov
e86c632015
tsan: fix debug output
...
llvm-svn: 167463
2012-11-06 15:54:34 +00:00
Dmitry Vyukov
a0be3e2c68
tsan: better diagnostics for failed mmap()
...
llvm-svn: 167462
2012-11-06 15:39:16 +00:00
Alexey Samsonov
627b10f712
Follow-up for r167411 to un-break ASan on Mac. Move SanitizerArgs to a header file and use it on Darwin toolchain.
...
llvm-svn: 167460
2012-11-06 15:09:03 +00:00
Alexey Samsonov
bdb2594cb3
docs: use code font for console commands in phabricator manual
...
llvm-svn: 167459
2012-11-06 15:04:37 +00:00
Dmitry Vyukov
95b9a362ff
tsan: fix compiler warning
...
llvm-svn: 167458
2012-11-06 14:05:20 +00:00
Dmitry Vyukov
e4c2fd4c2f
tsan: windows platform support
...
llvm-svn: 167457
2012-11-06 13:35:02 +00:00
Dmitry Vyukov
7234a5b54d
tsan: update script to support windows
...
llvm-svn: 167456
2012-11-06 13:32:53 +00:00
Dmitry Vyukov
5f93416c94
tsan: add shadow mapping for windows
...
llvm-svn: 167455
2012-11-06 13:26:57 +00:00
Dmitry Vyukov
ee563c10c6
tsan: add missing function for windows
...
llvm-svn: 167454
2012-11-06 13:25:05 +00:00
Dmitry Vyukov
1d4120b210
tsan: fix constant types
...
llvm-svn: 167453
2012-11-06 13:21:06 +00:00
Dmitry Vyukov
0ff6d2dd6c
tsan: windows: less includes, better diagnostics for failed VirtualAlloc(), implement sched_yield()
...
llvm-svn: 167452
2012-11-06 13:19:59 +00:00
Dmitry Vyukov
ba827dfdae
tsan: don't release disabled clocks
...
llvm-svn: 167451
2012-11-06 13:16:25 +00:00
Dmitry Vyukov
2817639411
tsan: define missing compier macros for windows
...
llvm-svn: 167450
2012-11-06 12:54:16 +00:00
Dmitry Vyukov
e9bafdf5b8
tsan: fix non-msvc windows build
...
llvm-svn: 167449
2012-11-06 12:50:13 +00:00
Dmitry Vyukov
04dd4b7349
tasn: improve sanitizer_internal_defs.h
...
The file uses namespaces and extern "LANG", so it's kinda senseless to use #ifdef __cplusplus
llvm-svn: 167448
2012-11-06 12:49:22 +00:00
Dmitry Vyukov
e6b5a696e3
tsan: fix windows build
...
__declspec is not _WIN32, it's _MSC_VER
llvm-svn: 167447
2012-11-06 12:47:42 +00:00
Dmitry Vyukov
1ec08f3627
tsan: fix Go build
...
llvm-svn: 167446
2012-11-06 12:46:26 +00:00
Michael Liao
ec47090b1e
Remove tailing whitespaces
...
llvm-svn: 167445
2012-11-06 08:06:35 +00:00
Andrew Trick
e96390ea96
misched: TargetSchedule interface for machine resources.
...
Expose the processor resources defined by the machine model to the
scheduler and other clients through the TargetSchedule interface.
Normalize each resource count with respect to other kinds of
resources. This allows scheduling heuristics to balance resources
against other kinds of resources and latency.
llvm-svn: 167444
2012-11-06 07:10:38 +00:00
Andrew Trick
4d1fa712ac
misched: Rename RemainingCount to avoid confusion with remaining resources.
...
llvm-svn: 167443
2012-11-06 07:10:34 +00:00
Ted Kremenek
ccf3b4299d
Remove completely irrelevant code from USR generation.
...
Thanks to Richard Smith for pointing this out. This code stopped
serving its purpose during r103212 in a refactoring. My initial
fix was to add back the logic to abort the USR generation for
InternalLinkage, but enough tests broke suspiciously that I fear
that USR generation for cursors with InternalLinkage is now expected
by some clients (where it wasn't the case when the refactoring
took place). I don't own this code anymore and have not looked
at it for some time, but clearly this code is dead and can be removed
pending further review on the proper logic here.
llvm-svn: 167442
2012-11-06 06:36:45 +00:00
Nico Weber
00420eddc3
Delete an outdated comment.
...
llvm-svn: 167441
2012-11-06 05:20:23 +00:00
Manman Ren
8cd99817f9
ARM byval: when type alignment is bigger than ABI alignment, instead of
...
disabling byval, we set realign to true.
It will perform an aligned alloca, and call memcpy to copy the byval
argument to the local variable.
Change the size threshold back to 64 bytes.
rdar://12596507
llvm-svn: 167440
2012-11-06 04:58:01 +00:00
Anna Zaks
2ed5125502
[analyzer] Add symbol escapes logic to the SimpleStreamChecker.
...
llvm-svn: 167439
2012-11-06 04:20:57 +00:00
Anna Zaks
49bb65024c
[analyzer] Remove isWithinInlined. It's been replaced with inTopFrame().
...
Thanks Jordan.
llvm-svn: 167438
2012-11-06 04:20:54 +00:00
Eli Friedman
70459fc5b6
Propagate CharUnits through CGObjCMac.cpp.
...
llvm-svn: 167437
2012-11-06 03:41:04 +00:00