1. Nov 06, 2015
    • Enrico Granata's avatar
      Do not build any of the simulator material on non-Darwin · daf1c8bf
      Enrico Granata authored
      llvm-svn: 252179
      daf1c8bf
    • Rui Ueyama's avatar
      Remove redundant namespace specifiers. · 7f20fb90
      Rui Ueyama authored
      llvm-svn: 252178
      7f20fb90
    • Oleg Ranevskyy's avatar
      [DebugInfo] Fix ARM/AArch64 prologue_end position. Related to D11268. · 057c5a6b
      Oleg Ranevskyy authored
      Summary:
      This review is related to another review request http://reviews.llvm.org/D11268, does the same and merely fixes a couple of issues with it.
      
      D11268 is quite old and has merge conflicts against the current trunk.
      This request 
       - rebases D11268 onto the new trunk;
       - resolves the merge conflicts;
       - fixes the prologue_end tests, which do not pass due to the subprogram definitions not marked as distinct.
      
      Reviewers: echristo, rengolin, kubabrecka
      
      Subscribers: aemerson, rengolin, jyknight, dsanders, llvm-commits, asl
      
      Differential Revision: http://reviews.llvm.org/D14338
      
      llvm-svn: 252177
      057c5a6b
    • Petar Jovanovic's avatar
      Add cfi instr for CFA calculation when movpc is expanded to call and pop · 99fba3c1
      Petar Jovanovic authored
      This fixes the issue of wrong CFA calculation in the following case:
      
      0x08048400 <+0>:	push   %ebx
      0x08048401 <+1>:	sub    $0x8,%esp
      0x08048404 <+4>:	**call   0x8048409 <test+9>**
      0x08048409 <+9>:	**pop    %eax**
      0x0804840a <+10>:	add    $0x1bf7,%eax
      0x08048410 <+16>:	mov    %eax,%ebx
      0x08048412 <+18>:	call   0x80483f0 <bar>
      0x08048417 <+23>:	add    $0x8,%esp
      0x0804841a <+26>:	pop    %ebx
      0x0804841b <+27>:	ret
      
      The highlighted instructions are a product of movpc instruction. The call
      instruction changes the stack pointer, and pop instruction restores its
      value. However, the rule for computing CFA is not updated and is wrong on
      the pop instruction. So, e.g. backtrace in gdb does not work when on the pop
      instruction. This adds cfi instructions for both call and pop instructions.
      
      cfi_adjust_cfa_offset** instruction is used with the appropriate offset for
      setting the rules to calculate CFA correctly.
      
      Patch by Violeta Vukobrat.
      
      Differential Revision: http://reviews.llvm.org/D14021
      
      llvm-svn: 252176
      99fba3c1
    • Alexandros Lamprineas's avatar
      [ARM] Clang gives unintended warning message for 'mthumb' + M-profiles: · f6ecf963
      Alexandros Lamprineas authored
      $ clang --target=armv7m-none-eabi -mthumb -march=armv7-m -c test.c
      clang-3.8: warning: argument unused during compilation: '-mthumb'
      
      Differential Revision: http://reviews.llvm.org/D14384
      
      llvm-svn: 252175
      f6ecf963
    • Derek Schuff's avatar
      [WebAssembly] Rename ior operator to or to match the spec · 8a76b04a
      Derek Schuff authored
      Summary: The spec uses "or" for inclusive-or and "xor" for exclusive-or
      
      Reviewers: sunfish
      
      Subscribers: jfb, llvm-commits, dschuff
      
      Differential Revision: http://reviews.llvm.org/D14362
      
      llvm-svn: 252174
      8a76b04a
    • Jonathan Peyton's avatar
      Improve OMPT initialization code · 95246e7d
      Jonathan Peyton authored
      Use of #ifdef OMPT_DEBUG was causing messages to be generated under normal
      operation when the OpenMP library was compiled with KMP_DEBUG enabled.
      Elsewhere, KMP_DEBUG evaluates assertions, but never produces messages during
      normal operation. To avoid this inconsistency, set OMPT_DEBUG using a cmake
      variable LIBOMP_OMPT_DEBUG.
      
      While I was editing the associated ompt-specific.h and ompt-general.c files,
      make the spacing and comments consistent.
      
      Patch by John Mellor-Crummey
      
      Differential Revision: http://reviews.llvm.org/D14355
      
      llvm-svn: 252173
      95246e7d
    • Michael Kruse's avatar
      Use per-BB value maps for non-exit BBs · 27149cf3
      Michael Kruse authored
      For generating scalar writes of non-affine subregions, all except phi
      writes are generated in the exit block. The phi writes are generated in
      the incoming block for which we errornously used the same BBMap. This
      can conflict if a value for one block is synthesized, and then reused
      for another block which is not dominated by the first block. This is
      fixed by using block-specific BBMaps for phi writes.
      
      llvm-svn: 252172
      27149cf3
  2. Nov 05, 2015