Skip to content
Snippets Groups Projects
  1. Jan 10, 2019
  2. Jan 09, 2019
    • JF Bastien's avatar
      [NFC] Normalize some test 'main' signatures · 2f4df4c9
      JF Bastien authored
      There were 3 tests with 'int main(void)', and 6 with the return type on a different line. I'm about to send a patch for main in tests, and this NFC change is unrelated.
      
      llvm-svn: 350770
      2f4df4c9
    • Davide Italiano's avatar
      [Python] Update PyString_FromString() to work for python 2 and 3. · 8c2fe479
      Davide Italiano authored
      Reviewers: aprantl, JDevlieghere, friss, zturner
      
      Subscribers: lldb-commits
      
      Differential Revision: https://reviews.llvm.org/D56511
      
      llvm-svn: 350769
      8c2fe479
    • Alex Lorenz's avatar
      [ObjC] Allow the use of implemented unavailable methods from within · 4e3c0bdf
      Alex Lorenz authored
      the @implementation context
      
      In Objective-C, it's common for some frameworks to mark some methods like init
      as unavailable in the @interface to prohibit their usage. However, these
      frameworks then often implemented said method and refer to it in another method
      that acts as a factory for that object. The recent change to how messages to
      self are type checked in clang (r349841) introduced a regression which started
      to prohibit this pattern with an X is unavailable error. This commit addresses
      the aforementioned regression.
      
      rdar://47134898
      
      Differential Revision: https://reviews.llvm.org/D56469
      
      llvm-svn: 350768
      4e3c0bdf
    • Rui Ueyama's avatar
      Fix formatting. NFC. · c58fbe3c
      Rui Ueyama authored
      llvm-svn: 350767
      c58fbe3c
    • Jonathan Metzman's avatar
      [libfuzzer][MSVC] Make calls to builtin functions work with MSVC · 55ddb2c7
      Jonathan Metzman authored
      Summary:
      Replace calls to builtin functions with macros or functions that call the
      Windows-equivalents when targeting windows and call the original
      builtin functions everywhere else.
      This change makes more parts of libFuzzer buildable with MSVC.
      
      Reviewers: vitalybuka
      
      Reviewed By: vitalybuka
      
      Subscribers: mgorny, rnk, thakis
      
      Differential Revision: https://reviews.llvm.org/D56439
      
      llvm-svn: 350766
      55ddb2c7
    • Jonas Toth's avatar
      [clang-tidy] another take at fixing doc · a86d5c46
      Jonas Toth authored
      llvm-svn: 350765
      a86d5c46
    • Zachary Turner's avatar
      Change lldb-test to use ParseAllDebugSymbols. · c68925ab
      Zachary Turner authored
      ParseDeclsForContext was originally created to serve the very specific
      case where the context is a function block. It was never intended to be
      used for arbitrary DeclContexts, however due to the generic name, the
      DWARF and PDB plugins implemented it in this way "just in case". Then,
      lldb-test came along and decided to use it in that way.
      
      Related to this, there are a set of functions in the SymbolFile class
      interface whose requirements and expectations are not documented. For
      example, if you call ParseCompileUnitFunctions, there's an inherent
      requirement that you create entries in the underlying clang AST for
      these functions as well as their signature types, because in order to
      create an lldb_private::Function object, you have to pass it a
      CompilerType for the parameter representing the signature.
      
      On the other hand, there is no similar requirement (either inherent or
      documented) if one were to call ParseDeclsForContext. Specifically, if
      one calls ParseDeclsForContext, and some variable declarations, types,
      and other things are added to the clang AST, is it necessary to create
      lldb::Variable, lldb::Type, etc objects representing them? Nobody knows.
      There is, however, an accidental requirement, because since all of the
      plugins implemented this just in case, lldb-test came along and used
      ParsedDeclsForContext, and then wrote check lines that depended on this.
      
      When I went to try and implemented the NativePDB reader, I did not
      adhere to this (in fact, from a layering perspective I went out of my
      way to avoid it), and as a result the existing DIA PDB tests don't work
      when the native PDB reader is enabled, because they expect that calling
      ParseDeclsForContext will modify the *module's* view of symbols, and not
      just the internal AST.
      
      All of this confusion, however, can be avoided if we simply stick to
      using ParseDeclsForContext for its original intended use case (blocks),
      and use a different function (ParseAllDebugSymbols) for its intended use
      case which is, unsuprisingly, to parse all the debug symbols (which is
      all lldb-test really wanted to do anyway).
      
      In the future, I would like to change ParseDeclsForContext to
      ParseDeclsForFunctionBlock, then delete all of the dead code inside that
      handles other types of DeclContexts (and probably even assert if the
      DeclContext is anything other than a block).
      
      A few PDB tests needed to be fixed up as a result of this, and this also
      exposed a couple of bugs in the DIA PDB reader (doesn't matter much
      since it should be going away soon, but worth mentioning) where the
      appropriate AST entries weren't being created always.
      
      Differential Revision: https://reviews.llvm.org/D56418
      
      llvm-svn: 350764
      c68925ab
    • Jonas Toth's avatar
      [clang-tidy] tryfix documentation build · 3bdb8fd6
      Jonas Toth authored
      llvm-svn: 350763
      3bdb8fd6
    • Florian Hahn's avatar
      [AArch64] Add test for constant shrinking with multiple users (NFC). · 7c122c12
      Florian Hahn authored
      Test to avoid regression fixed by rL350684.
      
      llvm-svn: 350762
      7c122c12
    • Jonas Toth's avatar
      [clang-tidy] fix-up failing tests · e6406dce
      Jonas Toth authored
      llvm-svn: 350761
      e6406dce
    • Jonas Toth's avatar
      [clang-tidy] Adding a new modernize use nodiscard checker · ca8e20cd
      Jonas Toth authored
      Summary: Adds a checker to clang-tidy to warn when a non void const member function, taking only parameters passed by value or const reference could be marked as '[[nodiscard]]'
      
      Patch by MyDeveloperDay.
      
      Reviewers: alexfh, stephenkelly, curdeius, aaron.ballman, hokein, JonasToth
      
      Reviewed By: curdeius, JonasToth
      
      Subscribers: Eugene.Zelenko, lefticus, lebedev.ri, mgorny, xazax.hun, cfe-commits
      
      Tags: #clang-tools-extra
      
      Differential Revision: https://reviews.llvm.org/D55433
      
      llvm-svn: 350760
      ca8e20cd
    • Gheorghe-Teodor Bercea's avatar
      [OpenMP] Avoid remainder operations for loop index values on a collapsed loop nest. · 67796064
      Gheorghe-Teodor Bercea authored
      Summary: Change the strategy for computing loop index variables after collapsing a loop nest via the collapse clause by replacing the expensive remainder operation with multiplications and additions.
      
      Reviewers: ABataev, caomhin
      
      Reviewed By: ABataev
      
      Subscribers: guansong, arphaman, cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D56413
      
      llvm-svn: 350759
      67796064
    • Gheorghe-Teodor Bercea's avatar
      [OpenMP] Add flag for preventing the extension to 64 bits for the collapse loop counter · a3afcf24
      Gheorghe-Teodor Bercea authored
      Summary: Introduce a compiler flag for cases when the user knows that the collapsed loop counter can be safely represented using at most 32 bits. This will prevent the emission of expensive mathematical operations (such as the div operation) on the iteration variable using 64 bits where 32 bit operations are sufficient.
      
      Reviewers: ABataev, caomhin
      
      Reviewed By: ABataev
      
      Subscribers: hfinkel, kkwli0, guansong, cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D55928
      
      llvm-svn: 350758
      a3afcf24
    • Alexey Bataev's avatar
      [OPENMP][DOCS]Release notes/OpenMP support updates, NFC. · 2819d4d1
      Alexey Bataev authored
      llvm-svn: 350757
      2819d4d1
    • Aaron Ballman's avatar
      Removing an include that was not necessary; NFC. · e9b4a225
      Aaron Ballman authored
      The include also had a using namespace llvm in it, so this adds qualifiers where needed as well.
      
      llvm-svn: 350756
      e9b4a225
    • Easwaran Raman's avatar
      Refactor synthetic profile count computation. NFC. · b45994b8
      Easwaran Raman authored
      Summary:
      Instead of using two separate callbacks to return the entry count and the
      relative block frequency, use a single callback to return callsite
      count. This would allow better supporting hybrid mode in the future as
      the count of callsite need not always be derived from entry count (as in
      sample PGO).
      
      Reviewers: davidxl
      
      Subscribers: mehdi_amini, steven_wu, dexonsmith, dang, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D56464
      
      llvm-svn: 350755
      b45994b8
    • Shoaib Meenai's avatar
      [CodeGen] Clarify comment about COFF common symbol alignment · 39287e75
      Shoaib Meenai authored
      After a discussion on the commit thread, it seems the 32 byte alignment
      limitation is an MSVC toolchain artifact, not an inherent COFF
      restriction. Clarify the comment accordingly, since saying COFF in the
      comment but using isKnownWindowsMSVCEnvironment in the conditional is
      confusing. Also add a newline before the comment, which is consistent
      with the local style.
      
      Differential Revision: https://reviews.llvm.org/D56466
      
      llvm-svn: 350754
      39287e75
    • Francis Visoiu Mistrih's avatar
      [CodeGen] Ignore return sext/zext attributes of unused results for tail calls · ac6454a7
      Francis Visoiu Mistrih authored
      If the caller's return type does not have a zeroext attribute but the
      callee does a tail call zeroext, we won't consider the tail call during
      CodeGenPrepare because the attributes don't match.
      
      However, if the result of the tail call has no uses, it makes sense to
      drop the sext/zext attributes.
      
      Differential Revision: https://reviews.llvm.org/D56486
      
      llvm-svn: 350753
      ac6454a7
Loading