1. Jul 28, 2016
    • Tim Northover's avatar
      GlobalISel: support zero-sized allocas · 8d2f52e0
      Tim Northover authored
      All allocas must be at least 1 byte at the MachineIR level so we allocate just
      one byte.
      
      llvm-svn: 276897
      8d2f52e0
    • Nirav Dave's avatar
      Update Clang Parser test error message to match new parser errors · ebebd6d2
      Nirav Dave authored
      llvm-svn: 276896
      ebebd6d2
    • Nirav Dave's avatar
      [MC][X86] Fix Intel Operand assembly parsing for .set ids · 06a99a46
      Nirav Dave authored
      Fix intel syntax special case identifier operands that refer to a constant
      (e.g. .set <ID> n) to be interpreted as immediate not memory in parsing.
      
      Reviewers: rnk
      
      Subscribers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D22585
      
      llvm-svn: 276895
      06a99a46
    • Jun Bum Lim's avatar
      [DSE] Fix bug in updating MadeChange flag · a033139c
      Jun Bum Lim authored
      Summary: The MadeChange flag should be ORed to keep the previous result.
      
      Reviewers: mcrosier
      
      Subscribers: mcrosier, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D22873
      
      llvm-svn: 276894
      a033139c
    • Hans Wennborg's avatar
      UsersManual.rst: update clang-cl option list · 6e70f4e1
      Hans Wennborg authored
      llvm-svn: 276891
      6e70f4e1
    • Simon Pilgrim's avatar
      Fix unnecessary default switch warning · e71a1f90
      Simon Pilgrim authored
      llvm-svn: 276889
      e71a1f90
    • Hans Wennborg's avatar
      Update cxx_dr_Status after 3.9 branch · d63a6620
      Hans Wennborg authored
      llvm-svn: 276887
      d63a6620
    • Krzysztof Parzyszek's avatar
      [Hexagon] Add saved callee-saved registers as live-in in non-wrapped blocks · a34d6395
      Krzysztof Parzyszek authored
      The callee-saved registers that are saved in a function are not pristine,
      and so they can be defined and used. In case of shrink-wrapping though,
      there are blocks that are outside of the save/restore range, and in those
      blocks the saved registers must be treated as pristine. To avoid any uses
      of these registers, add them as live-in in all those blocks.
      This was already done for blocks reaching function exits after restore,
      add code that does the same for blocks reached from the function entry
      before save.
      
      llvm-svn: 276886
      a34d6395
    • Etienne Bergeron's avatar
      [compiler-rt] Fix warnings in interception code · 8c6eb156
      Etienne Bergeron authored
      Summary:
      This patch is re-introducing the code to fix the
      dynamic hooking on windows and to fix a compiler
      warning on Apple.
      
      Related patches:
      
      * https://reviews.llvm.org/D22641
      * https://reviews.llvm.org/D22610
      * https://reviews.llvm.org/rL276311
      * https://reviews.llvm.org/rL276490
      
      Both architecture are using different techniques to
      hook on library functions (memchr, strcpy,...). 
      
      On Apple, the function is not dynamically hooked and
      the symbol always points to a valid function 
      (i.e. can't be null). The REAL macro returns the
      symbol.
      
      On windows, the function is dynamically patch and the
      REAL(...) function may or may not be null. It depend
      on whether or not the function was hooked correctly.
      Also, on windows memcpy and memmove are the same.
      
      ```
      #if !defined(__APPLE__)
      [...]
      # define REAL(x) __interception::PTR_TO_REAL(x)
      # define ASSIGN_REAL(dst, src) REAL(dst) = REAL(src)
      [...]
      #else  // __APPLE__
      [...]
      # define REAL(x) x
      # define ASSIGN_REAL(x, y)
      [...]
      #endif  // __APPLE__
      
      Reviewers: rnk
      
      Subscribers: kcc, hans, kubabrecka, llvm-commits, bruno, chrisha
      
      Differential Revision: https://reviews.llvm.org/D22758
      
      llvm-svn: 276885
      8c6eb156
    • Daniel Berlin's avatar
      Make bugpoint transform conditional jumps into unconditional jumps. · 271ca401
      Daniel Berlin authored
      Summary:
      Add a pass to bugpoint to make it transform conditional jumps into unconditional jumps.
      
      Often, bugpoint generates output that has large numbers of br undef jumps, where
      one side is dead.
      
      What is happening is two fold:
      1. It never tries to just pick a direction for the jump, and just see what happens
      <<<< this patch
      
      2. SimplifyCFG no longer is a good match for bugpoint's usecase. It
      does too much.
      Even things in SimplifyCFG, like removeUnreachableBlocks, go to great
      lengths to transform undefined behavior into  blocks and kill large
      parts of the CFG.  This is great for regular code, not so much for
      bugpoint, which often generates UB on purpose (store undef is a great
      example).
      <<<< a followup patch that is coming, to move simplifycfg into a
      separate reduction pass, and move the existing reduceCrashingBlocks
      pass to use simpleSimplifyCFG.
      
      Both of these patches significantly reduce the size and complexity of bugpoint
      generated testcases.
      
      Reviewers: chandlerc, majnemer
      
      Subscribers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D22841
      
      llvm-svn: 276884
      271ca401
    • Reid Kleckner's avatar
      Remove MCAsmInfo.h include from TargetOptions.h · 46cb48c7
      Reid Kleckner authored
      TargetOptions wants the ExceptionHandling enum. Move that to
      MCTargetOptions.h to avoid transitively including Dwarf.h everywhere in
      clang. Now you can add a DWARF tag without a full rebuild of clang
      semantic analysis.
      
      llvm-svn: 276883
      46cb48c7
  2. Jul 27, 2016