aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h
diff options
context:
space:
mode:
authorIan Li <ian.li@intel.com>2025-10-10 17:03:58 -0400
committerGitHub <noreply@github.com>2025-10-10 16:03:58 -0500
commitfabd1c418a6b20266cf191b5d8c92476567c77af (patch)
tree088aa49ee6cfe938d765662382ccbb5f46762878 /lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h
parentd78c93077b940d650a1b2eae75bdbf2105de7380 (diff)
downloadllvm-fabd1c418a6b20266cf191b5d8c92476567c77af.zip
llvm-fabd1c418a6b20266cf191b5d8c92476567c77af.tar.gz
llvm-fabd1c418a6b20266cf191b5d8c92476567c77af.tar.bz2
[MLIR][Math][XeVM] Add MathToXeVM (`math-to-xevm`) pass (#159878)
This PR introduces a `MathToXeVM` pass, which implements support for the `afn` fastmath flag for SPIRV/XeVM targets - It takes supported `Math` Ops with the `afn` flag, and converts them to function calls to OpenCL `native_` intrinsics. These intrinsic functions are supported by the SPIRV backend, and are automatically converted to `OpExtInst` calls to `native_` ops from the OpenCL SPIRV ext. inst. set when outputting to SPIRV/XeVM. Note: - This pass also supports converting `arith.divf` to native equivalents. There is an option provided in the pass to turn this behavior off. - This pass preserves fastmath flags, but these flags are currently ignored by the SPIRV backend. Thus, in order to generate SPIRV that truly preserves fastmath flags, support needs to be added to the SPIRV backend.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/SWIGPythonBridge.h')
0 files changed, 0 insertions, 0 deletions