Ted Kremenek
669669f8d3
Silence dead store warning, and fix indentation.
...
llvm-svn: 153986
2012-04-04 00:55:25 +00:00
Ted Kremenek
e69340c42c
Remove dead assignment to local variable.
...
llvm-svn: 153985
2012-04-04 00:55:21 +00:00
Pete Cooper
e7bff68a5e
Removed useless switch for default case when switch was covering all the enum values
...
llvm-svn: 153984
2012-04-04 00:53:04 +00:00
Douglas Gregor
9781893507
Add feature check "cxx_local_type_template_args" describing support
...
for templates with local template arguments, from Michel Morin! Fixes
PR12337.
llvm-svn: 153983
2012-04-04 00:48:39 +00:00
Douglas Gregor
6a37784a35
Eliminate obvious use-after-free. Fixes PR12433 / <rdar://problem/11168333>.
...
llvm-svn: 153982
2012-04-04 00:34:49 +00:00
Howard Hinnant
7e5b4c9328
Put std::piecewise_construct_t back into the dylib for ABI stability. When clients are in C++11/constexpr mode this will be safely ignored because piecewise_construct is then declared with internal linkage.
...
llvm-svn: 153981
2012-04-03 23:45:46 +00:00
Bob Wilson
3e66d73259
Fix the install location for the Embedded makefile target.
...
svn r145378 inadvertently changed the destination for the Embedded target
in the makefile. Add a "/Developer" suffix to DSTROOT to compensate.
llvm-svn: 153980
2012-04-03 23:44:39 +00:00
Michael J. Spencer
afc0d6a36f
Sorry about that. MSVC seems to accept just about any random string you give it ;/
...
llvm-svn: 153979
2012-04-03 23:36:44 +00:00
Bob Wilson
9d12ffcd71
Remove dead code for installing libLTO when building llvmCore.
...
llvm-svn: 153978
2012-04-03 23:13:26 +00:00
Michael J. Spencer
22120c47a7
Add YAML parser to Support.
...
llvm-svn: 153977
2012-04-03 23:09:22 +00:00
Pete Cooper
9511ec86f9
Add VSELECT to LegalizeVectorTypes::ScalariseVectorResult. Previously it would crash if it encountered a 1 element VSELECT. Solution is slightly more complicated than just creating a SELET as we have to mask or sign extend the vector condition if it had different boolean contents from the scalar condition. Fixes <rdar://problem/11178095>
...
llvm-svn: 153976
2012-04-03 22:57:55 +00:00
Pete Cooper
b98934cf72
Removed one last bad continue statement meant to be removed in r153914.
...
llvm-svn: 153975
2012-04-03 22:18:49 +00:00
Bob Wilson
8bbd98df00
When building llvmCore, pass the SDKROOT and -arch setting to configure.
...
So far all of configure tests have been run against the default SDK and
architecture, regardless of what is actually being built. We've gotten
lucky until now. <rdar://problem/11112479>
llvm-svn: 153972
2012-04-03 21:50:26 +00:00
Bob Wilson
5512ec8bae
Remove a reference to the C backend.
...
llvm-svn: 153971
2012-04-03 21:50:24 +00:00
Nick Lewycky
c392148414
Remove more redundant lookups. Add a new "all_lookups_iterator" which provides
...
a view over the contents of a DeclContext without exposing the implementation
details of the StoredDeclsMap. Use this in LookupVisibleDecls to find the
visible declarations. Fixes PR12339!
llvm-svn: 153970
2012-04-03 21:44:08 +00:00
Greg Clayton
3c2c4bb2ce
Added a platform agnostic symbolication python module that can be used by any targets. Then modified the darwin "crashlog.py" to use this agnostic info and the new functionality and classes.
...
llvm-svn: 153969
2012-04-03 21:35:43 +00:00
Howard Hinnant
b2e9f19caf
constexpr support for <utility>. Patch contributed by Jonathan Sauer.
...
llvm-svn: 153968
2012-04-03 21:09:48 +00:00
Nick Lewycky
13668f2083
Don't treat synthesized ivars as being in the base class for the purpose of
...
looking up visible decls.
llvm-svn: 153967
2012-04-03 20:26:45 +00:00
Chad Rosier
2a02fe1bb2
Fix an issue in SimplifySetCC() specific to vector comparisons.
...
When folding X == X we need to check getBooleanContents() to determine if the
result is a vector of ones or a vector of negative ones.
I tried creating a test case, but the problem seems to only be exposed on a
much older version of clang (around r144500).
rdar://10923049
llvm-svn: 153966
2012-04-03 20:11:24 +00:00
Anton Korobeynikov
d0b458d694
Set soname for FreeBSD as well.
...
Patch by Bernard Cafarelli!
llvm-svn: 153965
2012-04-03 19:48:31 +00:00
Michael J. Spencer
765792d5d1
Remove trailing whitespace.
...
llvm-svn: 153964
2012-04-03 18:40:27 +00:00
Michael J. Spencer
e6203a57b5
Steal LLVM.h from Clang. This brings in very commonly used LLVM ADT/Support
...
types into the lld namespace.
llvm-svn: 153963
2012-04-03 18:39:40 +00:00
Kaelyn Uhrain
f4657d5bd7
Replace the workaround from r153445 with a proper fix.
...
Infinite recursion was happening when DiagnoseInvalidRedeclaration
called ActOnFunctionDeclarator to check if a typo correction works when
the correction was just to the nested-name-specifier because the wrong
DeclContext was being passed in. Unlike a number of functions
surrounding typo correction, the DeclContext passed in for a function is
the context of the function name after applying any nested name
specifiers, not the lexical DeclContext where the
function+nested-name-specifier appears.
llvm-svn: 153962
2012-04-03 18:20:11 +00:00
Eric Christopher
b81e2b403c
Fix thinko check for number of operands to be the one that actually
...
might have more than 19 operands. Add a testcase to make sure I
never screw that up again.
Part of rdar://11026482
llvm-svn: 153961
2012-04-03 17:55:42 +00:00
Fariborz Jahanian
08ed8921c7
modern objective-c translator: rewriter linkage spec.
...
// rdar://11169733
llvm-svn: 153960
2012-04-03 17:35:38 +00:00
Argyrios Kyrtzidis
f1b64c6198
Correct handling of _Pragma macro inside a macro argument.
...
If we are pre-expanding a macro argument don't actually "activate"
the pragma at that point, activate the pragma whenever we encounter
it again in the token stream.
This ensures that we will activate it in the correct location
or that we will ignore it if it never enters the token stream, e.g:
\#define EMPTY(x)
\#define INACTIVE(x) EMPTY(x)
INACTIVE(_Pragma("clang diagnostic ignored \"-Wconversion\""))
This also fixes the crash in rdar://11168596.
llvm-svn: 153959
2012-04-03 16:47:40 +00:00
Lang Hames
ffa52d2ae2
Matrix simplification in PBQP may push infinite costs onto register options.
...
The colorability heuristic should count these as denied registers.
No test case - this exposed a bug on an out-of-tree target.
llvm-svn: 153958
2012-04-03 16:27:16 +00:00
Dylan Noblesmith
7a3973d3e0
ARMDisassembler: drop bogus dependency on ARMCodeGen
...
And indirectly, a dependency on most of the core LLVM optimization
libraries.
llvm-svn: 153957
2012-04-03 15:48:14 +00:00
Dylan Noblesmith
6338485d59
Object: drop bogus VMCore dependency
...
llvm-svn: 153956
2012-04-03 15:48:10 +00:00
Howard Hinnant
6e3e78acba
Updated documentation contributed by Christopher Jefferson.
...
llvm-svn: 153955
2012-04-03 15:08:42 +00:00
Tobias Grosser
8239a4cadf
CodeGen: Remove unused declaration
...
llvm-svn: 153954
2012-04-03 12:37:14 +00:00
Tobias Grosser
0905a23806
CodeGen: Recreate old ivs with the original type
...
To avoid overflows we still use a larger type (i64) while calculating the value
of the old ivs. However, we truncate the result to the type of the old iv when
providing it to the new code.
A corresponding test case is added to the polly test suite. Also, a failing test
case is fixed.
This fixes PR12311.
Contributed by: Tsingray Liu <tsingrayliu@gmail.com>
llvm-svn: 153952
2012-04-03 12:24:32 +00:00
Bill Wendling
e2cf674310
The speedup doesn't appear to have been from this, but was an anomaly of my testing machine.
...
llvm-svn: 153951
2012-04-03 11:19:21 +00:00
Bill Wendling
dd91e73409
Reserve space for the eventual filling of the vector. This gives a small speedup.
...
llvm-svn: 153949
2012-04-03 10:50:09 +00:00
Hongbin Zheng
9270a8875a
www: Fix typo, replace "LD_LBIRARY_PATH" by "LD_LIBRARY_PATH" in get_started.
...
llvm-svn: 153948
2012-04-03 09:15:52 +00:00
Bill Wendling
d53b5dedb2
Initialize ivars in the correct order.
...
llvm-svn: 153947
2012-04-03 08:46:13 +00:00
Bill Wendling
9e5bf87516
Possibly too soon for this commit.
...
llvm-svn: 153946
2012-04-03 08:45:33 +00:00
Bill Wendling
90de801caa
Revert accidental checkin.
...
llvm-svn: 153945
2012-04-03 08:44:00 +00:00
Bill Wendling
c08a5e7e8b
Possibly too soon for this change.
...
llvm-svn: 153944
2012-04-03 08:41:55 +00:00
Bill Wendling
f0146cb3d3
Use the path to the header file. Use an integer instead of NULL. And get rid of a superfluous 'default' label.
...
llvm-svn: 153943
2012-04-03 07:51:16 +00:00
Bill Wendling
84ddbc57ee
The option is 'NoInlineDefine.'
...
llvm-svn: 153942
2012-04-03 07:50:37 +00:00
Bill Wendling
ed24dcc05f
Use integers instead of NULL.
...
llvm-svn: 153941
2012-04-03 07:50:11 +00:00
Bill Wendling
542f2429f3
Spell 'DW_TAG_APPLE_property' with the correct capitalization.
...
llvm-svn: 153940
2012-04-03 07:49:34 +00:00
Nadav Rotem
269703f983
Add an additional testcase which checks ops with multiple users.
...
llvm-svn: 153939
2012-04-03 07:39:36 +00:00
Anton Korobeynikov
325e92668b
Make PPCCompilationCallbackC function to be static, so there will be no need to issue call via
...
PLT when LLVM is built as shared library. This mimics the X86 backend towards the approach.
llvm-svn: 153938
2012-04-03 06:59:28 +00:00
Craig Topper
9c252ebe4c
Tidy up spacing in some tablegen outputs.
...
llvm-svn: 153937
2012-04-03 06:52:47 +00:00
Hongbin Zheng
da4138d105
www: Append path instead overwrite path when exporting the path of pocc.
...
llvm-svn: 153936
2012-04-03 06:29:27 +00:00
Craig Topper
7629d63bc4
Add support for AVX enhanced comparison predicates. Patch from Kay Tiong Khoo.
...
llvm-svn: 153935
2012-04-03 05:20:24 +00:00
Hongbin Zheng
eedc49c3d4
www: Fix typo in the setting LD_LBIRARY_PATH command, as pointed out by
...
Dmitry N. Mikushin.
llvm-svn: 153934
2012-04-03 04:39:47 +00:00
Ted Kremenek
efcfbd71d1
Rework ProgramPoint to bit-mangle the 'Kind' into both Data pointers and the LocationContext. After switching to PointerIntPair, it didn't look like a safe assumption to use the lower 3 bits of the LocationContext* field. Thanks to Jordy Rose and Benjamin Kramer for their feedback.
...
llvm-svn: 153933
2012-04-03 04:25:05 +00:00