You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Interface to generate inline assembly with PTX for basic operations.
104
104
105
-
Interface is used in `convert-nvvm-to-llvm` pass that lowers Ops supports this interface to inline assembly Op. Interface has several methods and they are used for this lowering.
105
+
Interface is used in `convert-nvvm-to-llvm` pass that lowers Ops supports
106
+
this interface to inline assembly Op. Interface has several methods and
107
+
they are used for this lowering.
106
108
107
109
`getPtx` method returns PTX code.
108
110
109
-
`hasSideEffect` is used to set whether the op has any side effect on the memory.
111
+
`hasSideEffect` is used to set whether the op has any side effect on the
112
+
memory.
110
113
111
-
`hasIntrinsic` returns whether the operation has intrinsic support in LLVM. This is useful for the Ops that don't have intrinsic support for each case.
114
+
`hasIntrinsic` returns whether the operation has intrinsic support in LLVM.
115
+
This is useful for the Ops that don't have intrinsic support for each case.
112
116
113
-
`getAsmValues` returns arguments to pass PTX code. The order of arguments is started from the results and they are used as write, followed by the operands and attributes.
117
+
`getAsmValues` returns arguments to pass PTX code. The order of arguments
118
+
is started from the results and they are used as write, followed by the
119
+
operands and attributes.
114
120
115
121
Example:
116
-
117
122
If we have following Op definition that returns PTX code by `getPtx`.
0 commit comments