diff options
author | Misha Brukman <brukman+llvm@gmail.com> | 2004-12-01 20:58:54 +0000 |
---|---|---|
committer | Misha Brukman <brukman+llvm@gmail.com> | 2004-12-01 20:58:54 +0000 |
commit | d0bb8bebc8710766ea8158e3ba8bb56c818ff791 (patch) | |
tree | db6cefbfb0c6322079d24fea4b700e4262a6d87c /llvm/docs/ExtendingLLVM.html | |
parent | e070ae69fcac8093370ac24dfd673bf66baabdb4 (diff) | |
download | bcm5719-llvm-d0bb8bebc8710766ea8158e3ba8bb56c818ff791.tar.gz bcm5719-llvm-d0bb8bebc8710766ea8158e3ba8bb56c818ff791.zip |
* Hyphenate ``constant-propagate''
* Add testing notes to the instruction section similar as for intrinsics
* Mention adding codegen support for new instructions
llvm-svn: 18409
Diffstat (limited to 'llvm/docs/ExtendingLLVM.html')
-rw-r--r-- | llvm/docs/ExtendingLLVM.html | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/llvm/docs/ExtendingLLVM.html b/llvm/docs/ExtendingLLVM.html index f2c56a04934..6aece2ff9ce 100644 --- a/llvm/docs/ExtendingLLVM.html +++ b/llvm/docs/ExtendingLLVM.html @@ -100,12 +100,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 - propagate your intrinsic, add support to it in the +<li><tt>llvm/lib/Transforms/Utils/Local.cpp</tt>: If it is possible to + constant-propagate your intrinsic, add support to it in the <tt>canConstantFoldCallTo</tt> and <tt>ConstantFoldCall</tt> functions.</li> <li>Test your intrinsic</li> -<li><tt>llvm/test/Regression/*</tt>: add your test cases to the test suite.</li> + +<li><tt>llvm/test/Regression/*</tt>: add your test cases to the test suite</li> </ol> <p>If this intrinsic requires code generator support (i.e., it cannot be @@ -154,6 +155,14 @@ necessary.</p> implement the class you defined in <tt>llvm/include/llvm/Instructions.h</tt></li> +<li>Test your instruction</li> + +<li><tt>llvm/lib/Target/*</tt>: + Add support for your instruction to code generators, or add a lowering + pass.</li> + +<li><tt>llvm/test/Regression/*</tt>: add your test cases to the test suite.</li> + </ol> <p>Also, you need to implement (or modify) any analyses or passes that you want |