Pete Cooper
f4d5a7908d
Improve DenseMap checks for power of 2 growth. Thanks for the tip Jakob
...
llvm-svn: 166609
2012-10-24 18:50:44 +00:00
Greg Clayton
1c22be6999
Added process and thread logging the python OperatingSystem plug-in.
...
llvm-svn: 166608
2012-10-24 18:39:14 +00:00
Micah Villmow
bf3eeb2dfc
Add some cleanup to the DataLayout changes requested by Chandler.
...
llvm-svn: 166607
2012-10-24 18:36:13 +00:00
Rafael Espindola
c9d17591d9
Add a test showing that nodebug is accepted in methods too. Patch by
...
Paul Robinson.
llvm-svn: 166606
2012-10-24 18:34:26 +00:00
Argyrios Kyrtzidis
e26c5571b2
[libclang] Add "-index-file-full" option that recursively indexes any imported
...
modules/PCH files.
llvm-svn: 166605
2012-10-24 18:29:15 +00:00
Greg Clayton
5db6b79955
Patch from Ashok Thirumurthi that enabled FPU registers for POSIX x86_64.
...
llvm-svn: 166604
2012-10-24 18:24:14 +00:00
Enrico Granata
7e137e3d8f
<rdar://problem/12481949> Fixing SBValue.GetValueAsSigned() to do the right thing when dealing with a 32-bit negative value
...
llvm-svn: 166603
2012-10-24 18:14:21 +00:00
Nadav Rotem
18d0635339
Opt does not need to initialize the Asm printer/parser
...
llvm-svn: 166602
2012-10-24 17:55:53 +00:00
Douglas Gregor
360d3a5b06
Explicitly specify C++98 when building the C++ precompiled header for this test, so that the test will work on Windows.
...
llvm-svn: 166601
2012-10-24 17:49:01 +00:00
Chad Rosier
340c1ca0f3
[ms-inline asm] Add test cases for r166451.
...
llvm-svn: 166600
2012-10-24 17:48:01 +00:00
Douglas Gregor
1452ff155b
Teach the preprocessor to hold onto the preprocessor options.
...
llvm-svn: 166599
2012-10-24 17:46:57 +00:00
Greg Clayton
fb9c6b760b
Cleanup some variable names to indicate auto pointers and also manager the llvm::Module memory more correctly.
...
llvm-svn: 166598
2012-10-24 17:37:53 +00:00
Micah Villmow
2db599e348
Delete the empty directory that was accidently added in 166578.
...
llvm-svn: 166597
2012-10-24 17:27:47 +00:00
Micah Villmow
51e7246cb4
Back out r166591, not sure why this made it through since I cancelled the command. Bleh, sorry about this!
...
llvm-svn: 166596
2012-10-24 17:25:11 +00:00
Nadav Rotem
ac9a344915
Opt needs to initialize the different targets.
...
llvm-svn: 166595
2012-10-24 17:23:50 +00:00
Chad Rosier
42146d9a06
[ms-inline asm] Add test cases for r166592. The test cases only works if the
...
source operand is a register.
llvm-svn: 166594
2012-10-24 17:23:06 +00:00
Nadav Rotem
2289f2c932
Implement a basic VectorTargetTransformInfo interface to be used by the loop and bb vectorizers for modeling the cost of instructions.
...
llvm-svn: 166593
2012-10-24 17:22:41 +00:00
Chad Rosier
91c8266200
[ms-inline asm] Create a register operand, rather than a memory operand when we
...
see the offsetof operator. Previously, we were matching something like MOVrm
in the front-end and later matching MOVrr in the back-end. This change makes
things more consistent. It also fixes cases where we can't match against a
memory operand as the source (test cases coming).
Part of rdar://12470317
llvm-svn: 166592
2012-10-24 17:22:29 +00:00
Micah Villmow
6a8f3f9e20
Delete a directory that wasn't supposed to be checked in yet.
...
llvm-svn: 166591
2012-10-24 17:20:04 +00:00
Douglas Gregor
e81699d938
Move PreprocessorOptions into the Lex library, and make it intrusively
...
reference-counted.
llvm-svn: 166587
2012-10-24 17:01:35 +00:00
Douglas Gregor
2d30236d16
(De-)serialize header search options.
...
llvm-svn: 166586
2012-10-24 16:50:34 +00:00
Douglas Gregor
40ba1a0191
Update unit tests for HeaderSearch change
...
llvm-svn: 166584
2012-10-24 16:24:38 +00:00
Douglas Gregor
b85b9ccb76
Move HeaderSearchOptions into the Lex library, make it intrusively
...
reference-counted, and hold a reference to it in HeaderSearch.
llvm-svn: 166583
2012-10-24 16:19:39 +00:00
Douglas Gregor
5a2783d522
Undef SEMANTIC_VALUE_DIAGOPT appropriately
...
llvm-svn: 166579
2012-10-24 15:53:39 +00:00
Micah Villmow
12d9127833
Add in support for getIntPtrType to get the pointer type based on the address space.
...
This checkin also adds in some tests that utilize these paths and updates some of the
clients.
llvm-svn: 166578
2012-10-24 15:52:52 +00:00
Douglas Gregor
c6317dbf5e
(De-)serialize the file system options.
...
llvm-svn: 166577
2012-10-24 15:49:58 +00:00
Douglas Gregor
8263ffb268
Serialize DiagnosticOptions to the AST file.
...
llvm-svn: 166572
2012-10-24 15:17:15 +00:00
Mahesha S
3009374fa4
Removed an extra blank line.
...
llvm-svn: 166571
2012-10-24 15:12:40 +00:00
Manuel Klimek
c268745011
Adds the possibility to run ASTMatchFinder over arbitrary AST nodes.
...
llvm-svn: 166567
2012-10-24 14:47:44 +00:00
Elena Demikhovsky
d6afb03bc9
Special calling conventions for Intel OpenCL built-in library.
...
llvm-svn: 166566
2012-10-24 14:46:16 +00:00
Douglas Gregor
2b0a568cdc
Add a simple test involving decltype on Objective-C properties and ivars
...
llvm-svn: 166562
2012-10-24 14:13:21 +00:00
Douglas Gregor
47c089624f
Remove the HiddenWeakTemplateVTables CodeGen option. It's currently unused.
...
llvm-svn: 166561
2012-10-24 14:11:55 +00:00
Evgeniy Stepanov
04dbc2d022
Pass LLVM_ANDROID_TOOLCHAIN_DIR if set.
...
This lets one build ASan runtime for ARM/Android by running
make -C tools/clang/runtime/ \
LLVM_ANDROID_TOOLCHAIN_DIR=/path/to/ndk/toolchain
in an existing build tree.
llvm-svn: 166560
2012-10-24 14:05:29 +00:00
Evgeniy Stepanov
64579da1a7
Build ASan runtime for ARM/Android.
...
llvm-svn: 166559
2012-10-24 14:03:41 +00:00
Alexey Samsonov
78d1210f38
Update docs about TSan availability in CMake build
...
llvm-svn: 166558
2012-10-24 13:34:53 +00:00
Alexey Samsonov
2e3c6e2e40
Fix some wordings in AddressSanitizer docs.
...
llvm-svn: 166557
2012-10-24 13:21:51 +00:00
NAKAMURA Takumi
701ddbcdeb
[CMake] Introduce LLVM_EXTERNAL_COMPILER_RT_SOURCE_DIR.
...
llvm-svn: 166552
2012-10-24 12:26:08 +00:00
Ulrich Weigand
35668cc401
A number of test cases assume that an "int" parameter or return value
...
will be represented in the IR as a plain "i32" type. This causes the
tests to spuriously fail on platforms where int is not a 32-bit type,
or where the ABI requires attributes like "signext" or "zeroext" to
be used.
This patch adds -triple or -target parameters to force those tests
to use the i386-unknown-unknown target.
llvm-svn: 166551
2012-10-24 12:22:56 +00:00
Alexander Potapenko
1eef2b813c
[ASan] Rename ReplaceCFAllocator to MaybeReplaceCFAllocator.
...
Replace the allocator only if the replace_cfallocator flag is set (in some cases it wasn't checked)
llvm-svn: 166550
2012-10-24 09:35:23 +00:00
Alexander Potapenko
faa9c86fd0
[ASan] Use internal_memmove() in both static and dynamic runtime libraries if asan_inited != 0.
...
llvm-svn: 166549
2012-10-24 09:19:16 +00:00
Alexey Samsonov
cea6239219
[ASan] Due to data races, ASan malloc stats are inaccurate, which may cause certain ASan interface functions returning negative values (casted to unsigned). Return a reasonable value if such a case is detected.
...
llvm-svn: 166548
2012-10-24 09:19:11 +00:00
Duncan Sands
72c19ed386
Add a testcase that would have noticed the typo fixed in commit 166475.
...
llvm-svn: 166547
2012-10-24 07:17:20 +00:00
Michael Liao
5922979e49
Teach DAG combine to fold (buildvec (Xint2fp x)) to (Xint2fp (buildvec x))
...
- If more than 1 elemennts are defined and target supports the vectorized
conversion, use the vectorized one instead to reduce the strength on
conversion operation.
llvm-svn: 166546
2012-10-24 04:14:18 +00:00
Michael Liao
c5af149e70
Add custom conversion from v2u32 to v2f32 in 32-bit mode
...
- As there's no 64-bit GPRs in 32-bit mode, a custom conversion from v2u32 to
v2f32 is added to improve the efficiency of the code generated.
llvm-svn: 166545
2012-10-24 04:09:32 +00:00
NAKAMURA Takumi
f1f6e99c53
Revert r166541, "clang/test: Add appropriate requirements as REQUIRES, corresponding to r166532."
...
According to r166543, it is not needed for now.
llvm-svn: 166544
2012-10-24 03:59:09 +00:00
Nadav Rotem
dc06b2d39d
Clang now attempts to create a TargetMachine whenever a triple is given.
...
Many of our tests specify triples that are not built into clang.
In this commit we allow clang to fail loading the triple if we are only
using clang to emit llvm ir.
llvm-svn: 166543
2012-10-24 03:52:31 +00:00
Jason Molenda
67c3cf5357
eArgTypePath was removed in r166533; change -c to
...
expect eArgTypeFilename.
llvm-svn: 166542
2012-10-24 03:29:40 +00:00
NAKAMURA Takumi
a22fe582d2
clang/test: Add appropriate requirements as REQUIRES, corresponding to r166532.
...
llvm-svn: 166541
2012-10-24 02:57:57 +00:00
Nico Weber
2643452746
Add a test for -Warc-abi as requested by Fariborz.
...
llvm-svn: 166540
2012-10-24 02:37:03 +00:00
Akira Hatanaka
868b3a333b
[mips] Make sure sret argument is returned in register V0.
...
llvm-svn: 166539
2012-10-24 02:10:54 +00:00