From f6b7dd7ca9ab98ec0e6d42ce38f0fb0a6c9a12d6 Mon Sep 17 00:00:00 2001
From: Nate Begeman
Date: Sat, 14 Jan 2006 01:27:10 +0000
Subject: [PATCH] Fix the instructions for adding an intrinsic.
llvm-svn: 25310
---
llvm/docs/ExtendingLLVM.html | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/llvm/docs/ExtendingLLVM.html b/llvm/docs/ExtendingLLVM.html
index 9b0a487f82ee..dbfd4b8ec703 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.
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