Johnny Chen
8763780961
Add an example customization directory which uses a binutils.py module to provide
...
commands to print the binary representaion of an integer.
llvm-svn: 143252
2011-10-28 23:30:28 +00:00
Greg Clayton
7c533b2447
Fixed the GDB format to allow the size and format characters to come in any
...
order. Also hooked up the new formats for instruction, hex float and address
to the new formats.
llvm-svn: 143251
2011-10-28 23:27:55 +00:00
Richard Smith
472d495372
Fix assertion in constant expression evaluation. The LHS of a floating-point
...
binary operator isn't an rvalue if it's an assignment operator.
llvm-svn: 143250
2011-10-28 23:26:52 +00:00
Jim Ingham
c6674fd597
Added the ability for the target to specify Modules that will not be searched
...
when setting breakpoints, but only if no module is specified. The Darwin
platform uses this to not set breakpoints in dyld.
llvm-svn: 143249
2011-10-28 23:14:11 +00:00
Douglas Gregor
dba74af1b8
Move -Wc++11-compat out of -Wall. It causes trouble for clients that
...
define their own "nullptr" class in C++98 and build with -Wall.
llvm-svn: 143248
2011-10-28 23:11:43 +00:00
NAKAMURA Takumi
6e315dd8ba
test/CodeGen/PowerPC/2008-10-17-AsmMatchingOperands.ll: [PR11218] Mark "REQUIRES: asserts" for now.
...
llvm-svn: 143247
2011-10-28 23:11:03 +00:00
Greg Clayton
605684ec20
Added support for C++0x char16_t and char32_t types.
...
llvm-svn: 143246
2011-10-28 23:06:08 +00:00
Douglas Gregor
2c4542d3ec
Give __STDC_VERSION__ the value 201001L when we're in C1x mode. The
...
committee hasn't set a value for __STDC_VERSION__ yet, so this is a
placeholder. But at least it's > 199901L.
llvm-svn: 143245
2011-10-28 23:02:54 +00:00
Greg Clayton
490fbbe270
Enabled the "printf" attribute on all debugserver logging functions and fixed
...
the ensuing mayhem.
llvm-svn: 143244
2011-10-28 22:59:14 +00:00
Argyrios Kyrtzidis
a109e00bba
[libclang] Introduce use of CINDEXTEST_FAILONERROR environment variable which, if set,
...
will cause c-index-test to return as failed if a compiler error occurred.
llvm-svn: 143243
2011-10-28 22:54:36 +00:00
Argyrios Kyrtzidis
d92ced00b1
[libclang] Check for environment variable CINDEXTEST_NOTHREADS in clang_reparseTranslationUnit.
...
llvm-svn: 143242
2011-10-28 22:54:33 +00:00
Argyrios Kyrtzidis
b12986f1cb
Make -error-on-deserialized-decl work correctly by correctly delegating to
...
the previous ASTDeserializationListener.
llvm-svn: 143241
2011-10-28 22:54:31 +00:00
Argyrios Kyrtzidis
729387327b
[ARC] Do not transfer ARC ownership if the cast is going to result in r-value,
...
in which case the ownership is redundant. Thanks to John for the suggestion.
llvm-svn: 143240
2011-10-28 22:54:28 +00:00
Argyrios Kyrtzidis
d373247d74
Add an alias option for -error-on-deserialized-decl with joined '='.
...
llvm-svn: 143239
2011-10-28 22:54:24 +00:00
Argyrios Kyrtzidis
5fc727a0c2
[PCH] Keep track of file-level declarations that are contained by files.
...
Introduce a FILE_SORTED_DECLS [de]serialization record that contains
a file sorted array of file-level DeclIDs in a PCH/Module.
The rationale is to allow "targeted" deserialization of decls inside
a range of a source file.
Cocoa PCH increased by 0.8%
Difference of creation time for Cocoa PCH is below the noise level.
llvm-svn: 143238
2011-10-28 22:54:21 +00:00
Jim Grosbach
3d785edee2
ARM mode 'mov' to 'mvn' assembler alias.
...
llvm-svn: 143237
2011-10-28 22:50:54 +00:00
Jim Grosbach
b009a872d7
Add Thumb2 alias for "mov Rd, #imm" to "mvn Rd, #~imm".
...
When '~imm' is encodable as a t2_so_imm but plain 'imm' is not. For example,
mov r2, #-3
becomes
mvn r2, #2
rdar://10349224
llvm-svn: 143235
2011-10-28 22:36:30 +00:00
Richard Smith
254a73d636
Initial support for C++11 constexpr function invocation substitution. Using
...
constexpr function arguments outside of their function (passing or returning
them by reference) does not work correctly yet.
Calling constexpr function templates does not work yet, since the bodies are not
instantiated until the end of the translation unit.
llvm-svn: 143234
2011-10-28 22:34:42 +00:00
Jim Grosbach
d1f1b79b52
Allow InstAlias's to use immediate matcher patterns that xform the value.
...
For example,
On ARM, "mov r3, #-3" is an alias for "mvn r3, #2", so we want to use a
matcher pattern that handles the bitwise negation when mapping to t2MVNi.
llvm-svn: 143233
2011-10-28 22:32:53 +00:00
Owen Anderson
5524ce7d82
Fix illegal disassembly testcase.
...
llvm-svn: 143231
2011-10-28 21:45:09 +00:00
Greg Clayton
5521f99a42
Added the ability to have GDB formats appended to any command so you can do
...
things like:
(lldb) x/32xb 0x1000
"x" is an alias to "memory read", so this will actually turn into:
(lldb) memory read --gdb-format=32xb 0x1000
This applies to all commands, so the GDB formats will work with "register read",
"frame variable", "target variable" and others. All commands that can accept
formats, counts and sizes have been modified to support the "--gdb-format"
option.
llvm-svn: 143230
2011-10-28 21:38:01 +00:00
Johnny Chen
a4c6a7b2b6
Remove extra newline in the docstring.
...
llvm-svn: 143228
2011-10-28 21:23:58 +00:00
Devang Patel
fa59ac363e
In case of template specialization, do not try to delay emitting debug info for concrete type in -flimit-debug-info mode. This fixes some of the failures from bs15503.exp tests in gdb testsuite.
...
llvm-svn: 143227
2011-10-28 21:12:13 +00:00
Greg Clayton
d443641291
Added support for the C++Ox "nullptr_t" type.
...
llvm-svn: 143225
2011-10-28 21:00:00 +00:00
Jim Grosbach
07ae229048
Clarify example snippets a bit.
...
llvm-svn: 143224
2011-10-28 20:52:20 +00:00
Rafael Espindola
77a4538c6c
Fix this on the bots and make the test more complete by enabling optimizations.
...
llvm-svn: 143223
2011-10-28 20:52:18 +00:00
Rafael Espindola
fffc1ce1d7
Fix PR9614 for functions with the always_inline attribute. Try to keep
...
the common case (-O0, no always_inline) fast.
llvm-svn: 143222
2011-10-28 20:43:56 +00:00
Owen Anderson
409b694c6c
Specify that the high bit of the alignment field is fixed to 0 on these instructions.
...
llvm-svn: 143220
2011-10-28 20:43:24 +00:00
Fariborz Jahanian
2fa646d596
objective-c arc: type-casting of an objc pointer to
...
an rvalue retainable object type with life-time qualifier has no
effect and wil be diagnosed as error. // rdar://10244607
llvm-svn: 143219
2011-10-28 20:06:07 +00:00
Akira Hatanaka
104b7e3f2c
Make changes necessary in LowerFormalArguments to support Mips64.
...
llvm-svn: 143218
2011-10-28 19:55:48 +00:00
Akira Hatanaka
b20a325baf
Make changes necessary in LowerCall to support Mips64.
...
llvm-svn: 143217
2011-10-28 19:49:00 +00:00
Douglas Gregor
7ff1e7ed68
Deleted functions were in Clang 2.9, defaulted functions in
...
3.0. Fixses PR11252.
llvm-svn: 143216
2011-10-28 19:44:09 +00:00
Ted Kremenek
a98358ea13
[analyzer] ObjC message sends to nil receivers that return structs are now okay (compiler zeroes out the data). Fixes <rdar://problem/9151319>.
...
llvm-svn: 143215
2011-10-28 19:05:10 +00:00
Duncan Sands
280bc553b3
The expression icmp eq (select (icmp eq x, 0), 1, x), 0 folds to false.
...
Spotted by my super-optimizer in 186.crafty and 450.soplex. We really
need a proper infrastructure for handling generalizations of this kind
of thing (which occur a lot), however this case is so simple that I decided
to go ahead and implement it directly.
llvm-svn: 143214
2011-10-28 19:01:20 +00:00
Akira Hatanaka
7989f15d37
Add variable IsO32 to MipsTargetLowering.
...
llvm-svn: 143213
2011-10-28 18:47:24 +00:00
Duncan Sands
985ba6386d
A shift of a power of two is a power of two or zero.
...
For completeness - not spotted in the wild.
llvm-svn: 143211
2011-10-28 18:30:05 +00:00
Johnny Chen
57fe0e2e7e
Add bench entries.
...
llvm-svn: 143210
2011-10-28 18:21:00 +00:00
Duncan Sands
92af0a8a7f
Fold icmp ugt (udiv X, Y), X to false. Spotted by my super-optimizer
...
in 186.crafty.
llvm-svn: 143209
2011-10-28 18:17:44 +00:00
Owen Anderson
dde461c8b1
Reapply r143202, with a manual decoding hook for SWP. This change inadvertantly exposed a decoding ambiguity between SWP and CPS that the auto-generated decoder can't handle.
...
llvm-svn: 143208
2011-10-28 18:02:13 +00:00
Johnny Chen
6c75b61f08
Fix a typo.
...
llvm-svn: 143207
2011-10-28 17:56:02 +00:00
Dan Gohman
73057ad24f
Reapply r143177 and r143179 (reverting r143188), with scheduler
...
fixes: Use a separate register, instead of SP, as the
calling-convention resource, to avoid spurious conflicts with
actual uses of SP. Also, fix unscheduling of calling sequences,
which can be triggered by pseudo-two-address dependencies.
llvm-svn: 143206
2011-10-28 17:55:38 +00:00
David Chisnall
0cc83e7518
It turns out that the Objective-C message lookup functions can throw exceptions after all...
...
llvm-svn: 143205
2011-10-28 17:55:06 +00:00
Richard Smith
11562c5e10
Reinstate r142844 (reverted in r142872) now that lvalue-to-rvalue conversions
...
are present in all the necessary places:
In constant expression evaluation, evaluate lvalues as lvalues and rvalues as
rvalues. Remove special case for caching reference initialization and fix a
cyclic initialization crash in the process.
llvm-svn: 143204
2011-10-28 17:51:58 +00:00
Owen Anderson
effd094438
Revert r143202.
...
llvm-svn: 143203
2011-10-28 17:38:30 +00:00
Owen Anderson
df53d4fd61
Specify fixed bits on CPS instructions to enable roundtripping.
...
llvm-svn: 143202
2011-10-28 17:29:39 +00:00
Jim Grosbach
7a49575d7f
Thumb2 ADD/SUB instructions encoding selection outside IT block.
...
Outside an IT block, "add r3, #2" should select a 32-bit wide encoding
rather than generating an error indicating the 16-bit encoding is only
legal in an IT block (outside, the 'S' suffic is required for the 16-bit
encoding).
rdar://10348481
llvm-svn: 143201
2011-10-28 16:57:07 +00:00
Jim Grosbach
6acb14818d
Allow register classes to match a containing class in InstAliases.
...
If the register class in the source alias is a subclass of the register class
of the actual instruction, the alias can still match OK since the constraints
are strictly a subset of what the instruction can actually handle.
llvm-svn: 143200
2011-10-28 16:43:40 +00:00
Greg Clayton
e3c3d724c9
Bumping Xcode project version in mainline to match the latest build that was
...
submitted.
llvm-svn: 143199
2011-10-28 16:41:16 +00:00
NAKAMURA Takumi
7636f55348
test/MC/AsmParser/2011-09-06-NoNewline.s: Add explicit -mtriple=i386. It uses X86 instruction.
...
FIXME: Would it be reproduced without target-specific operands?
FIXME: Why run llvm-mc as the same input by 3 times?
llvm-svn: 143195
2011-10-28 14:12:30 +00:00
NAKAMURA Takumi
29ccdd8207
Dwarf: [PR11022] Fix emitting DW_AT_const_value(>i64), to be host-endian-neutral.
...
Don't assume APInt::getRawData() would hold target-aware endianness nor host-compliant endianness. rawdata[0] holds most lower i64, even on big endian host.
FIXME: Add a testcase for big endian target.
FIXME: Ditto on CompileUnit::addConstantFPValue() ?
llvm-svn: 143194
2011-10-28 14:12:22 +00:00