aboutsummaryrefslogtreecommitdiffstats
path: root/docs/ExtendingLLVM.html
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2006-01-14 01:27:10 +0000
committerNate Begeman <natebegeman@mac.com>2006-01-14 01:27:10 +0000
commit2f86c223d3bc4976eb5171a55df3e0eac4247a2e (patch)
tree7ee2f9786ca44ac0e5523814835f8a36a663c291 /docs/ExtendingLLVM.html
parent6fb3bd6a658940287789198d3207b0da04c0a4e6 (diff)
downloadexternal_llvm-2f86c223d3bc4976eb5171a55df3e0eac4247a2e.zip
external_llvm-2f86c223d3bc4976eb5171a55df3e0eac4247a2e.tar.gz
external_llvm-2f86c223d3bc4976eb5171a55df3e0eac4247a2e.tar.bz2
Fix the instructions for adding an intrinsic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25310 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/ExtendingLLVM.html')
-rw-r--r--docs/ExtendingLLVM.html10
1 files changed, 7 insertions, 3 deletions
diff --git a/docs/ExtendingLLVM.html b/docs/ExtendingLLVM.html
index 9b0a487..dbfd4b8 100644
--- a/docs/ExtendingLLVM.html
+++ b/docs/ExtendingLLVM.html
@@ -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>