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.