Michael J. Spencer
de3a2118db
MC/X86/COFF: Allow quotes in names when targeting MS/Windows,
...
as MC is the only assembler we support.
This splits MS/Windows and GNU/Windows ASM infos into two seperate classes.
While there is currently only one difference, full MS C++ ABI support will
require many more.
llvm-svn: 145409
2011-11-29 18:00:06 +00:00
Danil Malyshev
cbe72fc959
Fixed ObjectFile functions:
...
- getSymbolOffset() renamed as getSymbolFileOffset()
- getSymbolFileOffset(), getSymbolAddress(), getRelocationAddress() returns same result for ELFObjectFile, MachOObjectFile and COFFObjectFile.
- added getRelocationOffset()
- fixed MachOObjectFile::getSymbolSize()
- fixed MachOObjectFile::getSymbolSection()
- fixed MachOObjectFile::getSymbolOffset() for symbols without section data.
llvm-svn: 145408
2011-11-29 17:40:10 +00:00
Howard Hinnant
ab4f438239
Add protection from min/max macros
...
llvm-svn: 145407
2011-11-29 16:45:27 +00:00
Elena Demikhovsky
7a81dea516
Fixed vsqrt.ss intrinsic usage - order of input operands was wrong.
...
Added a test.
Thanks Bruno for reviewing the patch.
llvm-svn: 145403
2011-11-29 15:00:45 +00:00
Tobias Grosser
39913e3648
test: Switch to new atomic instructions
...
This fixes the test with recent versions of LLVM that do not support
the old atomic instructions any more.
llvm-svn: 145402
2011-11-29 14:51:05 +00:00
Tobias Grosser
a66b37d7ae
Add utils/jscop2cloog.py
...
This tool takes a jscop file and translates it into a cloog input file.
llvm-svn: 145401
2011-11-29 14:50:52 +00:00
Tobias Grosser
1e06003227
test: Add more dependences to cmake build
...
llvm-svn: 145400
2011-11-29 14:50:47 +00:00
Benjamin Kramer
3df1a2dd59
The cheap version of getName() is sufficient here.
...
llvm-svn: 145399
2011-11-29 14:46:55 +00:00
Benjamin Kramer
7f107eeea5
Preserve constness.
...
llvm-svn: 145397
2011-11-29 12:31:20 +00:00
Benjamin Kramer
696894a35b
Silence GCC warnings, RefCountedBase is meant to be default-initialized here.
...
llvm-svn: 145396
2011-11-29 11:31:35 +00:00
Richard Smith
53711607a0
Add fix-it to remove 'typedef' from function template definitions. Such a token
...
was probably meant to be 'typename', which we will have already suggested if it
is appropriate.
llvm-svn: 145395
2011-11-29 09:09:06 +00:00
Argyrios Kyrtzidis
004685bdf7
Fix leaking of LexedMethod objects created for caching objc method definitions tokens
...
for late parsing.
llvm-svn: 145394
2011-11-29 08:14:54 +00:00
Argyrios Kyrtzidis
6e210232ab
[libclang] Fix leak in clang_indexSourceFile_Impl
...
llvm-svn: 145393
2011-11-29 08:14:50 +00:00
Craig Topper
1d63ae3731
Fix shuffle decoding for memory forms for (V)SHUFPS/D.
...
llvm-svn: 145392
2011-11-29 07:58:09 +00:00
Craig Topper
c16db840be
Fix issues in shuffle decoding around VPERM* instructions. Fix shuffle decoding for VSHUFPS/D for 256-bit types. Add pattern matching for memory forms of VPERMILPS/VPERMILPD.
...
llvm-svn: 145390
2011-11-29 07:49:05 +00:00
NAKAMURA Takumi
64404a3b2c
[Win32] Catch exceptions (eg. segfault) on waiting for invoked clang from the driver.
...
clang/lib/Driver/Driver.cpp: Don't pass through negative exit status, or parent would be confused.
llvm::sys::Program::Wait(): Suppose 0x8000XXXX and 0xC000XXXX as abnormal exit code and pass it as negative value.
Win32 Exception Handler: Exit with ExceptionCode on an unhandle exception.
llvm-svn: 145389
2011-11-29 07:47:04 +00:00
NAKAMURA Takumi
0e5bae7191
lit/TestRunner.py: Try to catch ERROR_FILE_NOT_FOUND, too.
...
Thanks to Francois, to let me know.
llvm-svn: 145381
2011-11-29 06:40:50 +00:00
Bob Wilson
b103fbf005
Install llvmCore to /usr/local. <rdar://problem/10390708>
...
llvm-svn: 145378
2011-11-29 06:11:56 +00:00
Argyrios Kyrtzidis
c36d6a1696
[libclang] Make the test portable.
...
llvm-svn: 145377
2011-11-29 05:48:01 +00:00
Craig Topper
12b72def4e
Fix VINSERTF128/VEXTRACTF128 to be marked as FP instructions. Allow execution dependency fix pass to convert them to their integer equivalents when AVX2 is enabled.
...
llvm-svn: 145376
2011-11-29 05:37:58 +00:00
Richard Smith
675ea99a2a
PR10101: Recover better from a common copy-paste error: if a function
...
declaration at namespace scope is followed by a semicolon and an open-brace
(or in C++, a 'try', ':' or '='), then the error is probably a function
definition with a spurious ';', rather than a mysterious '{'.
llvm-svn: 145372
2011-11-29 05:27:40 +00:00
Greg Clayton
ad9e828c89
<rdar://problem/10429064>
...
Fixed an issue where if we are debugging on a remote platform and set a
platform path for our executable, it was not being honored by the new
launch functions that used the ProcessLaunchInfo.
llvm-svn: 145371
2011-11-29 04:03:30 +00:00
Craig Topper
897a7d4b9c
Correctly mark VPERM2F128 as being an FP instruction and add execution domain fixing support to convert it to VPERM2I128 for AVX2.
...
llvm-svn: 145370
2011-11-29 03:57:34 +00:00
Argyrios Kyrtzidis
1ddb97ec86
[libclang] Make clang_findReferencesInFile also work on macros (find all expansions/definition
...
of a macro in a file).
As a bonus, also make searching for declarations more efficient by ignoring
preprocessing entities when we know that we are looking for a declaration.
Fixes rdar://10427411.
llvm-svn: 145369
2011-11-29 03:14:11 +00:00
Bill Wendling
11b9894234
MachO doesn't support the protected visibility. Don't default to 'global' here. <rdar://problem/10396775>
...
llvm-svn: 145368
2011-11-29 02:39:58 +00:00
Andrew Trick
d25089f8e0
SCEV fix. In general, Add/Mul expressions should not inherit NSW/NUW.
...
This reverts r139450, fixes r139453, and adds much needed comments and a
unit test.
llvm-svn: 145367
2011-11-29 02:16:38 +00:00
Andrew Trick
d912a5b2e3
Make SCEV print <nsw><nuw> for Add/MulExpr.
...
llvm-svn: 145364
2011-11-29 02:06:35 +00:00
Andrew Trick
5ec136c57e
Filecheckize.
...
llvm-svn: 145363
2011-11-29 02:05:23 +00:00
Peter Collingbourne
7e09afb833
Remove content that has been moved to Clang release notes.
...
llvm-svn: 145362
2011-11-29 02:04:48 +00:00
Peter Collingbourne
7d9c13d81f
Fix grammar.
...
llvm-svn: 145361
2011-11-29 02:04:44 +00:00
Peter Collingbourne
a35dcd2310
Add Clang release notes for OpenCL C support.
...
llvm-svn: 145360
2011-11-29 02:03:07 +00:00
Peter Collingbourne
33d838c499
Fix URL typo.
...
llvm-svn: 145359
2011-11-29 02:03:03 +00:00
Fariborz Jahanian
a45495a9f2
objc: warn if NSObject attribute appears other than in a typedef.
...
// rdar://10453342
llvm-svn: 145358
2011-11-29 01:48:40 +00:00
Greg Clayton
bda72b83f4
I added more complete documentation on all of the new packets we use in LLDB
...
as well as attached a new priority description as to why and when you would
want to implement each packet.
Also documented the additions we have made to the stop reply packet and why
the extra information is necessary.
llvm-svn: 145357
2011-11-29 01:44:07 +00:00
Bill Wendling
e4cc332729
On MachO, the pointer to the personality function should always be in the
...
non_lazy_symbol_pointers section (__IMPORT,__pointers). Ignore the 'hidden' part
since that will place it in the wrong section.
<rdar://problem/10443720>
llvm-svn: 145356
2011-11-29 01:43:20 +00:00
Daniel Dunbar
faaa76d1b7
build/cmake: Switch to using llvm-build computed dependencies.
...
- I verified locally that the current dependency lists are identical.
- This makes add_llvm_library_dependencies() a no-op. I'll remove it once this
change passes the bots.
llvm-svn: 145355
2011-11-29 01:31:52 +00:00
Eli Friedman
7534b46884
Zap some completely ridiculous code. There's probably a miscompile here, but I don't really want to try to write a testcase involving an invoke returning a pointer to a varargs function...
...
llvm-svn: 145347
2011-11-29 01:18:23 +00:00
Jim Grosbach
ae9132207f
Better fix for ARM MOVT relocation encoding of thumb bit.
...
Replaces r145318 with a more targetted fix for the relocation handling.
llvm-svn: 145346
2011-11-29 01:15:25 +00:00
Johnny Chen
62212f0e62
Patch from Daniel Dunbar for future-proof against http://llvm.org/viewvc/llvm-project?view=rev&revision=145331 .
...
llvm-svn: 145345
2011-11-29 01:09:49 +00:00
Andrew Trick
e756031a62
Reenable this IndVars unit test.
...
SCEV can't optimize undef in all cases, which is a separate issue from this test case.
llvm-svn: 145343
2011-11-29 00:52:04 +00:00
Sean Callanan
9973231fb0
Changed ClangASTImporter to allow finer-grained
...
management of what allocations remain after an
expression finishes executing. This saves around
2.5KiB per expression for simple expressions.
llvm-svn: 145342
2011-11-29 00:42:02 +00:00
Daniel Dunbar
fe2d028ab1
build: Update CMakeLists.txt.
...
llvm-svn: 145341
2011-11-29 00:33:14 +00:00
Chandler Carruth
60062ed5dc
Add a link from the LLVM release notes to the Clang release notes.
...
I suspect we could profitably remove/move some of the bullet points
under Clang here to the Clang notes in order to keep things clean on
both sides. Unless I hear objections I'll start doing that once folks
have read over the Clang notes a bit.
llvm-svn: 145340
2011-11-29 00:32:43 +00:00
Ted Kremenek
6cdff0a82b
Fix serialized diagnostics to handle FixIts that only remove text. Fixes <rdar://problem/10473903>.
...
llvm-svn: 145339
2011-11-29 00:30:52 +00:00
Daniel Dunbar
b074d102a3
edis: Sink EDMain.cpp into lib/MC/MCDisassembler.
...
- This fixes some layering violations and matches how we handle the llvm-c lib,
for example.
llvm-svn: 145338
2011-11-29 00:25:57 +00:00
Chandler Carruth
d196a1e637
Fix a spelling error pointed out by Sebastien, and tidy up the
...
formatting here a bit... mostly to my preferred bikeshed-blue.
llvm-svn: 145337
2011-11-29 00:24:20 +00:00
Chandler Carruth
9a39b455aa
Remove the last of my notes. I don't think these really need to be in
...
the release notes despite their awesomeness. If we had a thorough
discussion of the performance of Clang in 2.9 vs. 3.0, the first would
be more relevant, but we don't. The serialization stuff hopefully isn't
terribly visible to end users.
Objections to these omissions are of course welcome. =]
llvm-svn: 145336
2011-11-29 00:24:18 +00:00
Chandler Carruth
cb9f4c7fde
Last major chunk of features. This covers a couple of language
...
extensions and one infrastructure feature addition that has a direct
impact on other projects which use Clang.
llvm-svn: 145335
2011-11-29 00:15:26 +00:00
Chandler Carruth
30befa0f7a
And sink the GNU runtime bit into this section as a stub.
...
llvm-svn: 145334
2011-11-29 00:15:25 +00:00
Chandler Carruth
1ef751f4a5
Flesh out the Objective-C section a bit. This may well need some love
...
from the Objective-C experts, but the basic stuff is there now.
llvm-svn: 145333
2011-11-29 00:15:23 +00:00