-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5849 from cms-sw/backport-IB_CMSSW_11_2_X_master-…
…5708 [LLVM 10] Update LLVM to 10
- Loading branch information
Showing
13 changed files
with
108 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Requires: py2-funcsigs py2-six py2-singledispatch py2-llvmlite py3-numpy python3 | ||
Patch0: py3-numba-llvm33 | ||
|
||
%define source0 git+https://github.com/numba/numba?obj=master/1ea770564cb3c0c6cb9d8ab92e7faf23cd4c4c19&export=numba-%{realversion}&output=/source.tar.gz | ||
%define RelocatePython %{i}/bin/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
diff --git a/dxr/plugins/clang/dxr-index.cpp b/dxr/plugins/clang/dxr-index.cpp | ||
index bba5563..bd95878 100644 | ||
--- a/dxr/plugins/clang/dxr-index.cpp | ||
+++ b/dxr/plugins/clang/dxr-index.cpp | ||
@@ -3,6 +3,7 @@ | ||
#include "clang/AST/RecursiveASTVisitor.h" | ||
#include "clang/Basic/SourceManager.h" | ||
#include "clang/Basic/Version.h" | ||
+#include "clang/Basic/FileManager.h" | ||
#include "clang/Frontend/CompilerInstance.h" | ||
#include "clang/Frontend/FrontendPluginRegistry.h" | ||
#include "clang/Lex/Lexer.h" | ||
@@ -158,7 +159,7 @@ public: | ||
m_currentFunction(NULL) { | ||
inner = ci.getDiagnostics().takeClient(); | ||
ci.getDiagnostics().setClient(this, false); | ||
- ci.getPreprocessor().addPPCallbacks(llvm::make_unique<PreprocThunk>(this)); | ||
+ ci.getPreprocessor().addPPCallbacks(std::make_unique<PreprocThunk>(this)); | ||
} | ||
|
||
virtual DiagnosticConsumer *clone(DiagnosticsEngine &Diags) const { | ||
@@ -390,7 +391,7 @@ public: | ||
recordValue("name", nd->getNameAsString()); | ||
recordValue("qualname", getQualifiedName(*nd)); | ||
recordValue("loc", locationToString(d->getLocation())); | ||
- recordValue("kind", d->getKindName()); | ||
+ recordValue("kind", d->getKindName().str()); | ||
printScope(d); | ||
// Linkify the name, not the `enum' | ||
printExtent(nd->getLocation(), nd->getLocation()); | ||
@@ -1070,7 +1071,7 @@ public: | ||
// you include a nonexistent file. | ||
!file || | ||
|
||
- !(target = getFileInfo(file->getName()))->interesting || | ||
+ !(target = getFileInfo(file->getName().str()))->interesting || | ||
|
||
// TODO: Come up with some kind of reasonable extent for macro-based | ||
// includes, like #include FOO_MACRO. | ||
@@ -1151,7 +1152,7 @@ void PreprocThunk::InclusionDirective( // same in 3.2 and 3.3 | ||
class DXRIndexAction : public PluginASTAction { | ||
protected: | ||
std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &CI, llvm::StringRef f) { | ||
- return llvm::make_unique<IndexConsumer>(CI); | ||
+ return std::make_unique<IndexConsumer>(CI); | ||
} | ||
|
||
bool ParseArgs(const CompilerInstance &CI, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
diff --git a/setup.py b/setup.py | ||
index d9af186..edfdd3c 100644 | ||
--- a/setup.py | ||
+++ b/setup.py | ||
@@ -302,12 +302,8 @@ def get_ext_modules(): | ||
|
||
packages = find_packages(include=["numba", "numba.*"]) | ||
|
||
-build_requires = [f'numpy >={min_numpy_build_version}'] | ||
-install_requires = [ | ||
- f'llvmlite >={min_llvmlite_version},<={max_llvmlite_version}', | ||
- f'numpy >={min_numpy_run_version}', | ||
- 'setuptools', | ||
-] | ||
+build_requires = ['numpy >=1.11'] | ||
+install_requires = ['llvmlite>=0.31.0dev0,<=0.33.0.dev0', 'numpy', 'setuptools'] | ||
|
||
metadata = dict( | ||
name='numba', | ||
@@ -346,7 +342,7 @@ metadata = dict( | ||
packages=packages, | ||
setup_requires=build_requires, | ||
install_requires=install_requires, | ||
- python_requires=f">={min_python_version}", | ||
+ python_requires=">=3.6", | ||
license="BSD", | ||
cmdclass=cmdclass, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters