Arnaud A. de Grandmaison
fa6d73cc90
[libclang] CompilationDatabase naming and comment fixes
...
llvm-svn: 159682
2012-07-03 20:38:12 +00:00
Dmitri Gribenko
93976cc136
CommentLexer: remove Markdown tokens from the token list (they are not emitted by lexer).
...
llvm-svn: 159681
2012-07-03 20:21:49 +00:00
Bill Wendling
a0bc1083be
Use the DebugInfo's 'print()' method to emit the comments.
...
These give quite a bit more information about the DebugInfo and makes it more
readable.
llvm-svn: 159680
2012-07-03 20:01:02 +00:00
DeLesley Hutchins
3a8d6cff14
Thread safety analysis: improve handling of smart pointers.
...
llvm-svn: 159679
2012-07-03 19:47:18 +00:00
Akira Hatanaka
e1e3ad3d11
Make the following changes in the way Mips handles vector arguments and return
...
values:
- Return integer vectors in integer registers.
- Pass vector arguments in integer registers.
- Set an upper bound for argument alignment. The largest alignment is 8-byte
for O32 and 16-byte for N32/64.
llvm-svn: 159676
2012-07-03 19:24:06 +00:00
DeLesley Hutchins
0c1da20bf8
Thread Safety Analysis: handle expressions involving temporaries,
...
e.g. ExprWithCleanups.
llvm-svn: 159674
2012-07-03 18:25:56 +00:00
Dmitri Gribenko
767ea0ff4a
CommentBriefParser: remove dead store. Found by Clang Analyzer.
...
llvm-svn: 159673
2012-07-03 18:10:20 +00:00
Nuno Lopes
1e8dffdf27
BoundsChecking: optimize out the check for offset < 0 if size is known to be >= 0 (signed).
...
(LLVM optimizers cannot do this optimization by themselves)
llvm-svn: 159668
2012-07-03 17:30:18 +00:00
Nuno Lopes
9291ff4078
fold PHI nodes in SizeOffsetEvaluator whenever possible.
...
Unfortunately this change requires the cache map to hold WeakVHs instead
llvm-svn: 159667
2012-07-03 17:13:25 +00:00
Nuno Lopes
90c76dfb17
improve PHINode::hasConstantValue() to detect recursive cases like %phi = phi(%phi,42) as constant
...
llvm-svn: 159666
2012-07-03 17:10:28 +00:00
Hal Finkel
6b984f084c
Add additional architecture defines for PPC targets.
...
Patch by Andy Gibbs.
llvm-svn: 159665
2012-07-03 16:51:04 +00:00
Argyrios Kyrtzidis
4cf2ffe28b
[libclang] Protect against a race condition where a thread
...
may be destroying an ASTUnit while cleanupOnDiskMapAtExit is
getting called.
rdar://11781241
llvm-svn: 159664
2012-07-03 16:30:52 +00:00
NAKAMURA Takumi
da94a2d901
clang/utils/TableGen/ClangAttrEmitter.cpp: Fix abuse of StringRef (from getValueAsString()).
...
llvm-svn: 159662
2012-07-03 14:45:09 +00:00
Stepan Dyatkovskiy
9f3d5d6d5f
IntegersSubsetMappin: cosmetic changes in diff operation.
...
llvm-svn: 159661
2012-07-03 14:29:26 +00:00
Stepan Dyatkovskiy
f2127fb741
Part of r159527. Splitted into series of patches and gone with fixed PR13256:
...
IntegersSubsetMapping
Added new methods
- add(self& RHS, SuccessorClass *S)
- detachCase
- removeCase
- findSuccessor
- getCases
- getCaseSingleNumber
- isOverlapped
llvm-svn: 159660
2012-07-03 14:15:36 +00:00
Stepan Dyatkovskiy
8b0c97e0dd
Part of r159527. Splitted into series of patches and gone with fixed PR13256:
...
IntegersSubsetMapping
- Replaced type of Items field from std::list with std::map. In neares future I'll test it with DenseMap and do the correspond replacement
if possible.
llvm-svn: 159659
2012-07-03 13:46:45 +00:00
Stepan Dyatkovskiy
438ba5f0bd
Part of r159527. Splitted into series of patches and gone with fixed PR13256:
...
Optimized diff operation: implemented the case when LHS and RHS subsets contains single numbers only.
llvm-svn: 159658
2012-07-03 13:29:14 +00:00
Peter Collingbourne
2165cf6e36
Document the llvm.fabs intrinsic.
...
llvm-svn: 159657
2012-07-03 12:25:40 +00:00
Alexey Samsonov
716aa7e2f2
[ASan] fixup for r159652
...
llvm-svn: 159655
2012-07-03 09:06:39 +00:00
Alexey Samsonov
961276af26
[Sanitizer] Extend a symbolizer code. Implemented for Linux only. Use dl_iterate_phdr to get virtual addresses of mapped module sections. To symbolize an address from a module, map this module to memory and obtain pointers to debug info sections. Later these pointers can be passed to constructor of DWARF context-in-memory from LLVM DebugInfo lib.
...
llvm-svn: 159652
2012-07-03 08:24:14 +00:00
Tobias Grosser
822b254507
codegen.intrinsic: Update testcase to work with NVPTX backend
...
llvm-svn: 159650
2012-07-03 08:18:34 +00:00
Tobias Grosser
b266c98ccc
Update to Polly for LLVM r159614 which changes Passes.cpp.
...
Contributed by: Yabin Hu <yabin.hwu@gmail.com>
llvm-svn: 159649
2012-07-03 08:18:31 +00:00
Chandler Carruth
9f0e4a2f18
Micro-optimize this function a bit. This shrinks the generated code
...
some, and allows the routine to be inlined into common callers. The
various bits that hit this code in their hotpath seem slightly lower on
the profile, but I can't really measure a performance improvement as
everything seems to still be bottlenecked on likely cache misses. =/
llvm-svn: 159648
2012-07-03 07:16:13 +00:00
Craig Topper
85c938f44f
Remove extra space.
...
llvm-svn: 159647
2012-07-03 06:48:58 +00:00
Craig Topper
f067f9aa51
Change i128mem/i256mem to f128mem/f256mem on some floating point vector instructions.
...
llvm-svn: 159646
2012-07-03 06:11:06 +00:00
NAKAMURA Takumi
09e3510eb1
MCContext.cpp: Fixup for my odd previous commit. No functional changes.
...
llvm-svn: 159645
2012-07-03 06:01:27 +00:00
Craig Topper
676dcd8c39
Add aliases for pblendvb, blendvpd, and blendvps instructions with the implicit xmm0 operand specified. Fixes PR13252.
...
llvm-svn: 159644
2012-07-03 05:49:45 +00:00
NAKAMURA Takumi
2338556320
test/CodeGen/SPARC/private.ll: Fixup. Forgot to prune old RUN lines.
...
llvm-svn: 159643
2012-07-03 04:29:20 +00:00
NAKAMURA Takumi
c2a5bd6822
test/CodeGen/SPARC/private.ll: FileCheck-ize.
...
llvm-svn: 159642
2012-07-03 04:21:57 +00:00
NAKAMURA Takumi
2a4930c96a
llvm/test/lit.cfg: Retweak for Win32 to fix testing.
...
- execute_external should be;
- Not on Win32.
- Using bash.
In reverse, "execute_internal" shoud be (Win32 && !bash).
- lit.getBashPath() behaves differently before and after tweaking $PATH.
I will add a few explanations there later.
llvm-svn: 159641
2012-07-03 03:59:34 +00:00
NAKAMURA Takumi
30396ba4aa
MCContext::GetDwarfFile(): Make FileName parsing tolerant of DOSish pathsep with PathV2.
...
It fixes failure in test/MC/MachO/gen-dwarf.s on Win32 w/o bash.
llvm-svn: 159640
2012-07-03 03:59:29 +00:00
NAKAMURA Takumi
dff1a78321
test/CodeGen/X86/sincos.ll: FileCheck-ize.
...
llvm-svn: 159639
2012-07-03 03:59:22 +00:00
NAKAMURA Takumi
10dc235746
test/CodeGen/X86/fabs.ll: FileCheck-ize.
...
llvm-svn: 159638
2012-07-03 03:59:15 +00:00
NAKAMURA Takumi
ff680b1db6
test/CodeGen/X86/2007-09-05-InvalidAsm.ll: FileCheck-ize.
...
llvm-svn: 159637
2012-07-03 03:59:08 +00:00
NAKAMURA Takumi
e5e19e4f7b
test/CodeGen/X86/2004-03-30-Select-Max.ll: FileCheck-ize.
...
llvm-svn: 159636
2012-07-03 03:58:59 +00:00
Matt Beaumont-Gay
36af16affd
Silence warning in -Asserts build
...
llvm-svn: 159635
2012-07-03 03:55:58 +00:00
Nico Weber
4b18c3ff40
Share ConvertUTF8toWide() between Lex and CodeGen.
...
llvm-svn: 159634
2012-07-03 02:24:52 +00:00
Nico Weber
b8124d1af1
Rename -Wself-assign-memvar to -Wself-assign-field to improve local consistency a bit.
...
(cf -Wunused-private-field and several other existing -field diagnostics.)
llvm-svn: 159633
2012-07-03 02:03:06 +00:00
Chandler Carruth
c4702dac1c
Remove a redundant assignment to the FDecl variable from *inside* it's
...
initializer.
I really feel like Clang should warn about this, but I can't describe
a good reason. GCC will warn on this in some cases under
-Wsequence-point, but it actually seems like a false positive for that
warning....
llvm-svn: 159631
2012-07-03 00:15:11 +00:00
John McCall
4e8ca4fa14
Significantly simplify CGExprAgg's logic about ignored results:
...
if we want to ignore a result, the Dest will be null. Otherwise,
we must copy into it. This means we need to ensure a slot when
loading from a volatile l-value.
With all that in place, fix a bug with chained assignments into
__block variables of aggregate type where we were losing insight into
the actual source of the value during the second assignment.
llvm-svn: 159630
2012-07-02 23:58:38 +00:00
James Dennett
fc7c677c8d
Documentation cleanup:
...
* Added file header documentation with \file and \brief;
* Cleaned up existing doc comments and added/annotated \brief summaries.
llvm-svn: 159629
2012-07-02 23:57:26 +00:00
James Dennett
0bb4164ce8
Documentation cleanup: Delete a duplicated/malformed doc comment.
...
llvm-svn: 159628
2012-07-02 23:56:17 +00:00
Argyrios Kyrtzidis
b6df682194
[libclang] Introduce clang_Cursor_isDynamicCall which,
...
given a cursor pointing to a C++ method call or an ObjC message,
returns non-zero if the method/message is "dynamic", meaning:
For a C++ method: the call is virtual.
For an ObjC message: the receiver is an object instance, not 'super' or a
specific class.
rdar://11779185
llvm-svn: 159627
2012-07-02 23:54:36 +00:00
Fariborz Jahanian
577574ab88
objective-c: just as we have done for method definitions,
...
c-functions declared in implementation should have their
parsing delayed until the end so, they can access forward
declared private methods. // rdar://10387088
llvm-svn: 159626
2012-07-02 23:37:09 +00:00
Jack Carter
b353094f27
mips32 long long register inline asm constraint support.
...
inlineasm-cnstrnt-bad-r-1.ll is NOT supposed to fail, so it was removed. This resulted in the removal of a negative test (inlineasm-cnstrnt-bad-r-1.ll)
llvm-svn: 159625
2012-07-02 23:35:23 +00:00
Richard Smith
b721e301df
-Wuninitialized: assume that an __attribute__((returns_twice)) function might
...
initialize any variable. This is extremely conservative, but is sufficient for
now.
llvm-svn: 159620
2012-07-02 23:23:04 +00:00
Eric Christopher
dfc3e68c40
Revert " mips32 long long register inline asm constraint support." as
...
it appears to be breaking the bots.
This reverts commit 1b055ce320fa13f6f1ac81670d11b45e01f79876.
llvm-svn: 159619
2012-07-02 23:22:25 +00:00
Eric Christopher
b65acc61a5
Revert "IntRange:" as it appears to be breaking self hosting.
...
This reverts commit b2833d9dcba88c6f0520cad760619200adc0442c.
llvm-svn: 159618
2012-07-02 23:22:21 +00:00
Jack Carter
939236c2eb
deleted test/CodeGen/Mips/inlineasm-cnstrnt-bad-r-1.ll
...
llvm-svn: 159617
2012-07-02 23:21:22 +00:00
James Dennett
c7a646fc01
Documentation cleanup:
...
* Primarily, added \brief to most of include/clang/Basic, instead of prefixing
the comments with "DeclaredName - ";
* Made some brief summaries significantly briefer;
* Fixed up some erroneous uses of \see and \arg;
* Fixed up some extraneous backslashes in \code...\endcode blocks;
* Fixed up some typos/spelling errors.
llvm-svn: 159616
2012-07-02 23:17:34 +00:00