From: Nate Begeman
Date: Sat, 14 Jan 2006 01:27:10 +0000 (+0000)
Subject: Fix the instructions for adding an intrinsic.
X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=2f86c223d3bc4976eb5171a55df3e0eac4247a2e;p=oota-llvm.git
Fix the instructions for adding an intrinsic.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25310 91177308-0d34-0410-b5e6-96231b3b80d8
---
diff --git a/docs/ExtendingLLVM.html b/docs/ExtendingLLVM.html
index 9b0a487f82e..dbfd4b8ec70 100644
--- a/docs/ExtendingLLVM.html
+++ b/docs/ExtendingLLVM.html
@@ -97,9 +97,13 @@ function and then be turned into an instruction if warranted.
not access memory or does not write to memory, add it to the relevant list
of functions.
-llvm/lib/Transforms/Utils/Local.cpp: If it is possible to constant
-fold your intrinsic, add support to it in the canConstantFoldCallTo and
-ConstantFoldCall functions.
+llvm/lib/Analysis/ConstantFolding.cpp: If it is possible to
+ constant fold your intrinsic, add support to it in the
+ canConstantFoldCallTo and ConstantFoldCall functions.
+
+llvm/lib/Transforms/Utils/Local.cpp: If your intrinsic has no side-
+ effects, add it to the list of intrinsics in the
+ isInstructionTriviallyDead function.
Test your intrinsic