From: Misha Brukman
Date: Wed, 1 Dec 2004 20:58:54 +0000 (+0000)
Subject: * Hyphenate ``constant-propagate''
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a424228023cb0f420e4bea6011aaa8df80e9d1c5;p=oota-llvm.git
* Hyphenate ``constant-propagate''
* Add testing notes to the instruction section similar as for intrinsics
* Mention adding codegen support for new instructions
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@18409 91177308-0d34-0410-b5e6-96231b3b80d8
---
diff --git a/docs/ExtendingLLVM.html b/docs/ExtendingLLVM.html
index f2c56a04934..6aece2ff9ce 100644
--- a/docs/ExtendingLLVM.html
+++ b/docs/ExtendingLLVM.html
@@ -100,12 +100,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
- propagate your intrinsic, add support to it in the
+llvm/lib/Transforms/Utils/Local.cpp: If it is possible to
+ constant-propagate your intrinsic, add support to it in the
canConstantFoldCallTo and ConstantFoldCall functions.
Test your intrinsic
-llvm/test/Regression/*: add your test cases to the test suite.
+
+llvm/test/Regression/*: add your test cases to the test suite
If this intrinsic requires code generator support (i.e., it cannot be
@@ -154,6 +155,14 @@ necessary.
implement the class you defined in
llvm/include/llvm/Instructions.h
+Test your instruction
+
+llvm/lib/Target/*:
+ Add support for your instruction to code generators, or add a lowering
+ pass.
+
+llvm/test/Regression/*: add your test cases to the test suite.
+
Also, you need to implement (or modify) any analyses or passes that you want