From b9b473a2591b1a0d344bbeb7422ac6de1283db31 Mon Sep 17 00:00:00 2001 From: Naveen Saini Date: Thu, 12 Sep 2019 22:21:45 +0800 Subject: intel-graphics-compiler: upgrade 1.0.6 -> 1.0.11 Removed patches which are not required anymore. Updated python version to 3. In this release, fixed issue/improvements can be found here: https://github.com/intel/intel-graphics-compiler/releases/tag/igc-1.0.11 Signed-off-by: Naveen Saini Signed-off-by: Anuj Mittal --- .../files/0002-comment-out-dump-functions.patch | 87 ++++++++++++++++++++++ 1 file changed, 87 insertions(+) create mode 100644 dynamic-layers/clang-layer/recipes-opencl/igc/files/0002-comment-out-dump-functions.patch (limited to 'dynamic-layers/clang-layer/recipes-opencl/igc/files/0002-comment-out-dump-functions.patch') diff --git a/dynamic-layers/clang-layer/recipes-opencl/igc/files/0002-comment-out-dump-functions.patch b/dynamic-layers/clang-layer/recipes-opencl/igc/files/0002-comment-out-dump-functions.patch new file mode 100644 index 00000000..517dc36f --- /dev/null +++ b/dynamic-layers/clang-layer/recipes-opencl/igc/files/0002-comment-out-dump-functions.patch @@ -0,0 +1,87 @@ +From 15a23e549636626cf32b062a5308a29cc53ce360 Mon Sep 17 00:00:00 2001 +From: Naveen Saini +Date: Wed, 21 Aug 2019 17:29:00 +0800 +Subject: [PATCH 2/4] comment out dump functions + +Otherwise it leads to errors when linking with lld: + +| ld.lld: error: undefined symbol: llvm::Value::dump() const +| >>> referenced by PreRAScheduler.cpp:252 (build/tmp/work/x86_64-linux/intel-graphics-compiler-native/1.0.10-r0/git/IGC/Compiler/CISACodeGen/PreRAScheduler.cpp:252) +| >>> PreRAScheduler.cpp.o:(IGC::PreRAScheduler::dumpDDGContents()) in archive IGC/Release/libCompiler.a +| +| ld.lld: error: undefined symbol: llvm::Value::dump() const +| >>> referenced by PreRAScheduler.cpp:855 (build/tmp/work/x86_64-linux/intel-graphics-compiler-native/1.0.10-r0/git/IGC/Compiler/CISACodeGen/PreRAScheduler.cpp:855) +| >>> PreRAScheduler.cpp.o:(IGC::PreRAScheduler::dumpPriorityQueueContents()) in archive IGC/Release/libCompiler.a +| +| ld.lld: error: undefined symbol: llvm::Value::dump() const +| >>> referenced by PreRAScheduler.cpp:876 (build/tmp/work/x86_64-linux/intel-graphics-compiler-native/1.0.10-r0/git/IGC/Compiler/CISACodeGen/PreRAScheduler.cpp:876) +| >>> PreRAScheduler.cpp.o:(IGC::PreRAScheduler::dumpPriorityQueueContents()) in archive IGC/Release/libCompiler.a +| +| ld.lld: error: undefined symbol: llvm::Value::dump() const +| >>> referenced by PreRAScheduler.cpp:888 (build/tmp/work/x86_64-linux/intel-graphics-compiler-native/1.0.10-r0/git/IGC/Compiler/CISACodeGen/PreRAScheduler.cpp:888) +| >>> PreRAScheduler.cpp.o:(IGC::PreRAScheduler::dumpPriorityQueueContents()) in archive IGC/Release/libCompiler.a +| +| ld.lld: error: undefined symbol: llvm::Value::dump() const +| >>> referenced by PreRAScheduler.cpp:902 (build/tmp/work/x86_64-linux/intel-graphics-compiler-native/1.0.10-r0/git/IGC/Compiler/CISACodeGen/PreRAScheduler.cpp:902) +| >>> PreRAScheduler.cpp.o:(IGC::PreRAScheduler::dumpPriorityQueueContents()) in archive IGC/Release/libCompiler.a +| clang-8: error: linker command failed with exit code 1 (use -v to see invocation) +| ninja: build stopped: subcommand failed. + +Upstream-Status: Submitted [https://github.com/intel/intel-graphics-compiler/pull/105] + +Signed-off-by: Anuj Mittal +Signed-off-by: Naveen Saini +--- + IGC/Compiler/CISACodeGen/PreRAScheduler.cpp | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/IGC/Compiler/CISACodeGen/PreRAScheduler.cpp b/IGC/Compiler/CISACodeGen/PreRAScheduler.cpp +index 62e89c0c..ba01af01 100644 +--- a/IGC/Compiler/CISACodeGen/PreRAScheduler.cpp ++++ b/IGC/Compiler/CISACodeGen/PreRAScheduler.cpp +@@ -178,8 +178,10 @@ namespace IGC { + AU.addRequired(); + } + ++#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) + void dumpDDGContents(); + void dumpPriorityQueueContents(); ++#endif + + void clearDDG(); + +@@ -228,6 +230,7 @@ IGC_INITIALIZE_PASS_DEPENDENCY(RegisterEstimator) + IGC_INITIALIZE_PASS_DEPENDENCY(DominatorTreeWrapperPass) + IGC_INITIALIZE_PASS_END(PreRAScheduler, PASS_FLAG, PASS_DESC, PASS_CFG_ONLY, PASS_ANALYSIS) + ++#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) + void PreRAScheduler::dumpDDGContents() + { + IGC_SET_FLAG_VALUE(PrintToConsole, 1); +@@ -259,6 +262,7 @@ void PreRAScheduler::dumpDDGContents() + + IGC_SET_FLAG_VALUE(PrintToConsole, 0); + } ++#endif + + void PreRAScheduler::clearDDG() + { +@@ -841,6 +845,7 @@ bool PreRAScheduler::ScheduleReadyNodes( + return Changed; + } + ++#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP) + void PreRAScheduler::dumpPriorityQueueContents() + { + llvm::PriorityQueue, PreRAScheduler::OrderByLatency> longLatencyQueueCopy = longLatencyDelaySortedReadyQueue; +@@ -912,6 +917,7 @@ void PreRAScheduler::dumpPriorityQueueContents() + + IGC_SET_FLAG_VALUE(PrintToConsole, 0); + } ++#endif + + bool PreRAScheduler::runOnFunction(Function& F) { + CodeGenContext* ctx = getAnalysis().getCodeGenContext(); +-- +2.17.1 + -- cgit v1.2.3-54-g00ecf