1. Sep 05, 2017
    • Davide Italiano's avatar
      [ABI] Rewrite RegisterIsCalleeSaved. · cd28bce8
      Davide Italiano authored
      The goal of this patch is twofold:
      First, it removes a wrong comment (at least, not correctly describing
      what the function does).
      Then, it rewrites the function to use a StringSwitch where the
      registers are enumerated explicitly instead of being computed
      programmatically. Other than being much shorter, it's much easier to
      read (and given the ABI won't change anytime soon, I don't think
      there's need to generalize).
      
      While here, I added an assert that the register name is always empty,
      as the previous implementation of the function assumed so.
      
      Differential Revision:  https://reviews.llvm.org/D37420
      
      llvm-svn: 312501
      cd28bce8
    • Lang Hames's avatar
      [ORC] Refactor OrcRemoteTarget code to expose its RPC API, reduce · 9e68b734
      Lang Hames authored
      code duplication in the client, and improve error propagation.
      
      This patch moves the OrcRemoteTarget rpc::Function declarations from
      OrcRemoteTargetRPCAPI into their own namespaces under llvm::orc::remote so that
      they can be used in new contexts (in particular, a remote-object-file adapter
      layer that I will commit shortly).
      
      Code duplication in OrcRemoteTargetClient (especially in loops processing the
      code, rw-data and ro-data allocations) is removed by moving the loop bodies
      into their own functions.
      
      Error propagation is (slightly) improved by adding an ErrorReporter functor to
      the OrcRemoteTargetClient -- Errors that can't be returned (because they occur
      in destructors, or behind stable APIs that don't provide error returns) can be
      sent to the ErrorReporter instead. Some methods in the Client API are also
      changed to make better use of the Expected class: returning Expected<T>s rather
      than returning Errors and taking T&s to store the resul...
      9e68b734
    • Martin Storsjo's avatar
      Add MINGW_LIBRARIES to the linker flags · 783d433f
      Martin Storsjo authored
      This is essential when building with -nodefaultlibs.
      
      This is similar to what already is done in libcxxabi in SVN r302760.
      
      Differential revision: https://reviews.llvm.org/D37207
      
      llvm-svn: 312498
      783d433f
    • Sanjay Patel's avatar
      [x86] add test for unnecessary cmp + masked store; NFC · d413303b
      Sanjay Patel authored
      As noted in PR11210:
      https://bugs.llvm.org/show_bug.cgi?id=11210
      ...fixing this should allow us to eliminate x86-specific masked store intrinsics in IR.
      (Although more testing will be needed to confirm that.)
      
      llvm-svn: 312496
      d413303b
    • Simon Atanasyan's avatar
      [MIPS] Convert template parameters to function arguments. NFC · 7644191f
      Simon Atanasyan authored
      Pass BSIZE and SHIFT as a function arguments to the `writeRelocation`
      routine. It does not make a sense to have so many `writeRelocation's`
      instances.
      
      llvm-svn: 312495
      7644191f
    • Simon Atanasyan's avatar
      [MIPS] Add curly brackets to improve code readability. NFC. · 351cf495
      Simon Atanasyan authored
      llvm-svn: 312494
      351cf495
  2. Sep 04, 2017