summaryrefslogtreecommitdiffstats
path: root/llvm/examples
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2015-02-17 05:53:28 +0000
committerLang Hames <lhames@gmail.com>2015-02-17 05:53:28 +0000
commit9cebeb6666f058e4b45c9336f08600a06233ed4e (patch)
tree7b4a79382301f663f76923ddc00adcbc6e2856cd /llvm/examples
parent9b4b92bb21dba29f9e6b594d33beedcfb286a68f (diff)
downloadbcm5719-llvm-9cebeb6666f058e4b45c9336f08600a06233ed4e.tar.gz
bcm5719-llvm-9cebeb6666f058e4b45c9336f08600a06233ed4e.zip
[Orc][Kaleidoscope] Fix misnumbered steps in comments, plus tidy one
explanation up a little. llvm-svn: 229467
Diffstat (limited to 'llvm/examples')
-rw-r--r--llvm/examples/Kaleidoscope/Orc/fully_lazy/toy.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/examples/Kaleidoscope/Orc/fully_lazy/toy.cpp b/llvm/examples/Kaleidoscope/Orc/fully_lazy/toy.cpp
index 10113c6666d..678e687cea8 100644
--- a/llvm/examples/Kaleidoscope/Orc/fully_lazy/toy.cpp
+++ b/llvm/examples/Kaleidoscope/Orc/fully_lazy/toy.cpp
@@ -1243,17 +1243,17 @@ public:
CompileCallbacks.getCompileCallback(*F->getFunctionType());
// Step 3) Create a stub that will indirectly call the body of this
- // function. Initialize the function pointer for the indirection to
- // point at the compile callback.
+ // function once it is compiled. Initially, set the function
+ // pointer for the indirection to point at the compile callback.
std::string BodyPtrName = (F->getName() + "$address").str();
GlobalVariable *FunctionBodyPointer =
createImplPointer(*F, BodyPtrName, CallbackInfo.getAddress());
makeStub(*F, *FunctionBodyPointer);
- // Step 3) Add the module to the JIT.
+ // Step 4) Add the module containing the stub to the JIT.
auto H = addModule(C.takeM());
- // Step 4) Set the compile and update actions for the callback. The compile
+ // Step 5) Set the compile and update actions for the callback. The compile
// action will IRGen and Codegen the function. The update action
// will update FunctionBodyPointer to point at the newly compiled
// function pointer.
OpenPOWER on IntegriCloud