Fix the instructions for adding an intrinsic.
authorNate Begeman <natebegeman@mac.com>
Sat, 14 Jan 2006 01:27:10 +0000 (01:27 +0000)
committerNate Begeman <natebegeman@mac.com>
Sat, 14 Jan 2006 01:27:10 +0000 (01:27 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25310 91177308-0d34-0410-b5e6-96231b3b80d8

docs/ExtendingLLVM.html

index 9b0a487f82ee67865c82b01418a65d6a084bfd67..dbfd4b8ec703577dacafd0ac155f38e3e4622c18 100644 (file)
@@ -97,9 +97,13 @@ 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
-fold your intrinsic, add support to it in the <tt>canConstantFoldCallTo</tt> and
-<tt>ConstantFoldCall</tt> functions.</li>
+<li><tt>llvm/lib/Analysis/ConstantFolding.cpp</tt>: If it is possible to 
+    constant fold your intrinsic, add support to it in the 
+    <tt>canConstantFoldCallTo</tt> and <tt>ConstantFoldCall</tt> functions.</li>
+
+<li><tt>llvm/lib/Transforms/Utils/Local.cpp</tt>: If your intrinsic has no side-
+    effects, add it to the list of intrinsics in the 
+    <tt>isInstructionTriviallyDead</tt> function.</li>
 
 <li>Test your intrinsic</li>