summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Rework some .ARM.attribute work for improved gcc compatibility.Jason W Kim2011-02-074-30/+119
| | | | | | | Unified EmitTextAttribute for both Asm and Obj emission (.cpu only) Added necessary cortex-A8 related attrs for codegen compat tests. llvm-svn: 124995
* teach instsimplify to transform (X / Y) * Y to XChris Lattner2011-02-062-3/+25
| | | | | | when the div is an exact udiv. llvm-svn: 124994
* rename test.Chris Lattner2011-02-061-0/+0
| | | | llvm-svn: 124993
* enhance vmcore to know that udiv's can be exact, and add a trivialChris Lattner2011-02-0614-32/+110
| | | | | | | | instcombine xform to exercise this. Nothing forms exact udivs yet though. This is progress on PR8862 llvm-svn: 124992
* Remove premature optimization that avoided calculating argument weightsEric Christopher2011-02-061-5/+0
| | | | | | | | | if we weren't going to inline the function. The rest of the code using this was removed. Fixes PR9154. llvm-svn: 124991
* Simplify test, as suggested by Chris.Anders Carlsson2011-02-061-6/+2
| | | | llvm-svn: 124990
* Remove a virtual inheritance case that clang can devirtualize fully now.Anders Carlsson2011-02-061-21/+0
| | | | llvm-svn: 124989
* Add another test that we can fully devirtualize now.Anders Carlsson2011-02-061-0/+25
| | | | llvm-svn: 124988
* When loading from a constant, fold inttoptr if the integer type and the ↵Anders Carlsson2011-02-062-0/+28
| | | | | | resulting pointer type both have the same size. llvm-svn: 124987
* Fix self-host; if a thunk already exists and has available_externally ↵Anders Carlsson2011-02-062-2/+25
| | | | | | linkage, we should change its linkage instead of asserting. llvm-svn: 124986
* Don't define NDEBUG on MSVC_IDE and XCode builds. Fixes PR9155.Oscar Fuentes2011-02-061-1/+3
| | | | llvm-svn: 124985
* When building with optimizations, emit thunks with available_externally ↵Anders Carlsson2011-02-063-6/+113
| | | | | | linkage so devirtualized function calls can also be de-thunked. llvm-svn: 124984
* Simplify thunks code.Anders Carlsson2011-02-062-9/+7
| | | | llvm-svn: 124983
* CLANG_BINARY_DIR is not the same thing as LLVM_BINARY_DIR when ClangOscar Fuentes2011-02-061-2/+2
| | | | | | is built as part of LLVM. llvm-svn: 124982
* add some missing builtins.Chris Lattner2011-02-061-0/+6
| | | | llvm-svn: 124981
* Simplify away redundant test, and document what's going on.Nick Lewycky2011-02-061-2/+5
| | | | llvm-svn: 124977
* Remove specialized comparison of InlineAsm objects. They're uniqued on creationNick Lewycky2011-02-061-6/+2
| | | | | | now, and this wasn't comparing some of their relevant bits anyhow. llvm-svn: 124976
* Support running tests from the VS IDE and XCode.Oscar Fuentes2011-02-051-2/+4
| | | | | | Untested, but should work :) llvm-svn: 124975
* Remove the clang++ symlink with `make clean'.Oscar Fuentes2011-02-051-2/+5
| | | | llvm-svn: 124974
* Add a __has_feature check for default template arguments in functionDouglas Gregor2011-02-053-0/+15
| | | | | | templates, a C++0x feature. llvm-svn: 124973
* CMake: libclang shall be named libclang.so, not liblibclang.so.Oscar Fuentes2011-02-051-0/+1
| | | | | | | It is not possible to simply change that target name to `clang' because we already have one. llvm-svn: 124972
* Improve our uniquing of file entries when files are re-saved or areDouglas Gregor2011-02-059-45/+91
| | | | | | | | | | | | | | overridden via remapping. Thus, when we create a "virtual" file in the file manager, we still stat() the real file that lives behind it so that we can provide proper uniquing based on inodes. This helps keep the file manager much more consistent. To take advantage of this when reparsing files in libclang, we disable the use of the stat() cache when reparsing or performing code completion, since the stat() cache is very likely to be out of date in this use case. llvm-svn: 124971
* Basic implementation of inherited constructors. Only generates declarations, ↵Sebastian Redl2011-02-0511-21/+421
| | | | | | and probably only works for very basic use cases. llvm-svn: 124970
* Support `make clang-test' when Clang is compiled outside of LLVM.Oscar Fuentes2011-02-051-5/+11
| | | | | | | | | | | This may not work on build platforms that place the binaries on special folders ($build_dir/bin/Release/) such as the VS IDE and XCode. For fixing this it is necessary to add a lit.py configuration option for saying where the Clang binaries are, and apply to that path the same magit that is used with the path to the LLVM tools binary directory. Doing this requires a bit of autoconf work. llvm-svn: 124969
* Moved more stuff to HandleLLVMOptions.cmakeOscar Fuentes2011-02-052-21/+21
| | | | llvm-svn: 124968
* Pass a 'ForVTable' flag to GetAddrOfThunk and pass it along to ↵Anders Carlsson2011-02-053-6/+34
| | | | | | | | GetOrCreateLLVMFunction so that we won't assert when building a thunk for an implicit virtual member function that is not marked used. llvm-svn: 124967
* Fix another warning.Anders Carlsson2011-02-051-1/+1
| | | | llvm-svn: 124961
* Fix a clang warning.Anders Carlsson2011-02-051-1/+2
| | | | llvm-svn: 124960
* python bindings: Add support for different kind of completion chunksTobias Grosser2011-02-051-6/+81
| | | | llvm-svn: 124959
* python bindings: Get the string representation of a CompletionChunkTobias Grosser2011-02-051-9/+84
| | | | llvm-svn: 124958
* python bindings: Add CodeCompletionResultsTobias Grosser2011-02-051-1/+94
| | | | llvm-svn: 124957
* python bindings: Add support for translationUnit.reparse().Tobias Grosser2011-02-052-6/+47
| | | | | | | | This is the first step to make the clang_complete vim plugin work with libclang. Reparsing improves parsing time from 0.8 to 0.25 secs for one of my LLVM .cpp files. llvm-svn: 124956
* python bindings: Include local headers the right way.Tobias Grosser2011-02-051-4/+3
| | | | llvm-svn: 124955
* python bindings: Remove unneeded instructionTobias Grosser2011-02-051-2/+0
| | | | llvm-svn: 124954
* python bindings: fix Diagnostics.range iteratorTobias Grosser2011-02-052-0/+25
| | | | | | | The iterator did never throw an IndexError. It was therefore not possible to use it in a normal foreach loop as that loop would never stop. llvm-svn: 124953
* python bindings: Use python Diagnostics as function argumentsTobias Grosser2011-02-051-14/+17
| | | | | | | | | | | | This improves the readability of the code and fixes one testsuite bug. The bug happend, because we only stored the pointer to the diagnostic in the FixIt iterator, but not the python Diagnostic object. So it could happen that the FixIt iterator still exists, but the python Diagnostic object is freed. However, as the python Diagnostic is freed the pointer to the diagnostic is also freed and the FixIt iterator is referencing a freed pointer. llvm-svn: 124952
* python bindings: Synchronize cursor kindsTobias Grosser2011-02-051-0/+89
| | | | | | | clang-c/Index.h contained cursor kinds not yet available in the python bindings. Contributed-By: jmuizelaar@mozilla.com llvm-svn: 124951
* Windows/DynamicLibrary.inc: Split explicit symbols into explicit_symbols.inc.NAKAMURA Takumi2011-02-057-60/+1585
| | | | | | | config.h.* have conditions whether each symbol is defined or not. Autoconf and CMake may check symbols in libgcc.a for JIT on Mingw. llvm-svn: 124950
* Target/X86: Tweak allocating shadow area (aka home) on Win64. It must be ↵NAKAMURA Takumi2011-02-057-29/+37
| | | | | | enough for caller to allocate one. llvm-svn: 124949
* lib/Target/X86/X86ISelLowering.cpp: Introduce a new variable "IsWin64". No ↵NAKAMURA Takumi2011-02-051-3/+4
| | | | | | functional changes. llvm-svn: 124948
* lib/Target/X86/X86JITInfo.cpp: Add Win64 stuff.NAKAMURA Takumi2011-02-051-0/+8
| | | | llvm-svn: 124947
* Target/X86: Fix whitespace.NAKAMURA Takumi2011-02-053-7/+7
| | | | llvm-svn: 124946
* Windows/Program.inc: Quote arguments when dubious characters (used by ↵NAKAMURA Takumi2011-02-051-1/+1
| | | | | | cmd.exe or MSYS shell) are included to invoke CreateProcess(). Thanks to Danil Malyshev. llvm-svn: 124945
* Fixup on setlinebuf() patch to make it work.Greg Clayton2011-02-052-6/+3
| | | | llvm-svn: 124944
* Configuration support for setlinebuf support from Kirk Beitz.Greg Clayton2011-02-055-2/+13
| | | | llvm-svn: 124943
* Apple specific fix for Host.cpp from Kirk Beitz.Greg Clayton2011-02-051-2/+1
| | | | llvm-svn: 124942
* Apple specific change from Kirk Beitz.Greg Clayton2011-02-051-1/+6
| | | | llvm-svn: 124941
* [analyzer] Fix a false positive of the 'self' initialization checker.Argyrios Kyrtzidis2011-02-052-4/+33
| | | | | | | | | | | | | | | | | | | A common pattern in classes with multiple initializers is to put the subclass's common initialization bits into a static function that receives the value of 'self', e.g: if (!(self = [super init])) return nil; if (!(self = _commonInit(self))) return nil; It was reported that 'self' was not set to the result of [super init]. Until we can use inter-procedural analysis, in such a call, transfer the ObjCSelfInitChecker flags associated with 'self' to the result of the call. Fixes rdar://8937441 & http://llvm.org/PR9094 llvm-svn: 124940
* When the out-of-line definition differs from the declaration in the return type,Argyrios Kyrtzidis2011-02-053-1/+12
| | | | | | | | | say "out-of-line definition differ from the declaration in the return type" instead of the silly "functions that differ only in their return type cannot be overloaded". Addresses rdar://7980179. llvm-svn: 124939
* A tool for examining a mach process and its threads.Greg Clayton2011-02-051-0/+104
| | | | llvm-svn: 124937
OpenPOWER on IntegriCloud