[llvm] a4e3457 - [examples] Direct HowToUseJIT readers to HowToUseLLJIT instead.

Lang Hames via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 23 01:10:32 PST 2022


Author: Lang Hames
Date: 2022-12-23T01:10:27-08:00
New Revision: a4e3457fb752d675c58fb14a3d8ed03fe218b6b0

URL: https://github.com/llvm/llvm-project/commit/a4e3457fb752d675c58fb14a3d8ed03fe218b6b0
DIFF: https://github.com/llvm/llvm-project/commit/a4e3457fb752d675c58fb14a3d8ed03fe218b6b0.diff

LOG: [examples] Direct HowToUseJIT readers to HowToUseLLJIT instead.

HowToUseJIT describes the older APIs. We want to discourage their use in new
projects.

Added: 
    

Modified: 
    llvm/examples/HowToUseJIT/HowToUseJIT.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/examples/HowToUseJIT/HowToUseJIT.cpp b/llvm/examples/HowToUseJIT/HowToUseJIT.cpp
index f7ec2694b9476..5acaf38cab312 100644
--- a/llvm/examples/HowToUseJIT/HowToUseJIT.cpp
+++ b/llvm/examples/HowToUseJIT/HowToUseJIT.cpp
@@ -6,6 +6,10 @@
 //
 //===----------------------------------------------------------------------===//
 //
+//  WARNING: This example demonstrates how to use LLVM's older ExecutionEngine
+//           JIT APIs. The newer LLJIT APIs should be preferred for new
+//           projects. See llvm/examples/HowToUseLLJIT.
+//
 //  This small program provides an example of how to quickly build a small
 //  module with two functions and execute it with the JIT.
 //


        


More information about the llvm-commits mailing list