From c8d0636fefa75d7bf2fdcd0e48a1e12f7d475a31 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sun, 1 Apr 2007 07:44:52 +0000 Subject: [PATCH] Mention how to create overloaded intrinsics. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35549 91177308-0d34-0410-b5e6-96231b3b80d8 --- docs/ExtendingLLVM.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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