diff options
author | Nate Begeman <natebegeman@mac.com> | 2006-01-14 01:27:10 +0000 |
---|---|---|
committer | Nate Begeman <natebegeman@mac.com> | 2006-01-14 01:27:10 +0000 |
commit | f6b7dd7ca9ab98ec0e6d42ce38f0fb0a6c9a12d6 (patch) | |
tree | 2ac0e265305909366a8985b4950744b2f6028021 /llvm/docs/ExtendingLLVM.html | |
parent | 82049eba2cd250127ebec6dcf9ab73b5330a81f6 (diff) | |
download | bcm5719-llvm-f6b7dd7ca9ab98ec0e6d42ce38f0fb0a6c9a12d6.tar.gz bcm5719-llvm-f6b7dd7ca9ab98ec0e6d42ce38f0fb0a6c9a12d6.zip |
Fix the instructions for adding an intrinsic.
llvm-svn: 25310
Diffstat (limited to 'llvm/docs/ExtendingLLVM.html')
-rw-r--r-- | llvm/docs/ExtendingLLVM.html | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/llvm/docs/ExtendingLLVM.html b/llvm/docs/ExtendingLLVM.html index 9b0a487f82e..dbfd4b8ec70 100644 --- a/llvm/docs/ExtendingLLVM.html +++ b/llvm/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> |