1. May 09, 2012
  2. May 08, 2012
    • Jakob Stoklund Olesen's avatar
      s/CSR_Ghc/CSR_NoRegs/ · 276ae140
      Jakob Stoklund Olesen authored
      Share the CalleeSavedRegs defs between all calling conventions having no
      callee-saved registers.
      
      Patch by Yiannis Tsiouris!
      
      llvm-svn: 156382
      276ae140
    • NAKAMURA Takumi's avatar
      Lit: rewind WinWaitReleased() stuff in TestRunner. · a087dae0
      NAKAMURA Takumi authored
      r145222 "lit/TestRunner.py: [Win32] Introduce WinWaitReleased(f), to wait for file handles to be released by children."
      r145223 "lit/TestRunner.py: Use RemoveForce()."
      r145381 "lit/TestRunner.py: Try to catch ERROR_FILE_NOT_FOUND, too."
      r152916 "lit/TestRunner.py: [Win32] Check all opened_files[] released, rather than (obsoleted) written_files[]."
      r153172 "lit/TestRunner.py: [Win32] Rework WinWaitReleased() again! "win32file" from Python Win32 Extensions."
      
      llvm-svn: 156381
      a087dae0
    • NAKAMURA Takumi's avatar
      Windows/PathV2.inc: Retry rename() for (maximum) 2 seconds. · 3b7f995b
      NAKAMURA Takumi authored
      Files might be opend by system scanners (eg. file indexer, virus scanner, &c).
      
      llvm-svn: 156380
      3b7f995b
    • Duncan Sands's avatar
      Calling ReassociateExpression recursively is extremely dangerous since it will · 3bbb1d50
      Duncan Sands authored
      replace the operands of expressions with only one use with undef and generate
      a new expression for the original without using RAUW to update the original.
      Thus any copies of the original expression held in a vector may end up
      referring to some bogus value - and using a ValueHandle won't help since there
      is no RAUW.  There is already a mechanism for getting the effect of recursion
      non-recursively: adding the value to be recursed on to RedoInsts.  But it wasn't
      being used systematically.  Have various places where recursion had snuck in at
      some point use the RedoInsts mechanism instead.  Fixes PR12169.
      
      llvm-svn: 156379
      3bbb1d50
    • Stepan Dyatkovskiy's avatar
    • Craig Topper's avatar
    • Stepan Dyatkovskiy's avatar
      Ordinary patch for PR1255. · b6a46401
      Stepan Dyatkovskiy authored
      Added new case-ranges orientated methods for adding/removing cases in SwitchInst. After this patch cases will internally representated as ConstantArray-s instead of ConstantInt, externally cases wrapped within the ConstantRangesSet object.
      Old methods of SwitchInst are also works well, but marked as deprecated. So on this stage we have no side effects except that I added support for case ranges in BitcodeReader/Writer, of course test for Bitcode is also added. Old "switch" format is also supported.
      
      llvm-svn: 156374
      b6a46401
    • Gregory Szorc's avatar
      [clang.py] Remove trailing whitespace from recent commits · 23cfc9f7
      Gregory Szorc authored
      llvm-svn: 156373
      23cfc9f7
    • Gregory Szorc's avatar
      [clang.py] TranslationUnit API improvements · dfc894f3
      Gregory Szorc authored
      * TranslationUnit reading and parsing now implemented as
        TranslationUnit.from_ast() and TranslationUnit.from_source().
      * Index.parse() and Index.read() implemented through above.
      * Index.parse() and Index.read() now raise a TanslationUnitLoadException
        instead of returning None if a TranslationUnit could not be
        instantiated. This is backwards incompatible.
      * Ability to save TranslationUnits via TranslationUnit.save().
      * TranslationUnit now holds onto Index instance that created. This means
        the Index can't be GC'd until the TranslationUnit is itself GC'd,
        making memory management thoughtless.
      * Don't use [] as a default argument value, as the initial value used is
        reused for the duration of the program.
      
      llvm-svn: 156372
      dfc894f3
    • Ted Kremenek's avatar
      Teach the analyzer about CXXScaleValueInitExpr. · e87b5521
      Ted Kremenek authored
      llvm-svn: 156369
      e87b5521
    • Greg Clayton's avatar
      <rdar://problem/10605072> · af6f2755
      Greg Clayton authored
      Fixed the command callback override lookup function so we can now override the "process launch" command  (or any other multi-word commands).
      
      llvm-svn: 156368
      af6f2755
    • Jordy Rose's avatar
      Clean up SemaDeclAttr for high-warnings build. · 740b0c29
      Jordy Rose authored
      Includes a real potential initialization problem.
      
      llvm-svn: 156363
      740b0c29
    • Jordy Rose's avatar
      [analyzer] BasicConstraintManager: drop NE-constraints once we have a value. · 675d541a
      Jordy Rose authored
      This could conceivably cut down on state proliferation, although we don't
      use BasicConstraintManager by default anymore. No functionality change.
      
      llvm-svn: 156362
      675d541a
    • Jordy Rose's avatar
      [analyzer] Rework both constraint managers to handle mixed-type comparisons. · 728be7f6
      Jordy Rose authored
      This involves keeping track of three separate types: the symbol type, the
      adjustment type, and the comparison type. For example, in "$x + 5 > 0ULL",
      if the type of $x is 'signed char', the adjustment type is 'int' and the
      comparison type is 'unsigned long long'. Most of the time these three types
      will be the same, but we should still do the right thing when the
      comparison value is out of range, and wraparound should be calculated in
      the adjustment type.
      
      This also re-disables an out-of-bounds test; we were extracting the symbol
      from non-additive SymIntExprs, but then throwing away the integer.
      
      Sorry for the large patch; both the basic and range constraint managers needed
      to be updated together, since they share code in SimpleConstraintManager.
      
      llvm-svn: 156361
      728be7f6