Skip to content

Commit 9678e8d

Browse files
committed
Note ImmArg in documentation for adding intrinsics
llvm-svn: 356145
1 parent 4e3e401 commit 9678e8d

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

llvm/docs/ExtendingLLVM.rst

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,13 @@ function and then be turned into an instruction if warranted.
4747

4848
#. ``llvm/include/llvm/IR/Intrinsics*.td``:
4949

50-
Add an entry for your intrinsic. Describe its memory access characteristics
51-
for optimization (this controls whether it will be DCE'd, CSE'd, etc). Note
52-
that any intrinsic using one of the ``llvm_any*_ty`` types for an argument or
53-
return type will be deemed by ``tblgen`` as overloaded and the corresponding
54-
suffix will be required on the intrinsic's name.
50+
Add an entry for your intrinsic. Describe its memory access
51+
characteristics for optimization (this controls whether it will be
52+
DCE'd, CSE'd, etc). If any arguments need to be immediates, these
53+
must be indicated with the ImmArg property. Note that any intrinsic
54+
using one of the ``llvm_any*_ty`` types for an argument or return
55+
type will be deemed by ``tblgen`` as overloaded and the
56+
corresponding suffix will be required on the intrinsic's name.
5557

5658
#. ``llvm/lib/Analysis/ConstantFolding.cpp``:
5759

0 commit comments

Comments
 (0)