Ted Kremenek
b9ddbd3daa
scan-build: factor out setting of environment variables.
...
llvm-svn: 161343
2012-08-06 20:19:19 +00:00
Chad Rosier
c6c7133ed6
[ms-inline asm] Pass Tokens to Sema and store them in the AST. No functional
...
change intended. No test case as there's no real way to test at this time.
llvm-svn: 161342
2012-08-06 20:03:45 +00:00
Simon Atanasyan
a1f8c0ab93
Fix MIPS DSP Rev1 intrinsics memory properties.
...
The patch reviewed by Akira Hatanaka.
llvm-svn: 161333
2012-08-06 19:48:16 +00:00
Simon Atanasyan
f679652ef6
Fix MIPS DSP Rev1 intrinsics memory properties.
...
The patch reviewed by Akira Hatanaka.
llvm-svn: 161332
2012-08-06 19:47:47 +00:00
Dmitri Gribenko
a9770ad820
Comment parser and sema: remove useless return values
...
llvm-svn: 161331
2012-08-06 19:03:12 +00:00
Ted Kremenek
0d29bd231b
Pull 'xcodebuild' wrapper logic into a separate function.
...
llvm-svn: 161330
2012-08-06 18:54:19 +00:00
Jakob Stoklund Olesen
8b7cfe33ec
Put up warning signs around MO::getNextOperandForReg().
...
llvm-svn: 161329
2012-08-06 18:48:43 +00:00
Roman Divacky
7d6e08560b
Remove empty overrides of processFunctionBeforeFrameFinalized().
...
llvm-svn: 161328
2012-08-06 18:14:18 +00:00
Dmitri Gribenko
5ec0c7536a
Comment diagnostics: warn on duplicate \brief and \return commands.
...
Doxygen manual claims that multiple \brief or \returns commands will be merged
together, but actual behavior is different (second \brief command becomes a
part of a discussion, second \returns becomes a "Returns: blah" paragraph on
its own). Anyway, it seems to be a bad idea to use multiple \brief or \returns
commands in a single command.
llvm-svn: 161325
2012-08-06 17:08:27 +00:00
Dmitri Gribenko
558babc53b
Comment diagnostics: \return in void function: specialize diagnostic text for
...
ObjC methods.
llvm-svn: 161324
2012-08-06 16:29:26 +00:00
Greg Clayton
e998267282
<rdar://problem/12029894>
...
Use the built in demangler for Apple builds for now which has needed demangling fixes, and make the cxa_demangle.cpp use rtti in the Xcode project settings as it requires it be enabled.
llvm-svn: 161323
2012-08-06 15:55:38 +00:00
Alexey Samsonov
941a6ec9bb
[ASan] fix names of malloc/free replacements on Android
...
llvm-svn: 161322
2012-08-06 15:13:22 +00:00
Alexey Samsonov
0295edbfd5
[ASan] add new ASan option 'strip_path_prefix' to remove useless prefices from filenames in stack traces
...
llvm-svn: 161321
2012-08-06 13:00:21 +00:00
Alexander Potapenko
8f6dd3537c
AllocationSize(ptr) should check that |ptr| actually points to the beginning of the chunk it belongs to.
...
Fixes http://code.google.com/p/address-sanitizer/issues/detail?id=86
llvm-svn: 161320
2012-08-06 12:24:39 +00:00
Craig Topper
ef3f5fe6bd
Re-enable pcmpistri/pcmpestri builtins in clang now that llvm supports them properly.
...
llvm-svn: 161319
2012-08-06 07:07:06 +00:00
Craig Topper
ab47fe4e16
Implement proper handling for pcmpistri/pcmpestri intrinsics. Requires custom handling in DAGISelToDAG due to limitations in TableGen's implicit def handling. Fixes PR11305.
...
llvm-svn: 161318
2012-08-06 06:22:36 +00:00
Richard Smith
403f76ee02
PR13529: Don't crash if the driver sees an unused input file when running as
...
'clang-cpp'.
For now, the test uses "REQUIRES: shell" to determine if the host system
supports "ln -s", which it uses to create a 'clang-cpp' symlink. This is a bit
hacky and should likely be directly supported by lit.cfg.
llvm-svn: 161317
2012-08-06 04:09:06 +00:00
Richard Smith
18f07db183
PR13499: Don't try to check whether 'override' has been validly applied until
...
we know whether the function is virtual. But check it as soon as we do know;
in some cases we don't need to wait for an instantiation.
llvm-svn: 161316
2012-08-06 03:25:17 +00:00
Richard Smith
f716bb859b
PR13527: don't assert if a function is explicitly defaulted when it's already
...
been defined.
llvm-svn: 161315
2012-08-06 02:25:10 +00:00
Peter Collingbourne
3cd1bcb358
Do not use linkonce_odr linkage in .ll files. This prevented them
...
from being linked into the library under lazy linkage.
llvm-svn: 161314
2012-08-05 22:25:48 +00:00
Peter Collingbourne
a385c53413
PTX: move implementations of work-item and synchronisation functions
...
to lib, and add header files in generic. Incorporates a patch by
Tom Stellard!
llvm-svn: 161313
2012-08-05 22:25:37 +00:00
Peter Collingbourne
1e373f07af
Implement sub_sat builtin. Patch by Lei Mou!
...
llvm-svn: 161312
2012-08-05 22:25:12 +00:00
Peter Collingbourne
49b4d8cc65
Fix declarations of __clc_add_sat_*. Patch by Lei Mou!
...
llvm-svn: 161311
2012-08-05 22:24:36 +00:00
Hal Finkel
3fadbb54fd
Add __builtin_readcyclecounter() to produce the @llvm.readcyclecounter() intrinsic.
...
llvm-svn: 161310
2012-08-05 22:03:08 +00:00
Howard Hinnant
1237dccaea
std::equal operating on non-const __bit_iterators was not working. This fixes it.
...
llvm-svn: 161309
2012-08-05 21:43:11 +00:00
Howard Hinnant
73984be057
Andrew Morrow: The current CMake setup for libc++ incorrectly uses the variable
...
LLVM_ENABLE_ASSERTIONS instead of LIBCXX_ENABLE_ASSERTIONS when
figuring out what _DEBUG/NDEBUG defines to set. It also tries to test
the non-existent variable 'uppercase_CMAKE_BUILD_TYPE', which the top
level LLVM CMakeLists.txt sets up, but which the top level libc++
CMakeLists.txt currently does not. Changing the variable name tested
and creating the uppercase release name variable allows libc++ to
honor the LIBCXX_ENABLE_ASSERTIONS option correctly.
llvm-svn: 161308
2012-08-05 17:37:39 +00:00
Craig Topper
812005e562
Update test to check for r161305
...
llvm-svn: 161307
2012-08-05 09:06:28 +00:00
Craig Topper
6d0408d3a5
Remove custom inserter for MWAIT. It doesn't do anything that couldn't be represented in a pattern.
...
llvm-svn: 161306
2012-08-05 00:36:57 +00:00
Craig Topper
43ee9fae92
Use a COPY node instead of an explicit MOVA opcode in the custom insterter for pcmpestrm/pcmpistrm. Allows the register allocator to handle it better and prevent wasted identity moves.
...
llvm-svn: 161305
2012-08-05 00:17:48 +00:00
Benjamin Kramer
e073177e06
Simplify code, no functionality change.
...
llvm-svn: 161303
2012-08-04 17:00:46 +00:00
Hal Finkel
70381a7b18
Add readcyclecounter lowering on PPC64.
...
On PPC64, this can be done with a simple TableGen pattern.
To enable this, I've added the (otherwise missing) readcyclecounter
SDNode definition to TargetSelectionDAG.td.
llvm-svn: 161302
2012-08-04 14:10:46 +00:00
Anton Korobeynikov
ef731edf53
Skip impdef regs during eabi save/restore list emission to workaround PR11902
...
llvm-svn: 161301
2012-08-04 13:25:58 +00:00
Anton Korobeynikov
3a4fdfeceb
Recognize vst1.64 / vld1.64 with 3 and 4 regs as load from / store to stack stuff
...
(this corresponds by spilling/reloading regs in DTriple / DQuad reg classes).
No testcase, found by inspection.
llvm-svn: 161300
2012-08-04 13:22:14 +00:00
Anton Korobeynikov
218aaf6d04
Add stack spill / reload instructions for DTriple and DQuad register classes, which
...
were missed for no reason. This fixes PR13377
llvm-svn: 161299
2012-08-04 13:16:12 +00:00
Bill Wendling
98f0b77048
Remove extraneous ';'.
...
llvm-svn: 161298
2012-08-04 10:31:40 +00:00
Benjamin Kramer
6d29c29631
Update cmake build.
...
llvm-svn: 161297
2012-08-04 09:52:39 +00:00
Benjamin Kramer
3849fcbe0e
Postpone the deletion of the old name in StructType::setName to allow using a slice of the old name.
...
Fixes PR13522. Add a rudimentary unit test to exercise the behavior.
llvm-svn: 161296
2012-08-04 09:47:02 +00:00
NAKAMURA Takumi
aa63610b09
[CMake] add_lit_target: Remove comments about add_dependencies. It is not a bug in cmake that add_custom_target(DEPENDS) would not accept targets but file-level dependencies.
...
llvm-svn: 161295
2012-08-04 02:14:44 +00:00
Anna Zaks
6ce686e6a4
[analyzer] Malloc: remove assert since is not valid as of r161248
...
We can be in the situation where we did not track the symbol before
realloc was called on it.
llvm-svn: 161294
2012-08-04 02:04:27 +00:00
Johnny Chen
0efe2743f8
Pull in cxa_demangle.cpp/.h from llvm's libcxxabi project. Change the namespace to lldb_cxxabiv1 for the time being.
...
Mangled.cpp is not wired in to call it yet.
llvm-svn: 161293
2012-08-04 01:36:57 +00:00
NAKAMURA Takumi
10b90b45c1
llc: Try to suppress failures since r161262 .
...
FIXME: Fix several tests on i686-win32 due to lacking of many libraries.
llvm-svn: 161292
2012-08-04 01:29:37 +00:00
Fariborz Jahanian
29489a9e9e
objective-C string literal has no side-effect,
...
resulting in issuance of unused static variable
warning now. // rdar://10777111
llvm-svn: 161291
2012-08-04 01:24:33 +00:00
Jordan Rose
a01741fce4
[analyzer] Use a more robust check for null in CallAndMessageChecker.
...
This should fix the failing test on the buildbot as well.
llvm-svn: 161290
2012-08-04 01:04:52 +00:00
Howard Hinnant
c51171e0e9
Loosen up the timing requirements on 4 more tests.
...
llvm-svn: 161289
2012-08-04 00:47:42 +00:00
Jordan Rose
4aa80e156d
[analyzer] Don't assume values bound to references are automatically non-null.
...
While there is no such thing as a "null reference" in the C++ standard,
many implementations of references (including Clang's) do not actually
check that the location bound to them is non-null. Thus unlike a regular
null dereference, this will not cause a problem at runtime until the
reference is actually used. In order to catch these cases, we need to not
prune out paths on which the input pointer is null.
llvm-svn: 161288
2012-08-04 00:25:30 +00:00
Eric Christopher
08af4c8461
Fix the name of this variable.
...
llvm-svn: 161287
2012-08-04 00:11:22 +00:00
Eric Christopher
47cff54422
Update comment to accurately reflect what should happen.
...
llvm-svn: 161286
2012-08-04 00:11:20 +00:00
Jakob Stoklund Olesen
a9d0b850b3
Delete a dead variable.
...
TwoAddressInstructionPass doesn't remat any more.
llvm-svn: 161285
2012-08-04 00:04:03 +00:00
Jakob Stoklund Olesen
a0c72ecf79
TwoAddressInstructionPass refactoring: Extract another method.
...
llvm-svn: 161284
2012-08-03 23:57:58 +00:00
Jordan Rose
17a8757a46
[analyzer] Update initializer assertion for delegating constructors.
...
Like base constructors, delegating constructors require no further
processing in the CFGInitializer node.
Also, add PrettyStackTraceLoc to the initializer and destructor logic
so we can get better stack traces in the future.
llvm-svn: 161283
2012-08-03 23:31:15 +00:00