Mention how to create overloaded intrinsics.
authorReid Spencer <rspencer@reidspencer.com>
Sun, 1 Apr 2007 07:44:52 +0000 (07:44 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 1 Apr 2007 07:44:52 +0000 (07:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35549 91177308-0d34-0410-b5e6-96231b3b80d8

docs/ExtendingLLVM.html

index 631a09bd6d6993742ee4cc2eaa1be9d731de7073..baad89a6ae260b750a4f78b82a61025b67d19417 100644 (file)
@@ -87,7 +87,10 @@ function and then be turned into an instruction if warranted.</p>
 
 <li><tt>llvm/include/llvm/Intrinsics*.td</tt>:
     Add an entry for your intrinsic.  Describe its memory access characteristics
-    for optimization (this controls whether it will be DCE'd, CSE'd, etc).</li>
+    for optimization (this controls whether it will be DCE'd, CSE'd, etc). Note
+    that any intrinsic using the <tt>llvm_int_ty</tt> type for an argument will
+    be deemed by <tt>tblgen</tt> as overloaded and the corresponding suffix 
+    will be required on the intrinsic's name.</li>
 
 <li><tt>llvm/lib/Analysis/ConstantFolding.cpp</tt>: If it is possible to 
     constant fold your intrinsic, add support to it in the