Skip to content
  1. Jun 16, 2012
  2. Jun 15, 2012
  3. Jun 12, 2012
    • Hal Finkel's avatar
      Add PPC support for translating gcc-style -mcpu options into LLVM -target-cpu options. · 8eb59285
      Hal Finkel authored
      This functionality is based on what is done on ARM, and enables selecting PPC CPUs
      in a way compatible with gcc's driver. Also, mirroring gcc (and what is done on x86),
      -mcpu=native support was added. This uses the host cpu detection from LLVM
      (which will also soon be updated by refactoring code currently in backend).
      
      In order for this to work, the target needs a list of valid CPUs -- we now accept all CPUs accepted by LLVM.
      A few preprocessor defines for common CPU types have been added.
      
      llvm-svn: 158334
      8eb59285
  4. Jun 10, 2012
  5. Jun 08, 2012
  6. Jun 06, 2012
    • Jordan Rose's avatar
      Add pedantic warning -Wempty-translation-unit (C11 6.9p1). · ccf43ca0
      Jordan Rose authored
      In standard C since C89, a 'translation-unit' is syntactically defined to have
      at least one "external-declaration", which is either a decl or a function
      definition. In Clang the latter gives us a declaration as well.
      
      The tricky bit about this warning is that our predefines can contain external
      declarations (__builtin_va_list and the 128-bit integer types). Therefore our
      AST parser now makes sure we have at least one declaration that doesn't come
      from the predefines buffer.
      
      Also, remove bogus warning about empty source files. This doesn't catch source
      files that only contain comments, and never fired anyway because of our
      predefines.
      
      PR12665 and <rdar://problem/9165548>
      
      llvm-svn: 158085
      ccf43ca0
  7. Jun 05, 2012
  8. Jun 04, 2012
  9. Jun 03, 2012
  10. May 31, 2012
  11. May 30, 2012
  12. May 29, 2012
  13. May 26, 2012
  14. May 24, 2012
  15. May 21, 2012
  16. May 20, 2012
  17. May 10, 2012
  18. May 04, 2012
  19. May 03, 2012
  20. May 01, 2012
  21. Apr 26, 2012
  22. Apr 25, 2012
  23. Apr 23, 2012
  24. Apr 18, 2012
  25. Apr 16, 2012
  26. Apr 12, 2012
  27. Apr 06, 2012
    • Benjamin Kramer's avatar
      SourceManager: Vectorize ComputeLineNumbers for SSE2. · 543036a4
      Benjamin Kramer authored
      This method is very hot, it is called when emitting diagnostics, in -E mode
      and for many #pragma handlers. It scans through the whole source file to
      count newlines, records and caches them in a vector.
      
      The speedup from vectorization isn't very large, as we fall back to bytewise
      scanning when we hit a newline. There might be a way to avoid leaving the sse
      loop but everything I tried didn't work out because a call to push_back
      clobbers xmm registers.
      
      About 2% speedup on average on "clang -E > /dev/null" of all .cpp files in
      clang's lib/Sema.
      
      llvm-svn: 154204
      543036a4
  28. Apr 05, 2012
  29. Apr 04, 2012
  30. Apr 03, 2012
  31. Mar 29, 2012
Loading