diff options
author | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-03-14 13:46:17 +0000 |
---|---|---|
committer | Matt Arsenault <Matthew.Arsenault@amd.com> | 2019-03-14 13:46:17 +0000 |
commit | 9678e8d57627a3a2e275d0b55448c21e949222cd (patch) | |
tree | 752d28ccd3a89a86f7c541b84c43272cd0846fc9 | |
parent | 4e3e4016bf4be7cb1c916ffb184b3eefc57b7ceb (diff) | |
download | bcm5719-llvm-9678e8d57627a3a2e275d0b55448c21e949222cd.tar.gz bcm5719-llvm-9678e8d57627a3a2e275d0b55448c21e949222cd.zip |
Note ImmArg in documentation for adding intrinsics
llvm-svn: 356145
-rw-r--r-- | llvm/docs/ExtendingLLVM.rst | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/llvm/docs/ExtendingLLVM.rst b/llvm/docs/ExtendingLLVM.rst index 389dfad168b..53daf5c8427 100644 --- a/llvm/docs/ExtendingLLVM.rst +++ b/llvm/docs/ExtendingLLVM.rst @@ -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``: |