From c92dba26bf7b1576d175021b450e8b988a8efa5e Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 9 Mar 2006 22:07:39 +0000 Subject: [PATCH] Intrinsic adding is a little bit simpler now git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26668 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/ExtendingLLVM.html | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/docs/ExtendingLLVM.html b/docs/ExtendingLLVM.html index 419b7c634f2..0d90fc1c081 100644 --- a/docs/ExtendingLLVM.html +++ b/docs/ExtendingLLVM.html @@ -85,15 +85,8 @@ function and then be turned into an instruction if warranted.

what the restrictions are. Talk to other people about it so that you are sure it's a good idea. -
  • llvm/include/llvm/Intrinsics.h: - add an enum in the llvm::Intrinsic namespace
  • - -
  • llvm/lib/VMCore/Verifier.cpp: - Add code to check the invariants of the intrinsic are respected.
  • - -
  • llvm/lib/VMCore/Function.cpp (Function::getIntrinsicID()): - Identify the new intrinsic function, returning the enum for the intrinsic - that you added.
  • +
  • llvm/include/llvm/Intrinsics.td: + Add an entry for your intrinsic.
  • llvm/lib/Analysis/BasicAliasAnalysis.cpp: If the new intrinsic does not access memory or does not write to memory, add it to the relevant list