summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Convert RecordLayout::DataSize to CharUnits from bits, eliminating twoKen Dyck2011-02-114-15/+16
| | | | | | | unnecessary calls to RoundUpToAlignment. No changes to functionality intended. llvm-svn: 125356
* Add an entry for CMP (immediate) (Encoding T1) to the g_thumb_opcodes table.Johnny Chen2011-02-112-4/+58
| | | | llvm-svn: 125333
* Add a helper function, ASTContext::toBits(), that converts sizes inKen Dyck2011-02-116-27/+22
| | | | | | | CharUnits to sizes in bits, and use it to tidy up the places where the conversion was done explicitly. llvm-svn: 125332
* Use raw_ostream instead of raw_svector_ostream.Rafael Espindola2011-02-114-33/+33
| | | | llvm-svn: 125330
* Add a helper method AddWithCarry() to the EmulateInstructionARM class.Johnny Chen2011-02-112-0/+31
| | | | llvm-svn: 125329
* build/compiler-rt: Fake Clang into using the right assembler to build the ARMDaniel Dunbar2011-02-111-1/+11
| | | | | | bits for the runtime libraries. llvm-svn: 125328
* Remove trailing whitespace.Jim Grosbach2011-02-113-18/+18
| | | | llvm-svn: 125327
* Eliminate a major performance problem with chained PCH, where we wereDouglas Gregor2011-02-111-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | causing the deserialization of a large number of declarations when writing the visible-updates record for the translation unit in C. This takes us from: *** AST File Statistics: 2 stat cache hits 6 stat cache misses 1/64463 source location entries read (0.001551%) 15606/16956 types read (92.038216%) 59266/89334 declarations read (66.342041%) 38952/61393 identifiers read (63.446976%) 0/7778 selectors read (0.000000%) 24192/34644 statements read (69.830276%) 388/8809 macros read (4.404586%) 2095/5189 lexical declcontexts read (40.373867%) 0/4587 visible declcontexts read (0.000000%) 0/7716 method pool entries read (0.000000%) 0 method pool misses to *** AST File Statistics: 2 stat cache hits 6 stat cache misses 1/64463 source location entries read (0.001551%) 26/16956 types read (0.153338%) 18/89334 declarations read (0.020149%) 145/61393 identifiers read (0.236183%) 0/7778 selectors read (0.000000%) 21/34644 statements read (0.060617%) 0/8809 macros read (0.000000%) 0/5189 lexical declcontexts read (0.000000%) 0/4587 visible declcontexts read (0.000000%) 0/7716 method pool entries read (0.000000%) 0 method pool misses when generating a chained PCH for a header that #includes Cocoa.h (from a PCH file) and adds one simple function declaration. The generated PCH file is now only 9580 bytes (down from > 2MB). llvm-svn: 125326
* Add a test for the LSR issue exposed by r125254.Cameron Zwarich2011-02-111-0/+32
| | | | llvm-svn: 125325
* Implement AST/PCH chaining support for macro definitions. Previously,Douglas Gregor2011-02-113-3/+22
| | | | | | | | | | | | | | we would deserialize all of the macro definitions we knew about while serializing the macro definitions at the end of the AST/PCH file. Even though we skipped most of them (since they were unchanged), it's still a performance problem. Now, we do the standard AST/PCH chaining trick: watch what identifiers are deserialized as macro names, and consider only those identifiers (along with macro definitions that have been deserialized/written in the source) when serializing the preprocessor state. llvm-svn: 125324
* Fix another typo.Johnny Chen2011-02-111-1/+1
| | | | llvm-svn: 125323
* Fix a typo.Johnny Chen2011-02-111-1/+1
| | | | llvm-svn: 125322
* Use raw_svector_ostream in more places in the mangler.Rafael Espindola2011-02-105-72/+88
| | | | llvm-svn: 125321
* Add TestConstStrings.py under foundation dir for testing expression parser ↵Johnny Chen2011-02-103-1/+68
| | | | | | | | on objective-c strings and constant strings. llvm-svn: 125320
* Tolerate degenerate phi nodes that can occur in the middle of optimizationNick Lewycky2011-02-102-0/+28
| | | | | | passes. Fixes PR9112. Patch by Jakub Staszak! llvm-svn: 125319
* If we can't avoid running loop-simplify twice for now, at least avoid runningCameron Zwarich2011-02-101-0/+3
| | | | | | iv-users twice. llvm-svn: 125318
* Rename 'loopsimplify' to 'loop-simplify'.Cameron Zwarich2011-02-1021-24/+24
| | | | llvm-svn: 125317
* Add mips o32 tests again with the hope that the buildbot won't complaint againBruno Cardoso Lopes2011-02-101-0/+322
| | | | llvm-svn: 125316
* [AVX] Implement 256-bit vector lowering for SCALAR_TO_VECTOR. ThisDavid Greene2011-02-101-0/+18
| | | | | | | largely completes support for 128-bit fallback lowering for code that is not 256-bit ready. llvm-svn: 125315
* Fixes for two bugs:Sean Callanan2011-02-102-7/+45
| | | | | | | | | | | | | - Objective-C constant strings were being NULL-terminated erroneously. - Empty Objective-C constant strings were not being generated correctly. Also added the template for a test of these fixes. llvm-svn: 125314
* Cleaned up some parameter types and names.Johnny Chen2011-02-101-7/+7
| | | | llvm-svn: 125313
* Namings are important. Renamed Bits32(const uint32_t val, uint32_t bit) to ↵Johnny Chen2011-02-102-28/+28
| | | | | | | | Bit32(val, bit) and SetBits32(uint32_t &bits, uint32_t bit, uint32_t val) to SetBit32(bits, bit, val). llvm-svn: 125312
* fix stupid type-oHoward Hinnant2011-02-101-1/+1
| | | | llvm-svn: 125311
* Add braces to quiet a gcc warning.Matt Beaumont-Gay2011-02-101-1/+2
| | | | llvm-svn: 125309
* Remove the test to silence the buildbot, will check it in again with a ↵Bruno Cardoso Lopes2011-02-101-321/+0
| | | | | | proper fix soon llvm-svn: 125305
* Clean trailing whitespace.Owen Anderson2011-02-101-20/+20
| | | | llvm-svn: 125304
* Some refactorings to use the convenience function: Bits32(const uint32_t ↵Johnny Chen2011-02-101-23/+23
| | | | | | value, const uint32_t bit). llvm-svn: 125303
* Add some comment markers.Johnny Chen2011-02-101-0/+12
| | | | llvm-svn: 125302
* Add a generic EmulateMovRdRm() method and modify/add entries to the ↵Johnny Chen2011-02-104-15/+82
| | | | | | | | g_thumb_opcodes table. Also add some more defines and convenience functions. llvm-svn: 125300
* Fix think-o I committed without testing, shameful.Daniel Dunbar2011-02-101-1/+1
| | | | llvm-svn: 125299
* Fix a gcc Wuninitialized false positive.Daniel Dunbar2011-02-101-1/+1
| | | | llvm-svn: 125298
* When we're writing macro definitions to an AST/PCH File, sort theDouglas Gregor2011-02-102-7/+29
| | | | | | | macro definitions by macro name first. That way, we'll get a stable ordering in the AST/PCH file. llvm-svn: 125297
* For -Woverloaded-virtual take into account canonical methods. Fixes ↵Argyrios Kyrtzidis2011-02-102-2/+16
| | | | | | rdar://8979966 & http://llvm.org/PR9182. llvm-svn: 125296
* Rearrange the order of g_thumb_opcodes entries.Johnny Chen2011-02-101-3/+4
| | | | llvm-svn: 125295
* Fix family-friendly-o, tsk tsk.Daniel Dunbar2011-02-101-1/+1
| | | | llvm-svn: 125293
* Fix a lot of o32 CC issues and add a bunch of tests. Patch by Akira Hatanaka ↵Bruno Cardoso Lopes2011-02-102-47/+392
| | | | | | with some small modifications by me. llvm-svn: 125292
* Installed __has_feature(is_convertible_to) and __has_feature(is_base_of)Howard Hinnant2011-02-101-6/+6
| | | | llvm-svn: 125290
* IRgen: Fix an immediate-exit-from-fn style nit.Daniel Dunbar2011-02-101-5/+4
| | | | llvm-svn: 125289
* Implement two related optimizations that make de-serialization ofDouglas Gregor2011-02-1010-49/+393
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | AST/PCH files more lazy: - Don't preload all of the file source-location entries when reading the AST file. Instead, load them lazily, when needed. - Only look up header-search information (whether a header was already #import'd, how many times it's been included, etc.) when it's needed by the preprocessor, rather than pre-populating it. Previously, we would pre-load all of the file source-location entries, which also populated the header-search information structure. This was a relatively minor performance issue, since we would end up stat()'ing all of the headers stored within a AST/PCH file when the AST/PCH file was loaded. In the normal PCH use case, the stat()s were cached, so the cost--of preloading ~860 source-location entries in the Cocoa.h case---was relatively low. However, the recent optimization that replaced stat+open with open+fstat turned this into a major problem, since the preloading of source-location entries would now end up opening those files. Worse, those files wouldn't be closed until the file manager was destroyed, so just opening a Cocoa.h PCH file would hold on to ~860 file descriptors, and it was easy to blow through the process's limit on the number of open file descriptors. By eliminating the preloading of these files, we neither open nor stat the headers stored in the PCH/AST file until they're actually needed for something. Concretely, we went from *** HeaderSearch Stats: 835 files tracked. 364 #import/#pragma once files. 823 included exactly once. 6 max times a file is included. 3 #include/#include_next/#import. 0 #includes skipped due to the multi-include optimization. 1 framework lookups. 0 subframework lookups. *** Source Manager Stats: 835 files mapped, 3 mem buffers mapped. 37460 SLocEntry's allocated, 11215575B of Sloc address space used. 62 bytes of files mapped, 0 files with line #'s computed. with a trivial program that uses a chained PCH including a Cocoa PCH to *** HeaderSearch Stats: 4 files tracked. 1 #import/#pragma once files. 3 included exactly once. 2 max times a file is included. 3 #include/#include_next/#import. 0 #includes skipped due to the multi-include optimization. 1 framework lookups. 0 subframework lookups. *** Source Manager Stats: 3 files mapped, 3 mem buffers mapped. 37460 SLocEntry's allocated, 11215575B of Sloc address space used. 62 bytes of files mapped, 0 files with line #'s computed. for the same program. llvm-svn: 125286
* Adjust the object files to be linked in when mcount profilingRoman Divacky2011-02-101-7/+33
| | | | | | is specified in the FreeBSD linker driver. llvm-svn: 125285
* [AVX] Implement 256-bit vector lowering for EXTRACT_VECTOR_ELT.David Greene2011-02-101-1/+35
| | | | llvm-svn: 125284
* Add a testcase for the mcount profiling.Roman Divacky2011-02-101-0/+4
| | | | llvm-svn: 125283
* Implement mcount profiling, enabled via -pg.Roman Divacky2011-02-109-7/+50
| | | | llvm-svn: 125282
* Drop the 'InBits' part from the name of RecordSizeInBits as the value is inKen Dyck2011-02-101-5/+5
| | | | | | character units. llvm-svn: 125281
* Eliminate some signed-to-unsigned comparision warnings introduced inKen Dyck2011-02-101-2/+4
| | | | | | r125156. llvm-svn: 125280
* ptx: add passing parameter to kernel functionsChe-Liang Chiou2011-02-109-62/+104
| | | | llvm-svn: 125279
* CMake: LLVM_LIT_TOOLS_DIR is needed only on Win32 hosts to use GnuWin32 tools.NAKAMURA Takumi2011-02-101-2/+3
| | | | | | Unixen and Cygwin do not need it. llvm-svn: 125277
* CMake: LLVM_NO_RTTI must be obsolete now!NAKAMURA Takumi2011-02-1021-42/+0
| | | | llvm-svn: 125275
* CMake: LLVM_NO_RTTI must be obsolete now!NAKAMURA Takumi2011-02-101-2/+0
| | | | llvm-svn: 125274
* lit/TestFormats.py: Unittests may be found with suffix .exe also on Cygwin.NAKAMURA Takumi2011-02-101-2/+2
| | | | llvm-svn: 125273
OpenPOWER on IntegriCloud