Skip to content
  1. Jul 30, 2013
  2. Jul 29, 2013
  3. Jul 27, 2013
  4. Jul 26, 2013
    • Bill Schmidt's avatar
      [PowerPC] Improve consistency in use of __ppc__, __powerpc__, etc. · 419f7c23
      Bill Schmidt authored
      Both GCC and LLVM will implicitly define __ppc__ and __powerpc__ for
      all PowerPC targets, whether 32- or 64-bit.  They will both implicitly
      define __ppc64__ and __powerpc64__ for 64-bit PowerPC targets, and not
      for 32-bit targets.  We cannot be sure that all other possible
      compilers used to compile Clang/LLVM define both __ppc__ and
      __powerpc__, for example, so it is best to check for both when relying
      on either inside the Clang/LLVM code base.
      
      This patch makes sure we always check for both variants.  In addition,
      it fixes one unnecessary check in lib/Target/PowerPC/PPCJITInfo.cpp.
      (At least one of __ppc__ and __powerpc__ should always be defined when
      compiling for a PowerPC target, no matter which compiler is used, so
      testing for them is unnecessary.)
      
      There are some places in the compiler that check for other variants,
      like __POWERPC__ and _POWER, and I have left those in place.  There is
      no need to add them elsewhere.  This seems to be in Apple-specific
      code, and I won't take a chance on breaking it.
      
      There is no intended change in behavior; thus, no test cases are
      added.
      
      llvm-svn: 187248
      419f7c23
  5. Jul 25, 2013
  6. Jul 24, 2013
    • Akira Hatanaka's avatar
      [mips] Use pristine object file while processing relocations. · 2e236246
      Akira Hatanaka authored
          Similar to ARM change r182800, dynamic linker will read bits/addends from
          the original object rather than from the object that might have been patched
          previously. For the purpose of relocations for MCJIT stubs on MIPS, we
          internally use otherwise unused MIPS relocations.
          
          The change also enables MCJIT unit tests for MIPS (EL/BE), and the following
          two tests now pass:
          
          - MCJITTest.return_global and
          - MCJITTest.multiple_functions.
          
          These issues have been tracked as Bug 16250.
      
          Patch by Petar Jovanovic.
      
      llvm-svn: 187019
      2e236246
  7. Jul 23, 2013
    • Eli Bendersky's avatar
      Refactor the unit test for MemoryBuffer::getOpenFileSlice · bb506fce
      Eli Bendersky authored
      Run in two different modes: with and without reopening the temporary file
      between creating it and mapping it with MemoryBuffer.
      
      llvm-svn: 186986
      bb506fce
    • Rafael Espindola's avatar
      Split getOpenFile into getOpenFile and getOpenFileSlice. · 3d2ac2e4
      Rafael Espindola authored
      The main observation is that we never need both the filesize and the map size.
      When mapping a slice of a file, it doesn't make sense to request a null
      terminator and that would be the only case where the filesize would be used.
      
      There are other cleanups that should be done in this area:
      
      * A client should not have to pass the size (even an explicit -1) to say if
        it wants a null terminator or not, so we should probably swap the argument
        order.
      * The default should be to not require a null terminator. Very few clients
        require this, but many end up asking for it just because it is the default.
      
      llvm-svn: 186984
      3d2ac2e4
    • Eli Bendersky's avatar
      Add a simple unit test for MemoryBuffer::getOpenFile · f288626c
      Eli Bendersky authored
      llvm-svn: 186887
      f288626c
  8. Jul 22, 2013
    • Hans Wennborg's avatar
      Option parsing: allow aliases in groups · 31d6fd84
      Hans Wennborg authored
      Option aliases in option groups were previously disallowed by an assert.
      As far as I can tell, there was no technical reason for this, and I would
      like to be able to put cl.exe compatible options in their own group for Clang,
      so let's change the assert.
      
      llvm-svn: 186838
      31d6fd84
  9. Jul 20, 2013
  10. Jul 19, 2013
  11. Jul 18, 2013
    • Reid Kleckner's avatar
      [Support] Beef up and expose the response file parsing in llvm::cl · a73c7781
      Reid Kleckner authored
      The plan is to use it for clang and lld.
      
      Major behavior changes:
      - We can now parse UTF-16 files that have a byte order mark.
      - PR16209: Don't drop backslashes on the floor if they don't escape
        anything.
      
      The actual parsing loop was based on code from Clang's driver.cpp,
      although it's been rewritten to track its state with control flow rather
      than state variables.
      
      Reviewers: hans
      
      Differential Revision: http://llvm-reviews.chandlerc.com/D1170
      
      llvm-svn: 186587
      a73c7781
    • Rafael Espindola's avatar
      Remove dead code. · 213c4cb1
      Rafael Espindola authored
      llvm-svn: 186561
      213c4cb1
    • Rafael Espindola's avatar
      Fix a regression I introduced back in r178147. · 9ed1761a
      Rafael Espindola authored
      We don't want cast and dyn_cast to work on temporaries. They don't extend
      lifetime like a direct bind to a reference would, so they can introduce
      hard to find bugs.
      
      I added tests to make sure we don't regress this. Thanks to Eli Friedman for
      noticing this and for his suggestions on how to test it.
      
      llvm-svn: 186559
      9ed1761a
    • Eli Friedman's avatar
      Handle '.' correctly in hex float literal parsing. · d2eb07ac
      Eli Friedman authored
      There were a couple of different loops that were not handling
      '.' correctly in APFloat::convertFromHexadecimalString; these mistakes
      could lead to assertion failures and incorrect rounding for overlong
      hex float literals.
      
      Fixes PR16643.
      
      llvm-svn: 186539
      d2eb07ac
  12. Jul 16, 2013
  13. Jul 14, 2013
  14. Jul 13, 2013
    • Rafael Espindola's avatar
      Attempt at fixing a mingw bot. · 1a08ba0e
      Rafael Espindola authored
      It is failing with
      
      YAMLTest.cpp:38:   instantiated from here
      YAMLTraits.h:226: error: 'llvm::yaml::MappingTraits<<unnamed>::BinaryHolder>::mapping' is not a valid template argument for type 'void (*)(llvm::yaml::IO&, <unnamed>::BinaryHolder&)' because function 'static void llvm::yaml::MappingTraits<<unnamed>::BinaryHolder>::mapping(llvm::yaml::IO&, <unnamed>::BinaryHolder&)' has not external linkage
      
      llvm-svn: 186245
      1a08ba0e
  15. Jul 11, 2013
  16. Jul 10, 2013
    • Peter Collingbourne's avatar
      Implement categories for special case lists. · 49062a97
      Peter Collingbourne authored
      A special case list can now specify categories for specific globals,
      which can be used to instruct an instrumentation pass to treat certain
      functions or global variables in a specific way, such as by omitting
      certain aspects of instrumentation while keeping others, or informing
      the instrumentation pass that a specific uninstrumentable function
      has certain semantics, thus allowing the pass to instrument callers
      according to those semantics.
      
      For example, AddressSanitizer now uses the "init" category instead of
      global-init prefixes for globals whose initializers should not be
      instrumented, but which in all other respects should be instrumented.
      
      The motivating use case is DataFlowSanitizer, which will have a
      number of different categories for uninstrumentable functions, such
      as "functional" which specifies that a function has pure functional
      semantics, or "discard" which indicates that a function's return
      value should not be labelled.
      
      Differential Revision: http://llvm-reviews.chandlerc.com/D1092
      
      llvm-svn: 185978
      49062a97
    • Peter Collingbourne's avatar
      Add some SpecialCaseList unit tests. · fea30e56
      Peter Collingbourne authored
      Differential Revision: http://llvm-reviews.chandlerc.com/D1091
      
      llvm-svn: 185977
      fea30e56
  17. Jul 09, 2013
  18. Jul 08, 2013
  19. Jul 06, 2013
  20. Jul 05, 2013
  21. Jul 04, 2013
  22. Jul 02, 2013
Loading