[llvm] 1e16272 - [examples][BuildingAJIT] Use the right layer when adding code in Chapter 3.
Lang Hames via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 1 16:47:01 PST 2022
Author: Lang Hames
Date: 2022-03-01T16:44:55-08:00
New Revision: 1e16272ba793e5a6e7308898ecf6ef0dc99e2ad3
URL: https://github.com/llvm/llvm-project/commit/1e16272ba793e5a6e7308898ecf6ef0dc99e2ad3
DIFF: https://github.com/llvm/llvm-project/commit/1e16272ba793e5a6e7308898ecf6ef0dc99e2ad3.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.
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) {
More information about the llvm-commits
mailing list