Author: Lang Hames Date: 2022-03-02T12:59:20-08:00 New Revision: 6d5afef3a7e6c2c9cc3bdb79e9d0fc88345e0e51
URL: https://github.com/llvm/llvm-project/commit/6d5afef3a7e6c2c9cc3bdb79e9d0fc88345e0e51 DIFF: https://github.com/llvm/llvm-project/commit/6d5afef3a7e6c2c9cc3bdb79e9d0fc88345e0e51.diff LOG: [examples][BuildingAJIT] Use the right layer when adding code in Chapter 3. We were incorrectly using the OptimizeLayer and bypassing the COD layer. (cherry picked from commit 1e16272ba793e5a6e7308898ecf6ef0dc99e2ad3) Added: Modified: llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h Removed: ################################################################################ diff --git a/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h b/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h index 130310da92748..de169804b06f3 100644 --- a/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h +++ b/llvm/examples/Kaleidoscope/BuildingAJIT/Chapter3/KaleidoscopeJIT.h @@ -120,7 +120,7 @@ class KaleidoscopeJIT { if (!RT) RT = MainJD.getDefaultResourceTracker(); - return OptimizeLayer.add(RT, std::move(TSM)); + return CODLayer.add(RT, std::move(TSM)); } Expected<JITEvaluatedSymbol> lookup(StringRef Name) { _______________________________________________ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
