Skip to content
  1. Mar 02, 2014
  2. Mar 01, 2014
  3. Feb 28, 2014
  4. Feb 26, 2014
  5. Feb 25, 2014
    • Rafael Espindola's avatar
      Fix resetting the DataLayout in a Module. · 248ac139
      Rafael Espindola authored
      No tool does this currently, but as everything else in a module we should be
      able to change its DataLayout.
      
      Most of the fix is in DataLayout to make sure it can be reset properly.
      
      The test uses Module::setDataLayout since the fact that we mutate a DataLayout
      is an implementation detail. The module could hold a OwningPtr<DataLayout> and
      the DataLayout itself could be immutable.
      
      Thanks to Philip Reames for pushing me in the right direction.
      
      llvm-svn: 202198
      248ac139
    • Rafael Espindola's avatar
      Make DataLayout a plain object, not a pass. · 93512512
      Rafael Espindola authored
      Instead, have a DataLayoutPass that holds one. This will allow parts of LLVM
      don't don't handle passes to also use DataLayout.
      
      llvm-svn: 202168
      93512512
    • Renato Golin's avatar
      Disable old JIT unittests for AARch64 · dd8c8018
      Renato Golin authored
      llvm-svn: 202127
      dd8c8018
  6. Feb 24, 2014
  7. Feb 23, 2014
    • Rafael Espindola's avatar
      Simplify remove, create_directory and create_directories. · 5c20ac01
      Rafael Espindola authored
      Before this patch they would take an boolean argument to say if the path
      already existed. This was redundant with the returned error_code which is able
      to represent that. This allowed for callers to incorrectly check only the
      existed flag instead of first checking the error code.
      
      Instead, pass in a boolean flag to say if the previous (non-)existence should be
      an error or not.
      
      Callers of the of the old simple versions are not affected. They still ignore
      the previous (non-)existence as they did before.
      
      llvm-svn: 201979
      5c20ac01
  8. Feb 22, 2014
    • Logan Chien's avatar
      Move get[S|U]LEB128Size() to LEB128.h. · 5b776b72
      Logan Chien authored
      This commit moves getSLEB128Size() and getULEB128Size() from
      MCAsmInfo to LEB128.h and removes some copy-and-paste code.
      
      Besides, this commit also adds some unit tests for the LEB128
      functions.
      
      llvm-svn: 201937
      5b776b72
  9. Feb 21, 2014
  10. Feb 20, 2014
  11. Feb 15, 2014
  12. Feb 13, 2014
  13. Feb 12, 2014
    • Lang Hames's avatar
      Extend RTDyld API to enable optionally precomputing the total amount of memory · 937ec549
      Lang Hames authored
      required for all sections in a module. This can be useful when targets or
      code-models place strict requirements on how sections must be laid out
      in memory.
      
      If RTDyldMemoryManger::needsToReserveAllocationSpace() is overridden to return
      true then the JIT will call the following method on the memory manager, which
      can be used to preallocate the necessary memory.
      
      void RTDyldMemoryManager::reserveAllocationSpace(uintptr_t CodeSize,
                                                       uintptr_t DataSizeRO,
                                                       uintptr_t DataSizeRW)
      
      Patch by Vaidas Gasiunas. Thanks very much Viadas!
      
      llvm-svn: 201259
      937ec549
  14. Feb 11, 2014
  15. Feb 10, 2014
  16. Feb 05, 2014
  17. Feb 04, 2014
    • Chandler Carruth's avatar
      Silence a warning: · f6ae4922
      Chandler Carruth authored
      In file included from ../unittests/Support/ProcessTest.cpp:11:
      ../utils/unittest/googletest/include/gtest/gtest.h:1448:28: warning: comparison of integers of different signs: 'const unsigned int' and 'const int' [-Wsign-compare]
      GTEST_IMPL_CMP_HELPER_(NE, !=);
      ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
      ../utils/unittest/googletest/include/gtest/gtest.h:1433:12: note: expanded from macro 'GTEST_IMPL_CMP_HELPER_'
        if (val1 op val2) {\
                 ^
      ../unittests/Support/ProcessTest.cpp:46:3: note: in instantiation of function template specialization 'testing::internal::CmpHelperNE<unsigned int, int>' requested here
        EXPECT_NE((r1 | r2), 0);
        ^
      
      llvm-svn: 200801
      f6ae4922
    • Aaron Ballman's avatar
      Implemented support for Process::GetRandomNumber on Windows. · 78440734
      Aaron Ballman authored
      Patch thanks to Stephan Tolksdorf!
      
      llvm-svn: 200767
      78440734
  18. Feb 01, 2014
    • Peter Collingbourne's avatar
      Introduce line editor library. · c7d437c1
      Peter Collingbourne authored
      This library will be used by clang-query. I can imagine LLDB becoming another
      client of this library, so I think LLVM is a sensible place for it to live.
      It wraps libedit, and adds tab completion support.
      
      The code is loosely based on the line editor bits in LLDB, with a few
      improvements:
      
       - Polymorphism for retrieving the list of tab completions, based on
         the concept pattern from the new pass manager.
      
       - Tab completion doesn't corrupt terminal output if the input covers
         multiple lines. Unfortunately this can only be done in a truly horrible
         way, as far as I can tell. But since the alternative is to implement our
         own line editor (which I don't think LLVM should be in the business of
         doing, at least for now) I think it may be acceptable.
      
       - Includes a fallback for the case where the user doesn't have libedit
         installed.
      
      Note that this uses C stdio, mainly because libedit also uses C stdio.
      
      Differential Revision: http://llvm-reviews.chandlerc.com/D2200
      
      llvm-svn: 200595
      c7d437c1
    • Peter Collingbourne's avatar
      Introduce llvm::sys::path::home_directory. · f7d41011
      Peter Collingbourne authored
      This will be used by the line editor library to derive a default path to
      the history file.
      
      Differential Revision: http://llvm-reviews.chandlerc.com/D2199
      
      llvm-svn: 200594
      f7d41011
  19. Jan 31, 2014
Loading