summaryrefslogtreecommitdiff
path: root/lldb/test/API/python_api/sbstructureddata/TestStructuredDataAPI.py
diff options
context:
space:
mode:
authorFabian Mora <fmora.dev@gmail.com>2025-09-02 12:55:14 -0400
committerGitHub <noreply@github.com>2025-09-02 12:55:14 -0400
commit51a1aab6438aa33b15ff7e85bc8609b5ff003764 (patch)
treedf9a1993e90af7137ed37e0add1614dc42972728 /lldb/test/API/python_api/sbstructureddata/TestStructuredDataAPI.py
parent036b33d4d9ecf00bab7a803d26e4c9361136aa63 (diff)
[mlir][math] Add `clampf` and clean math `ExpandOps` API (#151153)
This patch adds the `clampf` operation to the math dialect. The semantics op are defined as: ``` clampf(x, min_v, max_v) = max(min(x, min_v), max_v) ``` The reasoning behind adding this operation is that some GPU vendors offer specialized intrinsics for this operation, or subsets of this operation. For example, [__saturatef](https://docs.nvidia.com/cuda/cuda-math-api/cuda_math_api/group__CUDA__MATH__INTRINSIC__SINGLE.html#group__cuda__math__intrinsic__single_1ga2c84f08e0db7117a14509d21c3aec04e) in NVIDIA GPUs, or `__builtin_amdgcn_fmed3f` in AMD GPUs. This patch also removes `test-expand-math` in favor of `math-expand-ops`. Finally, it removes individual expansion population API calls like `populateExpandCoshPattern` in favor of: ```C++ void populateExpansionPatterns(RewritePatternSet &patterns, ArrayRef<StringRef> opMnemonics = {}); ```
Diffstat (limited to 'lldb/test/API/python_api/sbstructureddata/TestStructuredDataAPI.py')
0 files changed, 0 insertions, 0 deletions