diff options
| author | Rishi Surendran <142182875+rishisurendran@users.noreply.github.com> | 2024-02-12 13:16:59 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-12 13:16:59 -0800 |
| commit | fa6850a9981b65972294e13021f82b96d460b3ec (patch) | |
| tree | f17578bb029cc1ae57eacee1a61a167245444126 /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp | |
| parent | 8799d7143f8b75ba722f438d0d2388bfaefa793b (diff) | |
[mlir][nvvm]Add support for grid_constant attribute on LLVM function arguments (#78228)
Add support for attribute nvvm.grid_constant on LLVM function arguments.
The attribute can be attached only to arguments of type llvm.ptr that
have llvm.byval attribute.
Generate LLVM metadata for functions with nvvm.grid_constant arguments.
The metadata node is a list of integers, where each integer n denotes
that the nth parameter has the
grid_constant annotation (numbering from 1). The generated metadata node
will be handled by NVVM compiler. See
https://docs.nvidia.com/cuda/nvvm-ir-spec/index.html#supported-properties
for documentation on grid_constant property.
This patch also adds convertParameterAttr to
LLVMTranslationDialectInterface for supporting the translation of
derived dialect attributes on function parameters
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions
