1. Jul 24, 2019
    • Jonas Devlieghere's avatar
      [Logging] Fix format strings · eaedc5ef
      Jonas Devlieghere authored
      Change format strings to use the `{}` syntax instead of the printf
      syntax when using LLDB_LOG.
      
      llvm-svn: 366824
      eaedc5ef
    • Jan Korous's avatar
      [clang][NFCI] Fix random typos · e72321f3
      Jan Korous authored
      llvm-svn: 366823
      e72321f3
    • Rainer Orth's avatar
      [compiler-rt][builtins] Provide __clear_cache for SPARC · 569f92f1
      Rainer Orth authored
      While working on https://reviews.llvm.org/D40900, two tests were failing since __clear_cache
      aborted.  While libgcc's __clear_cache is just empty, this only happens because
      gcc (in gcc/config/sparc/sparc.c (sparc32_initialize_trampoline, sparc64_initialize_trampoline))
      emits flush insns directly.
      
      The following patch mimics that.
      
      Tested on sparcv9-sun-solaris2.11.
      
      Differential Revision: https://reviews.llvm.org/D64496
      
      llvm-svn: 366822
      569f92f1
    • Rainer Orth's avatar
      [CMake] Add -z defs on Solaris · 2b7f3a2b
      Rainer Orth authored
      Like other ELF targets, shared objects should be linked with -z defs on Solaris.
      
      Tested on x86_64-pc-solaris2.11 and sparcv9-sun-solaris2.11.
      
      Differential Revision: https://reviews.llvm.org/D64484
      
      llvm-svn: 366821
      2b7f3a2b
    • Rainer Orth's avatar
      [clang, test] Fix Clang :: Headers/max_align.c on 64-bit SPARC · 2da6eea0
      Rainer Orth authored
      Clang :: Headers/max_align.c currently FAILs on 64-bit SPARC:
      
        error: 'error' diagnostics seen but not expected: 
          File /vol/llvm/src/clang/dist/test/Headers/max_align.c Line 12: static_assert failed due to requirement '8 == _Alignof(max_align_t)' ""
        1 error generated.
      
      This happens because SuitableAlign isn't defined for SPARCv9 unlike SPARCv8
      (which uses the default of 64 bits).  gcc's sparc/sparc.h has
      
        #define BIGGEST_ALIGNMENT (TARGET_ARCH64 ? 128 : 64)
      
      This patch sets SuitableAlign to match and updates the corresponding testcase.
      
      Tested on sparcv9-sun-solaris2.11.
      
      Differential Revision: https://reviews.llvm.org/D64487
      
      llvm-svn: 366820
      2da6eea0
    • Jessica Paquette's avatar
      [GlobalISel][AArch64] Teach GISel to handle shifts in load addressing modes · 2b404d01
      Jessica Paquette authored
      When we select the XRO variants of loads, we can pull in very specific shifts
      (of the size of an element). E.g.
      
      ```
      ldr x1, [x2, x3, lsl #3]
      ```
      
      This teaches GISel to handle these when they're coming from shifts
      specifically.
      
      This adds a new addressing mode function, `selectAddrModeShiftedExtendXReg`
      which recognizes this pattern.
      
      This also packs this up with `selectAddrModeRegisterOffset` into
      `selectAddrModeXRO`. This is intended to be equivalent to `selectAddrModeXRO`
      in AArch64ISelDAGtoDAG.
      
      Also update load-addressing-modes to show that all of the cases here work.
      
      Differential Revision: https://reviews.llvm.org/D65119
      
      llvm-svn: 366819
      2b404d01
  2. Jul 23, 2019