[llvm-commits] CVS: llvm/docs/ExtendingLLVM.html

Misha Brukman brukman at cs.uiuc.edu
Mon Apr 5 23:18:01 PDT 2004


Changes in directory llvm/docs:

ExtendingLLVM.html updated: 1.1 -> 1.2

---
Log message:

Incorporated Chris' comments.


---
Diffs of the changes:  (+10 -8)

Index: llvm/docs/ExtendingLLVM.html
diff -u llvm/docs/ExtendingLLVM.html:1.1 llvm/docs/ExtendingLLVM.html:1.2
--- llvm/docs/ExtendingLLVM.html:1.1	Mon Apr  5 22:53:49 2004
+++ llvm/docs/ExtendingLLVM.html	Mon Apr  5 23:17:51 2004
@@ -50,6 +50,12 @@
 <em>many</em> LLVM analyses and transformations, so it may be quite a bit of
 work.</p>
 
+<p>Adding an <a href="#intrinsic">intrinsic function</a> is easier than adding
+an instruction, and is transparent to optimization passes which treat it as an
+unanalyzable function.  If your added functionality can be expressed as a
+function call, an intrinsic function is the method of choice for LLVM
+extension.</p>
+
 <p>Before you invest a significant amount of effort into a non-trivial
 extension, <span class="doc_warning">ask on the list</span> if what you are
 looking to do can be done with already-existing infrastructure, or if maybe
@@ -72,11 +78,12 @@
 <div class="doc_text">
 
 <p><span class="doc_warning">WARNING: adding instructions changes the bytecode
-format, and will break compatibility with currently-existing LLVM
-installations.</span> Only add an instruction if it is absolutely
+format, and it will take some effort to maintain compatibility with
+the previous version.</span> Only add an instruction if it is absolutely
 necessary.</p>
 
 <ol>
+
 <li><tt>llvm/include/llvm/Instruction.def</tt>:
     add a number for your instruction and an enum name</li>
 
@@ -117,11 +124,6 @@
 
 <div class="doc_text">
 
-<p>Adding an intrinsic function is easier than adding an instruction, and is
-transparent to optimization passes which treat it as an unanalyzable function.
-If your added functionality can be expressed as a function call, an intrinsic
-function is the method of choice for LLVM extension.</p>
-
 <ol>
 
 <li><tt>llvm/include/llvm/Intrinsics.h</tt>:
@@ -206,7 +208,7 @@
   <a href="http://misha.brukman.net">Misha Brukman</a><br>
   <a href="http://llvm.cs.uiuc.edu">The LLVM Compiler Infrastructure</a>
   <br>
-  Last modified: $Date: 2004/04/06 03:53:49 $
+  Last modified: $Date: 2004/04/06 04:17:51 $
 </address>
 
 </body>





More information about the llvm-commits mailing list