Douglas Gregor
f3bccd77fc
Rework the way in which we (de-)serialize the declarations
...
corresponding to TagType and ObjCInterfaceType. Previously, we would
serialize the definition (if available) or the canonical declaration
(if no definition was available). However, this can end up forcing the
deserialization of the definition even through we might not want to
yet.
Instead, always serialize the canonical declaration reference in the
TagType/ObjCInterfaceType entry, and as part of loading a pending
definition, update the "decl" pointer within the type node to point at
the definition. This is more robust in hard-to-isolate cases
where the *Type gets built and filled in before we see the definition.
llvm-svn: 148323
2012-01-17 19:21:53 +00:00
Devang Patel
2ed6718616
Untabify.
...
llvm-svn: 148322
2012-01-17 19:09:22 +00:00
Devang Patel
8b39be79ad
Intel syntax: Do not unncessarily create plus expression for memory operand displacement.
...
llvm-svn: 148321
2012-01-17 19:08:07 +00:00
Fariborz Jahanian
9d7cf2baaf
objc: fixes a bug where struct used inside an
...
objc class was not being exported to parent decl
context resulting in bogus mismatch warning later on.
// rdar://10655530
llvm-svn: 148320
2012-01-17 18:52:07 +00:00
Argyrios Kyrtzidis
da6e05476d
[libclang] Make sure Preprocessor is set in ASTUnit during indexing.
...
llvm-svn: 148319
2012-01-17 18:48:07 +00:00
Kostya Serebryany
5767f0f113
[asan] workaround for bug http://llvm.org/bugs/show_bug.cgi?id=11763 . Do not bark on memcpy(a, a, size).
...
llvm-svn: 148318
2012-01-17 18:43:52 +00:00
Douglas Gregor
020de3254a
Don't eagerly deserialize the 'Protocol' type when initializing code
...
generation for Objective-C; it may not be needed.
llvm-svn: 148317
2012-01-17 18:36:30 +00:00
Devang Patel
a77c03be54
Intel syntax: Ignore mnemonic aliases.
...
llvm-svn: 148316
2012-01-17 18:30:45 +00:00
Eli Bendersky
83c0088faa
Remove "XFAIL: arm" from test/ExecutionEngine/test-return.ll
...
The test passes on ARM bots
llvm-svn: 148315
2012-01-17 18:21:05 +00:00
Douglas Gregor
41dc6ff524
When collecting all of the redeclarations of a declaration loaded from
...
a module file, be sure to also add the first (potentially canonical)
declarations to the chain. This isn't guaranteed to occur because the
first declaration is not listed in the stored redeclaration chain.
llvm-svn: 148314
2012-01-17 18:13:45 +00:00
Douglas Gregor
d53ae83516
Delay the creation of the built-in Objective-C class 'Protocol' by
...
moving it from a "special type" to a predefined declaration, as we do
for id, Class, and SEL.
llvm-svn: 148313
2012-01-17 18:09:05 +00:00
Devang Patel
41b9ddeb7a
Intel syntax: Robustify memory operand parsing.
...
llvm-svn: 148312
2012-01-17 18:00:18 +00:00
Kostya Serebryany
86d4492627
[asan] fix ReadFileToBuffer to correctly handle files from /proc/ (asan issue 27)
...
llvm-svn: 148311
2012-01-17 18:00:07 +00:00
Howard Hinnant
26e8d17f79
Put do-installhdrs target back into Makefile.
...
llvm-svn: 148310
2012-01-17 17:01:18 +00:00
Howard Hinnant
d6c77994b8
Stop installing headers, this is now done by clang
...
llvm-svn: 148309
2012-01-17 16:09:32 +00:00
Benjamin Kramer
50b78ec043
Add an LLDB data formatter script for llvm::SmallVector, maybe this is helpful to someone else.
...
This lets lldb give sane output for SmallVectors, e.g.
Before:
(lldb) p sv
(llvm::SmallVector<int, 10>) $0 = {
(llvm::SmallVectorImpl<int>) llvm::SmallVectorImpl<int> = {
(llvm::SmallVectorTemplateBase<int>) llvm::SmallVectorTemplateBase<int> = {
(llvm::SmallVectorTemplateCommon<int>) llvm::SmallVectorTemplateCommon<int> = {
(llvm::SmallVectorBase) llvm::SmallVectorBase = {
(void *) BeginX = 0x00007fff5fbff960
...
}
After:
(lldb) p sv
(llvm::SmallVector<int, 10>) $0 = {
(int) [0] = 42
(int) [1] = 23
...
}
The script is still a bit rough so expect crashes for vectors of complex types.
Synthetic children are _not_ available in xcode 4.2, newer LLDBs should work though.
llvm-svn: 148308
2012-01-17 14:52:12 +00:00
Tobias Grosser
5a4c2e55dc
www: Move automatic polly installation to a more prominent place
...
llvm-svn: 148307
2012-01-17 14:44:35 +00:00
Tobias Grosser
af9977dc10
www: Fix clang path in polly.sh script
...
llvm-svn: 148306
2012-01-17 14:37:45 +00:00
Alexey Samsonov
67d508d083
Revert commit 148304
...
llvm-svn: 148305
2012-01-17 14:01:15 +00:00
Alexey Samsonov
1e310295d0
AddressSanitizer: from this patch, ASan allocator returns false for __asan_get_ownership(NULL) and produce error reports for malloc_usable_size(NULL) and __asan_get_allocated_size(NULL)
...
llvm-svn: 148304
2012-01-17 13:31:54 +00:00
Alexander Potapenko
2b2e0721d7
Define the bounds of the branch allocator memory space for 32-bit apps.
...
llvm-svn: 148303
2012-01-17 09:38:54 +00:00
Manuel Klimek
85d26f9807
Removes template magic to build up containers.
...
Instead, we now put the attributes of the container into members.
llvm-svn: 148302
2012-01-17 09:34:07 +00:00
Nadav Rotem
86c3807b99
Fix warning.
...
llvm-svn: 148301
2012-01-17 09:31:09 +00:00
Hans Wennborg
507b567707
Treat -Wformat=0 as an alias for -Wformat.
...
Fixes PR9195.
llvm-svn: 148300
2012-01-17 09:30:38 +00:00
Eli Bendersky
a8ad6e5666
Additional ExecutionEngine tests, as part of bringing up the MCJIT on ELF
...
implementation.
Currently lit still executes ExecutionEngine tests with JIT (not MCJIT) by
default. MCJIT tests can be executed manually by calling llvm-lit with
--param jit_impl=mcjit
llvm-svn: 148299
2012-01-17 09:14:54 +00:00
Nadav Rotem
86e5390dbf
Fix 11769.
...
In CanXFormVExtractWithShuffleIntoLoad we assumed that EXTRACT_VECTOR_ELT can be later handled by the DAGCombiner.
However, in some cases on AVX, the EXTRACT_VECTOR_ELT is legalized to EXTRACT_SUBVECTOR + EXTRACT_VECTOR_ELT, which
currently is not handled by the DAGCombiner. In this patch I added a check that we only extract from the XMM part.
llvm-svn: 148298
2012-01-17 09:13:19 +00:00
Craig Topper
02cb0fb136
Teach DAG combiner to turn a BUILD_VECTOR of UNDEFs into an UNDEF of vector type.
...
llvm-svn: 148297
2012-01-17 09:09:48 +00:00
David Blaikie
60deeee783
Re-add an over-zealously removed break.
...
llvm-svn: 148296
2012-01-17 08:24:58 +00:00
Craig Topper
9cafcd8baa
Remove unnecessary AVX check from an assert. hasSSE2 is enough.
...
llvm-svn: 148295
2012-01-17 08:23:44 +00:00
David Blaikie
d72e5c0dac
Remove dead comments as per Chandler's feedback to r148292
...
llvm-svn: 148294
2012-01-17 07:28:46 +00:00
David Blaikie
a5708dc3a3
Provide better messages in llvm_unreachable.
...
llvm-svn: 148293
2012-01-17 07:00:13 +00:00
David Blaikie
8a40f700e6
Remove unreachable code in Clang. (replace with llvm_unreachable where appropriate or when GCC requires it)
...
llvm-svn: 148292
2012-01-17 06:56:22 +00:00
Andrew Trick
7ccdc5c192
misched: Inital interface and implementation for ScheduleTopDownLive and ShuffleInstructions.
...
llvm-svn: 148291
2012-01-17 06:55:07 +00:00
Andrew Trick
e1c034fefe
Renamed MachineScheduler to ScheduleTopDownLive.
...
Responding to code review.
llvm-svn: 148290
2012-01-17 06:55:03 +00:00
Andrew Trick
8093eac51d
Moving options declarations around.
...
More short term hackery until we have a way to configure passes that work on LiveIntervals.
llvm-svn: 148289
2012-01-17 06:54:59 +00:00
Andrew Trick
12728f04ca
LSR fix: broaden the check for loop preheaders.
...
It's becoming clear that LoopSimplify needs to unconditionally create loop preheaders. But that is a bigger fix. For now, continuing to hack LSR.
Fixes rdar://10701050 "Cannot split an edge from an IndirectBrInst" assert.
llvm-svn: 148288
2012-01-17 06:45:52 +00:00
Alexey Samsonov
209c514a1d
AddressSanitizer: add support for malloc_usable_size() function
...
llvm-svn: 148287
2012-01-17 06:39:10 +00:00
Alexey Samsonov
2d3a67b73b
AddressSanitizer: create AsanThreadSummary together with AsanThread (in parent thread)
...
llvm-svn: 148286
2012-01-17 06:35:31 +00:00
Craig Topper
37b10ef250
Fix a crasher when PerformShiftCombine receives a BUILD_VECTOR of all UNDEF. Probably could use better handling in DAG combine or getNode. Fixes PR11772.
...
llvm-svn: 148285
2012-01-17 04:44:50 +00:00
David Blaikie
b48ed1a4cb
Remove unreachable code. (replace with llvm_unreachable to help GCC where necessary)
...
llvm-svn: 148284
2012-01-17 04:43:56 +00:00
Rafael Espindola
cbda0e255d
Add 148175 back. I am unable to reproduce any non determinism in a dragonegg
...
or clang bootstrap.
I will keep an eye on the bots.
Original message:
Only emit the Leh_func_endN symbol when needed.
llvm-svn: 148283
2012-01-17 04:19:20 +00:00
Dylan Noblesmith
c120957339
Makefile: add missing files to FilesToConfig
...
And fix the comment about where the FilesToConfig variable
is.
llvm-svn: 148282
2012-01-17 02:56:49 +00:00
David Blaikie
f47fa304a4
Remove unnecessary default cases in switches over enums.
...
This allows -Wswitch-enum to find switches that need updating when these enums are modified.
llvm-svn: 148281
2012-01-17 02:30:50 +00:00
Jim Ingham
5c93906cbf
Fix the test properly now that SBValue::GetValueAsUnsigned works for bitfields.
...
llvm-svn: 148280
2012-01-17 02:17:45 +00:00
Argyrios Kyrtzidis
7890821b5b
[libclang] Make clang_getCursorCompletionString not depend on the ASTUnit having
...
a Sema.
This allows it to work when Sema is not available, like when loading AST files.
llvm-svn: 148279
2012-01-17 02:15:54 +00:00
Argyrios Kyrtzidis
8d05ca7dd2
Introduce a CodeCompletionResult::CreateCodeCompletionString() that
...
does not depend on Sema, it accepts an ASTContext and a Preprocessor.
Step towards making clang_getCursorCompletionString not depend on Sema.
llvm-svn: 148278
2012-01-17 02:15:51 +00:00
Argyrios Kyrtzidis
f34950d26a
Introduce a static Sema::MarkDeducedTemplateParameters() that only depends
...
on an ASTContext.
This is a step towards making clang_getCursorCompletionString not depend on Sema.
llvm-svn: 148277
2012-01-17 02:15:41 +00:00
Eli Friedman
05e280156f
Revert r148271; this requires more thought.
...
llvm-svn: 148276
2012-01-17 02:13:45 +00:00
Pete Cooper
e3d305a206
Changed flag operand of ISD::FP_ROUND to TargetConstant as it should not get checked for legalisation
...
llvm-svn: 148275
2012-01-17 01:54:07 +00:00
Chris Lattner
c6e80b3b9e
add some missing const qualifiers.
...
llvm-svn: 148274
2012-01-17 01:31:32 +00:00