summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Changed test output comparison to be consistent with the way llvm-objdump ↵Hemant Kulkarni2012-10-023-10/+9
| | | | | | and llvm-readobj work. llvm-svn: 165048
* [PCH/Module] Change the map of file-level DeclIDs to use a FileIDArgyrios Kyrtzidis2012-10-022-6/+6
| | | | | | | as key instead of a SLocEntry pointer. This allows the array of file sorted declarations in a PCH/module to be deterministic. llvm-svn: 165047
* [libclang] When indexing an AST file, only deserialize the file levelArgyrios Kyrtzidis2012-10-028-26/+117
| | | | | | declarations of the current primary module. llvm-svn: 165046
* [ms-inline asm] Fixup test case to be valid ms-style asm. Fix whitespace.Chad Rosier2012-10-021-2/+4
| | | | llvm-svn: 165045
* Refactor clients of AnalyzerOptions::getBooleanOption() to haveTed Kremenek2012-10-022-25/+27
| | | | | | an intermediate helper method to query and populate the Optional value. llvm-svn: 165043
* Set the 'build clang only' flag when we're building only clang.Bill Wendling2012-10-021-0/+1
| | | | llvm-svn: 165042
* Tweak AnalyzerOptions::getOptionAsInteger() to populate the stringTed Kremenek2012-10-024-19/+19
| | | | | | | | | table, making it printable with the ConfigDump checker. Along the way, fix a really serious bug where the value was getting parsed from the string in code that was in an assert() call. This means in a Release-Asserts build this code wouldn't work as expected. llvm-svn: 165041
* Change AnalyzerOptions::mayInlineCXXMemberFunction to default populateTed Kremenek2012-10-023-4/+25
| | | | | | | the config string table. Also setup a test for dumping the analyzer configuration for C++. llvm-svn: 165040
* [Doc parsing]: Add available and deprecated attribute infoFariborz Jahanian2012-10-026-4/+56
| | | | | | to XML output. // rdar://12378879 llvm-svn: 165039
* Improve overflow detection in StringRef::getAsUnsignedInteger().Nick Kledzik2012-10-021-2/+2
| | | | llvm-svn: 165038
* Add a new isl based code generationTobias Grosser2012-10-023-16/+916
| | | | | | | | | This pass implements a new code generator that uses the code generation algorithm included in isl. For the moment the new code generation is limited to sequential code. llvm-svn: 165037
* Add an ast pretty printer pass based on the isl code generatorTobias Grosser2012-10-026-2/+305
| | | | llvm-svn: 165036
* Update isl to get the new code generationTobias Grosser2012-10-021-1/+1
| | | | llvm-svn: 165035
* Detect the isl code generation feature correctlyTobias Grosser2012-10-023-5/+5
| | | | llvm-svn: 165034
* Make vector::iterator and string::iterator more resilient against overly ↵Howard Hinnant2012-10-021-0/+32
| | | | | | generic relational operators. llvm-svn: 165033
* Fix another crasher in SROA, reported by Joel.Chandler Carruth2012-10-021-9/+32
| | | | | | | | | | | | | | | | | | We require that the indices into the use lists are stable in order to build fast lookup tables to locate a particular partition use from an operand of a PHI or select. This is (obviously in hind sight) incompatible with erasing elements from the array. Really, we don't want to erase anyways. It is expensive, and a rare operation. Instead, simply weaken the contract of the PartitionUse structure to allow null Use pointers to represent dead uses. Now we can clear out the pointer to mark things as dead, and all it requires is adding some 'continue' checks to the various loops. I'm still reducing a test case for this, as the test case I have is huge. I think this one I can get a nice test case for though, as it was much more deterministic. llvm-svn: 165032
* [ms-inline asm] Enhance the isSimpleMSAsm() function to handle operands with ↵Chad Rosier2012-10-021-24/+26
| | | | | | | | pointer size directives (e.g., dword ptr [eax]). llvm-svn: 165031
* Support for generating ELF objects on Windows.Andrew Kaylor2012-10-0257-59/+84
| | | | | | This adds 'elf' as a recognized target triple environment value and overrides the default generated object format on Windows platforms if that value is present. This patch also enables MCJIT tests on Windows using the new environment value. llvm-svn: 165030
* Fix test for r165028. It only generates that flag for source files now.Bill Wendling2012-10-021-1/+1
| | | | | | <rdar://problem/12401423> llvm-svn: 165029
* During LTO, we call 'dsymutil' when we compile source files. This necessitatesBill Wendling2012-10-022-4/+18
| | | | | | | | | | clang specifying a temporary file that it later cleans up so that it can survive the linking stage. However, when we compile object files during LTO we don't call 'dsymutil'. That's done at a different stage (if at all). We rely upon the linker to specify a unique name for the temporary file it generates. <rdar://problem/12401423> llvm-svn: 165028
* Fix a silly coding error on my part. The whole point of the speculatorChandler Carruth2012-10-021-16/+28
| | | | | | | | | | | | | | | being separate was that it can grow the use list. As a consequence, we can't use the iterator-pair interface, we need an index based interface. Expose such an interface from the AllocaPartitioning, and use it in the speculator. This should at least fix a use-after-free bug found by Duncan, and may fix some of the other crashers. I don't have a nice deterministic test case yet, but if I get a good one, I'll add it. llvm-svn: 165027
* Convert to FileCheck.Rafael Espindola2012-10-021-40/+46
| | | | llvm-svn: 165026
* No need to call the InitializeAll* functions.Chad Rosier2012-10-021-5/+0
| | | | llvm-svn: 165025
* FP_CONTRACT: Fix two tests for -Asserts.NAKAMURA Takumi2012-10-022-8/+5
| | | | llvm-svn: 165024
* [libclang] When indexing an AST file, only deserialize the preprocessing recordArgyrios Kyrtzidis2012-10-026-12/+48
| | | | | | entities of the current primary module. llvm-svn: 165023
* Add info in the preprocessing record whether an inclusion directiveArgyrios Kyrtzidis2012-10-025-6/+20
| | | | | | resulted in an automatic module import. llvm-svn: 165022
* [libclang] Even though we disable the preprocessing record during indexing,Argyrios Kyrtzidis2012-10-022-6/+20
| | | | | | make sure that it gets enabled for when a module needs to be created. llvm-svn: 165021
* [libclang] Implement the importedASTFile indexing callback to provideArgyrios Kyrtzidis2012-10-026-5/+82
| | | | | | info about imported modules. llvm-svn: 165020
* Fix broken tests.Benjamin Kramer2012-10-024-5/+6
| | | | llvm-svn: 165019
* Do not patch the instruction address when symbolizing the reports.Alexander Potapenko2012-10-023-33/+11
| | | | | | Instead, print the correct address at runtime. llvm-svn: 165018
* Fix PR13991: legalizing an overflowing multiplication operation is harder thanDuncan Sands2012-10-022-7/+29
| | | | | | | the add/sub case since in the case of multiplication you also have to check that the operation in the larger type did not overflow. llvm-svn: 165017
* Splitting this test case into two because the behavior for the calling ↵Aaron Ballman2012-10-022-6/+6
| | | | | | convention code is target-specific. llvm-svn: 165016
* Allowing individual targets to determine whether a given calling convention ↵Aaron Ballman2012-10-0216-22/+163
| | | | | | | | is allowed or ignored with warning. This allows for correct name mangling for x64 targets on Windows, which in turn allows for linking against the Win32 APIs. Fixes PR13782 llvm-svn: 165015
* [Sanitizer] fix line widthAlexey Samsonov2012-10-021-1/+2
| | | | llvm-svn: 165009
* [ASan] Change __asan_set_on_error_callback to weak overridable ↵Alexey Samsonov2012-10-025-21/+27
| | | | | | __asan_on_error, so that ASan would call the latter even if it finds the error early (i.e. during module initialization) llvm-svn: 165008
* Silencing an MSVC warning about */ being found outside of a comment.Aaron Ballman2012-10-021-1/+1
| | | | llvm-svn: 165007
* [*San]: handle EINTR.Evgeniy Stepanov2012-10-022-2/+13
| | | | llvm-svn: 165006
* Add redecls into their lexical DeclContext: this is what they assert on, and ↵Axel Naumann2012-10-022-1/+12
| | | | | | | | the merging should have set it correctly. This is especially relevant for templatedDecls that might be injected (and thus have their DeclContext set to) somewhere completely different. llvm-svn: 165005
* tsan: fix mac buildDmitry Vyukov2012-10-028-11/+14
| | | | llvm-svn: 165004
* [ASan] Add extern C for __asan_symbolize on WindowsAlexey Samsonov2012-10-021-1/+3
| | | | llvm-svn: 165003
* Enable programmatic provisioning of virtual module.map files (instead of ↵Axel Naumann2012-10-021-0/+5
| | | | | | | | writing out actual module.map files). Opens up the wonders of clang::Modules to tools - though they remain as experimental as before. llvm-svn: 165002
* Only those InterestingDecls that got added to the AST should be passed to ↵Axel Naumann2012-10-026-13/+39
| | | | | | the ASTConsumer. llvm-svn: 165001
* [Sanitizer/ASan] Simplify the code that prints and symbolizes stack traces. ↵Alexey Samsonov2012-10-027-92/+109
| | | | | | Fall back to module+offset if user-provided symbolizer failed. Use weak function __asan_symbolize instead of __asan_set_symbolize_callback in ASan interface, so that we're able to symbolize reports for errors that happen before the main() is called, for example, during module initialization. llvm-svn: 165000
* tsan: wait for pending reports before exitDmitry Vyukov2012-10-021-0/+4
| | | | llvm-svn: 164999
* tsan: output tid's in reportsDmitry Vyukov2012-10-0213-9/+20
| | | | llvm-svn: 164998
* tsan: run output tests in parallelDmitry Vyukov2012-10-021-2/+4
| | | | llvm-svn: 164997
* Add default JIT LIT variable.James Molloy2012-10-024-3/+8
| | | | | | Patch by David Tweed! llvm-svn: 164996
* -arch is a darwin-specific driver feature, use a triple instead in rewriter ↵Benjamin Kramer2012-10-021-3/+1
| | | | | | test. llvm-svn: 164995
* Force triple in test to unbreak it on non-darwin platforms.Benjamin Kramer2012-10-021-2/+2
| | | | llvm-svn: 164994
* Merge pending instantiations instead of overwriting existing ones.Axel Naumann2012-10-0213-85/+178
| | | | | | | | | | | Check whether a pending instantiation needs to be instantiated (or whether an instantiation already exists). Verify the size of the PendingInstantiations record (was only checking size of existing PendingInstantiations). Migrate Obj-C++ part of redecl-merge into separate test, now that this is growing. templates.mm: test that CodeGen has seen exactly one definition of template instantiations. redecl-merge.m: use "@" specifier for expected-diagnostics. llvm-svn: 164993
OpenPOWER on IntegriCloud