[llvm] r356145 - Note ImmArg in documentation for adding intrinsics
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 14 06:46:18 PDT 2019
Author: arsenm
Date: Thu Mar 14 06:46:17 2019
New Revision: 356145
URL: http://llvm.org/viewvc/llvm-project?rev=356145&view=rev
Log:
Note ImmArg in documentation for adding intrinsics
Modified:
llvm/trunk/docs/ExtendingLLVM.rst
Modified: llvm/trunk/docs/ExtendingLLVM.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/ExtendingLLVM.rst?rev=356145&r1=356144&r2=356145&view=diff
==============================================================================
--- llvm/trunk/docs/ExtendingLLVM.rst (original)
+++ llvm/trunk/docs/ExtendingLLVM.rst Thu Mar 14 06:46:17 2019
@@ -47,11 +47,13 @@ function and then be turned into an inst
#. ``llvm/include/llvm/IR/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). Note
- that any intrinsic using one of the ``llvm_any*_ty`` types for an argument or
- return type will be deemed by ``tblgen`` as overloaded and the corresponding
- suffix will be required on the intrinsic's name.
+ Add an entry for your intrinsic. Describe its memory access
+ characteristics for optimization (this controls whether it will be
+ DCE'd, CSE'd, etc). If any arguments need to be immediates, these
+ must be indicated with the ImmArg property. Note that any intrinsic
+ using one of the ``llvm_any*_ty`` types for an argument or return
+ type will be deemed by ``tblgen`` as overloaded and the
+ corresponding suffix will be required on the intrinsic's name.
#. ``llvm/lib/Analysis/ConstantFolding.cpp``:
More information about the llvm-commits
mailing list