Add a note
authorChris Lattner <sabre@nondot.org>
Tue, 13 Apr 2004 19:48:55 +0000 (19:48 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 13 Apr 2004 19:48:55 +0000 (19:48 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12922 91177308-0d34-0410-b5e6-96231b3b80d8

docs/ExtendingLLVM.html

index cc872ab78b88110ff6c9a673206ddd0d6d399b0b..c6f27f094bd9332def59323d356844d9764fcaeb 100644 (file)
@@ -104,6 +104,10 @@ function and then be turned into an instruction if warranted.</p>
     not access memory, or does not write to memory, add it to the relevant list
     of functions.</li>
 
+<li><tt>llvm/lib/Transforms/Utils/Local.cpp</tt>: If it is possible to constant
+    propagate your intrinsic, add support to it in the
+    <tt>canConstantFoldCallTo</tt> and <tt>ConstantFoldCall</tt> functions.</li>
+
 <li>Test your intrinsic</li>
 <li><tt>llvm/test/Regression/*</tt>: add your test cases to the test suite.</li>
 </ol>