From d828bc6b315442f09c828209c73a659a1b8ad326 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 13 Apr 2004 19:48:55 +0000 Subject: [PATCH] Add a note git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12922 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/ExtendingLLVM.html | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/ExtendingLLVM.html b/docs/ExtendingLLVM.html index cc872ab78b8..c6f27f094bd 100644 --- a/docs/ExtendingLLVM.html +++ b/docs/ExtendingLLVM.html @@ -104,6 +104,10 @@ 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 + canConstantFoldCallTo and ConstantFoldCall functions.
  • +
  • Test your intrinsic
  • llvm/test/Regression/*: add your test cases to the test suite.