1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 10:32:48 +02:00

Note ImmArg in documentation for adding intrinsics

llvm-svn: 356145
This commit is contained in:
Matt Arsenault 2019-03-14 13:46:17 +00:00
parent ef9e376272
commit e87a2e5304

View File

@ -47,11 +47,13 @@ function and then be turned into an instruction if warranted.
#. ``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``: