Skip to content
  1. Nov 20, 2016
    • Simon Pilgrim's avatar
      Fix spelling mistakes in SelectionDAG comments. NFC. · 7a6b6d56
      Simon Pilgrim authored
      Identified by Pedro Giffuni in PR27636.
      
      llvm-svn: 287487
      7a6b6d56
    • Simon Pilgrim's avatar
      Fix comment typos. NFC. · fbd2221d
      Simon Pilgrim authored
      Identified by Pedro Giffuni in PR27636.
      
      llvm-svn: 287486
      fbd2221d
    • Oren Ben Simhon's avatar
      [X86] RegCall - Handling long double arguments · c0f073b6
      Oren Ben Simhon authored
      The change is part of RegCall calling convention support for LLVM.
      Long double (f80) requires special treatment as the first f80 parameter is saved in FP0 (floating point stack).
      This review present the change and the corresponding tests.
      
      Differential Revision: https://reviews.llvm.org/D26151
      
      llvm-svn: 287485
      c0f073b6
    • Coby Tayree's avatar
      [X86][InlineAsm]Test commit. · 179ff0e5
      Coby Tayree authored
      Fixing a wrong comment on X86AsmParser.cpp::ParseZ: "true" --> "false"
      
      Differential Revision: https://reviews.llvm.org/D26797
      
      llvm-svn: 287484
      179ff0e5
    • Serge Pavlov's avatar
      Fix file name resolution in nested response files · f258ff1f
      Serge Pavlov authored
      If a response file in construct `@file` was specified by relative name,
      constructs `@file` nested within it were resolved incorrectly if the
      flag RelativeNames in call to ExpandResponseFile was set to true.
      This feature is used in configuration files, tests for it are in
      respective change (see D24933).
      
      llvm-svn: 287482
      f258ff1f
    • Saleem Abdulrasool's avatar
      ExceptionDemo: remove some undefined behaviour · b14fc390
      Saleem Abdulrasool authored
      The casting based reading of the LSDA could attempt to read unsuitably aligned
      data.  Avoid that case by explicitly using a memcpy.  A similar approach is used
      in libc++abi to address the same UB.
      
      llvm-svn: 287479
      b14fc390
    • Saleem Abdulrasool's avatar
      ExceptionDemo: prefer headers over redeclarations · c0e4e7d9
      Saleem Abdulrasool authored
      Rather than redeclaring the interfaces for exceptions, prefer using the
      `unwind.h` header.  This is vended by at least gcc and clang, and can also be
      found by an external unwinding library (e.g. libunwind).  Doing this simplifies
      the example to the exception handling itself.  Minor tweaks are the result of
      _Unwind_Context_t not being defined, which is just a typedef for struct
      _Unwind_Context *.  NFC.
      
      llvm-svn: 287478
      c0e4e7d9
    • Alexei Starovoitov's avatar
      [bpf] add BPF disassembler · e6ddac0d
      Alexei Starovoitov authored
      
      
      add BPF disassembler, so tools like llvm-objdump can be used:
      $ llvm-objdump -d -no-show-raw-insn ./sockex1_kern.o
      
      ./sockex1_kern.o:	file format ELF64-BPF
      
      Disassembly of section socket1:
      bpf_prog1:
             0:	r6 = r1
             8:	r0 = *(u8 *)skb[23]
            10:	*(u32 *)(r10 - 4) = r0
            18:	r1 = *(u32 *)(r6 + 4)
            20:	if r1 != 4 goto 8
            28:	r2 = r10
            30:	r2 += -4
      
      ld_imm64 (the only 16-byte insn) and special ld_abs/ld_ind instructions
      had to be treated in a special way. The decoders for the rest of the insns
      are automatically generated.
      
      Add tests to cover new functionality.
      
      Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
      llvm-svn: 287477
      e6ddac0d
    • Rui Ueyama's avatar
      Attempt to fix big-endian buildbots. · e5669cec
      Rui Ueyama authored
      llvm-svn: 287476
      e5669cec
    • Rui Ueyama's avatar
      Style fix. NFC. · 567d9c4b
      Rui Ueyama authored
      llvm-svn: 287475
      567d9c4b
    • Rui Ueyama's avatar
      Fix buildbot. · 218072a9
      Rui Ueyama authored
      llvm-svn: 287474
      218072a9
    • Rui Ueyama's avatar
      SHA1: unroll loop in hashBlock. · fe33661a
      Rui Ueyama authored
      This code is taken from public domain.
      https://github.com/jsonn/src/blob/trunk/common/lib/libc/hash/sha1/sha1.c
      
      I wrote a sha1 command and ran it on my Xeon E5-2680 v2 2.80GHz machine.
      Here is a result. The new hash function is 37% faster than before.
      
       Performance counter stats for './llvm-sha1-old /ssd/build/bin/lld' (10 runs):
      
             6640.503687 task-clock (msec)         #    1.001 CPUs utilized            ( +-  0.03% )
                      54 context-switches          #    0.008 K/sec                    ( +-  5.03% )
                       5 cpu-migrations            #    0.001 K/sec                    ( +- 31.73% )
                 183,803 page-faults               #    0.028 M/sec                    ( +-  0.00% )
          18,527,954,113 cycles                    #    2.790 GHz                      ( +-  0.03% )
           4,993,237,485 stalled-cycles-frontend   #   26.95% frontend cycles idle     ( +-  0.11% )
         <not supported> stalled-cycles-backend
          50,217,149,423 instructions              #    2.71  insns per cycle
                                                   #    0.10  stalled cycles per insn  ( +-  0.00% )
           6,094,322,337 branches                  #  917.750 M/sec                    ( +-  0.00% )
              11,778,239 branch-misses             #    0.19% of all branches          ( +-  0.01% )
      
             6.634017401 seconds time elapsed                                          ( +-  0.03% )
      
       Performance counter stats for './llvm-sha1-new /ssd/build/bin/lld' (10 runs):
      
             4167.062720 task-clock (msec)         #    1.001 CPUs utilized            ( +-  0.02% )
                      52 context-switches          #    0.012 K/sec                    ( +- 16.45% )
                       7 cpu-migrations            #    0.002 K/sec                    ( +- 32.20% )
                 183,804 page-faults               #    0.044 M/sec                    ( +-  0.00% )
          11,626,611,958 cycles                    #    2.790 GHz                      ( +-  0.02% )
           4,491,897,976 stalled-cycles-frontend   #   38.63% frontend cycles idle     ( +-  0.05% )
         <not supported> stalled-cycles-backend
          24,320,180,617 instructions              #    2.09  insns per cycle
                                                   #    0.18  stalled cycles per insn  ( +-  0.00% )
           1,574,674,576 branches                  #  377.886 M/sec                    ( +-  0.00% )
              11,769,693 branch-misses             #    0.75% of all branches          ( +-  0.00% )
      
             4.163251552 seconds time elapsed                                          ( +-  0.02% )
      
      Differential Revision: https://reviews.llvm.org/D26890
      
      llvm-svn: 287473
      fe33661a
    • Saleem Abdulrasool's avatar
      Demangle: remove references to allocator for default allocator · a577509f
      Saleem Abdulrasool authored
      The demangler had stopped using a custom allocator but had not been updated to
      remove the use of the explicit allocator passing.  This removes that as we do
      not need to do anything special here anymore.  This just makes the code more
      compact.  NFC.
      
      llvm-svn: 287472
      a577509f
    • Saleem Abdulrasool's avatar
      Demangle: remove unnecessary typedef for std::vector · 54ec3f9c
      Saleem Abdulrasool authored
      We could create a local typedef for std::vector called Vector.  Inline the use
      of std::vector rather than use the typedef.  NFC.
      
      llvm-svn: 287471
      54ec3f9c
    • Saleem Abdulrasool's avatar
      Demangle: replace custom typedef for std::string with std::string · be1fd54f
      Saleem Abdulrasool authored
      We created a local typedef for `std::basic_string<char, std::char_traits<char>>`
      which is just `std::string`.  Remove the local typedef and propagate the type
      information through the rest of the demangler.  NFC.
      
      llvm-svn: 287470
      be1fd54f
    • Saleem Abdulrasool's avatar
      Demangle: use direct member initialization (NFC) · 0da90509
      Saleem Abdulrasool authored
      Prefer direct member initialization over the explicit out-of-line initialization
      for the construction of the local type.  NFC.
      
      llvm-svn: 287469
      0da90509
  2. Nov 19, 2016
Loading