Daniel Dunbar
fa400a140b
llvm-config-2: Implement component dependency traversal, implement support for 'all', and fix a few other minor bugs.
...
- Still doesn't use actual generated component table, but that is now just a matter of wiring into the build system.
llvm-svn: 143617
2011-11-03 17:30:19 +00:00
Daniel Dunbar
b0f7a1472b
llvm-config: Start stubbing out a C++ version of llvm-config (as llvm-config-2,
...
for now).
- Mostly complete except for the data that needs to come from the build system
or the dependencies.
- Has some small improvements from current llvm-config:
o Uses TargetRegistry directly to get some information.
o Designed to work correctly when used from a CMake build tree (relatively
untested currently) (although pcc fixed this recently for old llvm-config).
llvm-svn: 143616
2011-11-03 17:30:16 +00:00
Douglas Gregor
03ba1887f0
Refactor Sema::IsSimplyAccessible slightly, to work on a DeclContext rather than a class
...
llvm-svn: 143615
2011-11-03 16:51:37 +00:00
Douglas Gregor
dd847baadd
When we're checking a friend function template in an out-of-line class
...
definition, we may not have a scope corresponding to the namespace
where that friend function template actually lives. Work around this
issue by faking up a scope with the appropriate DeclContext.
This is a bit of a hack, but it fixes <rdar://problem/10204947>.
llvm-svn: 143614
2011-11-03 16:37:14 +00:00
Benjamin Kramer
f82d8064d4
The alpha and system z backends were removed.
...
llvm-svn: 143613
2011-11-03 12:13:52 +00:00
Craig Topper
0e7cbbabea
Add new X86 AVX2 VBROADCAST instructions.
...
llvm-svn: 143612
2011-11-03 07:35:53 +00:00
Galina Kistanova
98989469a2
Cleaned text, fixed HTML.
...
llvm-svn: 143607
2011-11-03 05:57:26 +00:00
Argyrios Kyrtzidis
7ca77357ce
[libclang] Add missing return in clang_getExpansionLocation that resulted in that function
...
always returning a null file/line/column.
Also add at least one use of clang_getExpansionLocation inside c-index-test that would have
made the tests to catch that.
llvm-svn: 143606
2011-11-03 02:20:36 +00:00
Argyrios Kyrtzidis
e968152564
[libclang] Add infrastructure to be able to only deserialize decls in a file region and
...
use it for clang_getCursor.
llvm-svn: 143605
2011-11-03 02:20:32 +00:00
Argyrios Kyrtzidis
cb373e3f31
[libclang] For c-index-test disable caching of code completion results if
...
the CINDEXTEST_COMPLETION_NO_CACHING environment variable is present.
llvm-svn: 143604
2011-11-03 02:20:25 +00:00
Chad Rosier
bf5f4bec1a
Add support for sign-extending non-legal types in SelectSIToFP().
...
llvm-svn: 143603
2011-11-03 02:04:59 +00:00
Jan Wen Voung
180319f72d
Do not add "byval" attribute to records with non-trivial copy constructors
...
and destructors in the DefaultABIInfo.
llvm-svn: 143601
2011-11-03 00:59:44 +00:00
Pete Cooper
e6173d81ae
Treat objc selector reference globals as invariant so that MachineLICM can hoist them out of loops. Fixes <rdar://problem/6027699>
...
llvm-svn: 143600
2011-11-03 00:56:36 +00:00
Douglas Gregor
2e10cf9620
Add a printing policy flag to suppress printing "<anonymous>::" prior
...
to types. Enable this flag for code completion, where knowing whether
something is in an anonymous or inline namespace is actually not
useful, since you don't have to type it anyway. Fixes
<rdar://problem/10208818>.
llvm-svn: 143599
2011-11-03 00:16:13 +00:00
Chad Rosier
9589872af9
Remove some cruft from the BitcodeWriter, while still maintaining backward
...
compatibility in the BitcodeReader.
llvm-svn: 143598
2011-11-03 00:14:01 +00:00
Akira Hatanaka
756ce7f9ab
Set MinABIStackAlignInBytes to 8 if ABI is N32/64.
...
llvm-svn: 143597
2011-11-03 00:05:50 +00:00
Akira Hatanaka
101f70da7c
Convert the type of a structure passed by value if it has double precision
...
fields in order to ease handling of such structures in backend.
llvm-svn: 143596
2011-11-02 23:54:49 +00:00
Douglas Gregor
e7f0675672
Test code completion for constructor initializers within the class
...
definition. This already worked; <rdar://problem/10208871>.
llvm-svn: 143595
2011-11-02 23:39:56 +00:00
Lang Hames
1f4603d498
Fixed parameter name.
...
llvm-svn: 143594
2011-11-02 23:37:04 +00:00
Sean Callanan
9c95fd2ed6
Fixed the function that gets values for the
...
IRInterpreter to get the value, not the location,
of references. The location of a reference has
type T&&, which is meaningless to Clang.
llvm-svn: 143592
2011-11-02 23:24:30 +00:00
Chad Rosier
d294af104a
Removed unused variable.
...
llvm-svn: 143591
2011-11-02 23:21:55 +00:00
Bill Wendling
645eadac67
An array of chars of length 8 will also cause the stack protector to be inserted
...
into the function. Reflect that here so that the array will be placed next to
the SP.
<rdar://problem/10128329>
llvm-svn: 143590
2011-11-02 23:20:58 +00:00
Akira Hatanaka
1437852c38
Return function results whose size is smaller than 128-bits in registers if ABI
...
is N32/64.
llvm-svn: 143589
2011-11-02 23:14:57 +00:00
Greg Clayton
e59da1688e
Bumping Xcode project versions for lldb-85 and debugserver-150.
...
llvm-svn: 143587
2011-11-02 23:11:17 +00:00
Sean Callanan
f90597993a
...And forgot to check in build-llvm.pl. Sigh.
...
llvm-svn: 143586
2011-11-02 23:09:23 +00:00
Eli Friedman
d1370791c2
Use native endianness for writing out character escapes to the result buffer for string literal parsing. No functional change on little-endian architectures; should fix test failures on PPC.
...
llvm-svn: 143585
2011-11-02 23:06:23 +00:00
Douglas Gregor
10f939c3db
Don't build member initializers for zero-length or incomplete arrays,
...
and don't try to destroy them, either. Fixes
<rdar://problem/10228639>.
llvm-svn: 143584
2011-11-02 23:04:16 +00:00
Fariborz Jahanian
10317eaa28
back out changes in r143399 and r143475.
...
rvale-references are captured by reference
in blocks. // rdar://9971124.
llvm-svn: 143583
2011-11-02 22:53:43 +00:00
Lang Hames
9929c423a1
Try to lower memset/memcpy/memmove to vector instructions on ARM where the alignment permits.
...
llvm-svn: 143582
2011-11-02 22:52:45 +00:00
Douglas Gregor
324dbd3b83
Don't encourage bug reports to the Clang mailing list. We have a bug
...
report link for that.
llvm-svn: 143581
2011-11-02 22:49:47 +00:00
Galina Kistanova
3246d3556b
Few corrections on the document page.
...
llvm-svn: 143578
2011-11-02 22:05:18 +00:00
Tobias Grosser
3fb4992221
ScopDetection: Add new SCEV Validator
...
The SCEV Validator is used to check if the bound of a loop can be translated
into a polyhedral constraint. The new validator is more general as the check
used previously and e.g. allows bounds like 'smax 1, %a'. At the moment, we
only allow signed comparisons. Also, the new validator is only used to verify
loop bounds. Memory accesses are still handled by the old validator.
llvm-svn: 143576
2011-11-02 21:40:08 +00:00
Tobias Grosser
1179afafca
TempScop: Remove SCEVAffFunc from LoopBoundInfo
...
This is not needed anymore -> Reduce impact of SCEVAffFunc.
llvm-svn: 143575
2011-11-02 21:37:51 +00:00
Tobias Grosser
65fa78e975
TempScopInfo: Print the original SCEV instead of using SCEVAffFunc
...
This is reducing the impact of SCEVAffFunc
llvm-svn: 143574
2011-11-02 21:37:06 +00:00
Chad Rosier
cdb008d117
In addition to dumping preprocessed source, dump a script with the command line
...
arguments that caused clang to crash.
rdar://8314451
llvm-svn: 143573
2011-11-02 21:29:05 +00:00
Sean Callanan
ef4ab810d1
Whoops, forgot to commit the updated .zip file.
...
llvm-svn: 143572
2011-11-02 21:03:45 +00:00
Nick Lewycky
000307fef9
I added the first test to run llvm-dwarfdump.
...
llvm-svn: 143571
2011-11-02 21:02:27 +00:00
Nick Lewycky
d1ee7f8cf1
Don't emit a directory entry for the value in DW_AT_comp_dir, that is always
...
implied by directory index zero.
llvm-svn: 143570
2011-11-02 20:55:33 +00:00
Douglas Gregor
07216d174e
Fix various minor issues find via unreachable code warnings, from
...
Ahmed Charles!
llvm-svn: 143569
2011-11-02 20:52:01 +00:00
Anna Zaks
42a4463091
[analyzer] Tweak the test script
...
Rename the pre_run_static_analyzer script into cleanup_run_static_analyzer
and use it to clean up after the reference build - which is done as part of
adding a new project to the system.
llvm-svn: 143568
2011-11-02 20:46:50 +00:00
Chandler Carruth
e0a89ab702
Add the newest Gentoo GCC version based on the reported installed
...
version in PR11298.
I hear-by apologize for adding yet more code to this monstrosity.
llvm-svn: 143567
2011-11-02 20:09:56 +00:00
Benjamin Kramer
4832e29795
Try to unbreak Makefile builds.
...
llvm-svn: 143566
2011-11-02 19:52:07 +00:00
Tobias Grosser
325569f716
docs: Fix two typos
...
llvm-svn: 143565
2011-11-02 19:51:04 +00:00
Daniel Dunbar
6c92223b37
build/Make: Update for rename of show-diagnostics.
...
llvm-svn: 143564
2011-11-02 19:48:19 +00:00
Michael J. Spencer
1085ce6d45
object: Add operator < for SymbolRef and SectionRef.
...
llvm-svn: 143563
2011-11-02 19:33:41 +00:00
Michael J. Spencer
d0f5b0e194
object/COFF: Properly initalize uses of DataRefImpl.
...
llvm-svn: 143562
2011-11-02 19:33:26 +00:00
Michael J. Spencer
e03ea9cd71
Object/Archive: Add symbol table iteration.
...
llvm-svn: 143561
2011-11-02 19:33:12 +00:00
Sean Callanan
c832475cd2
Updated LLVM/Clang to pull in an MCJIT fix that
...
allows us to set __attribute__ ((used)) on expressions
that masquerade as methods. When we are stopped in
classes in anonymous namespaces, this fix (and enabling
__attribute__ ((used)) on the method) will allow
expressions to run.
llvm-svn: 143560
2011-11-02 18:09:01 +00:00
Chad Rosier
9cf803c4bf
Add support for comparing integer non-legal types.
...
llvm-svn: 143559
2011-11-02 18:08:25 +00:00
Owen Anderson
fbb704f551
Fix the issue that r143552 was trying to address the _right_ way. One-register lists are legal on LDM/STM instructions, but we should not print the PUSH/POP aliases when they appear. This fixes round tripping on this instruction.
...
llvm-svn: 143557
2011-11-02 18:03:14 +00:00