From 9ade28d26092438d0c6a1d0d5d65b2f3f151236a Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Sun, 1 Apr 2007 07:44:52 +0000 Subject: Mention how to create overloaded intrinsics. llvm-svn: 35549 --- llvm/docs/ExtendingLLVM.html | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'llvm/docs/ExtendingLLVM.html') diff --git a/llvm/docs/ExtendingLLVM.html b/llvm/docs/ExtendingLLVM.html index 631a09bd6d6..baad89a6ae2 100644 --- a/llvm/docs/ExtendingLLVM.html +++ b/llvm/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 -- cgit v1.2.3