From: Reid Spencer
Date: Sun, 1 Apr 2007 07:44:52 +0000 (+0000)
Subject: Mention how to create overloaded intrinsics.
X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=c8d0636fefa75d7bf2fdcd0e48a1e12f7d475a31;p=oota-llvm.git
Mention how to create overloaded intrinsics.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35549 91177308-0d34-0410-b5e6-96231b3b80d8
---
diff --git a/docs/ExtendingLLVM.html b/docs/ExtendingLLVM.html
index 631a09bd6d6..baad89a6ae2 100644
--- a/docs/ExtendingLLVM.html
+++ b/docs/ExtendingLLVM.html
@@ -87,7 +87,10 @@ function and then be turned into an instruction if warranted.
llvm/include/llvm/Intrinsics*.td:
Add an entry for your intrinsic. Describe its memory access characteristics
- for optimization (this controls whether it will be DCE'd, CSE'd, etc).
+ for optimization (this controls whether it will be DCE'd, CSE'd, etc). Note
+ that any intrinsic using the llvm_int_ty type for an argument will
+ be deemed by tblgen as overloaded and the corresponding suffix
+ will be required on the intrinsic's name.
llvm/lib/Analysis/ConstantFolding.cpp: If it is possible to
constant fold your intrinsic, add support to it in the