<feed xmlns='http://www.w3.org/2005/Atom'>
<title>llvm-project.git/mlir/lib/Conversion/MathToLibm, branch main</title>
<subtitle>Unnamed repository; edit this file 'description' to name the repository.
</subtitle>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/'/>
<entry>
<title>[mlir][NFC] update `Conversion` create APIs (6/n) (#149888)</title>
<updated>2025-07-22T12:16:53+00:00</updated>
<author>
<name>Maksim Levental</name>
<email>maksim.levental@gmail.com</email>
</author>
<published>2025-07-22T12:16:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=4ae9fdca8af095afd91705f8dd143e93b304b6fb'/>
<id>4ae9fdca8af095afd91705f8dd143e93b304b6fb</id>
<content type='text'>
See https://github.com/llvm/llvm-project/pull/147168 for more info.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
See https://github.com/llvm/llvm-project/pull/147168 for more info.</pre>
</div>
</content>
</entry>
<entry>
<title>[mlir] Remove unused includes (NFC) (#147101)</title>
<updated>2025-07-04T20:30:21+00:00</updated>
<author>
<name>Kazu Hirata</name>
<email>kazu@google.com</email>
</author>
<published>2025-07-04T20:30:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=fa9adbfda9679250ab753edd9aa908d9ea53be0a'/>
<id>fa9adbfda9679250ab753edd9aa908d9ea53be0a</id>
<content type='text'>
These are identified by misc-include-cleaner.  I've filtered out those
that break builds.  Also, I'm staying away from llvm-config.h,
config.h, and Compiler.h, which likely cause platform- or
compiler-specific build failures.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
These are identified by misc-include-cleaner.  I've filtered out those
that break builds.  Also, I'm staying away from llvm-config.h,
config.h, and Compiler.h, which likely cause platform- or
compiler-specific build failures.</pre>
</div>
</content>
</entry>
<entry>
<title>[MLIR][Math] Add erfc to math dialect (#126439)</title>
<updated>2025-02-18T15:51:37+00:00</updated>
<author>
<name>Jan Leyonberg</name>
<email>jan_sjodin@yahoo.com</email>
</author>
<published>2025-02-18T15:51:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=8806311bb7c2b5a4a40698f544f775d62538d7df'/>
<id>8806311bb7c2b5a4a40698f544f775d62538d7df</id>
<content type='text'>
This patch adds the erfc op to the math dialect. It also does lowering
of the math.erfc op to libm calls. There is also a f32 polynomial
approximation for the function based on

https://stackoverflow.com/questions/35966695/vectorizable-implementation-of-complementary-error-function-erfcf
This is in turn based on
M. M. Shepherd and J. G. Laframboise, "Chebyshev Approximation of
(1+2x)exp(x^2)erfc x in 0 &lt;= x &lt; INF", Mathematics of Computation, Vol.
36, No. 153, January 1981, pp. 249-253.
The code has a ULP error less than 3, which was tested, and MLIR test
values were verified against the C implementation.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This patch adds the erfc op to the math dialect. It also does lowering
of the math.erfc op to libm calls. There is also a f32 polynomial
approximation for the function based on

https://stackoverflow.com/questions/35966695/vectorizable-implementation-of-complementary-error-function-erfcf
This is in turn based on
M. M. Shepherd and J. G. Laframboise, "Chebyshev Approximation of
(1+2x)exp(x^2)erfc x in 0 &lt;= x &lt; INF", Mathematics of Computation, Vol.
36, No. 153, January 1981, pp. 249-253.
The code has a ULP error less than 3, which was tested, and MLIR test
values were verified against the C implementation.</pre>
</div>
</content>
</entry>
<entry>
<title>[MLIR][NFC] Retire `let constructor` for passes in Conversion directory (part1) (#127403)</title>
<updated>2025-02-17T09:55:27+00:00</updated>
<author>
<name>lorenzo chelini</name>
<email>l.chelini@icloud.com</email>
</author>
<published>2025-02-17T09:55:27+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=c1a229252617ed58f943bf3f4698bd8204ee0f04'/>
<id>c1a229252617ed58f943bf3f4698bd8204ee0f04</id>
<content type='text'>
`let constructor` is deprecated since the table gen backend emits most
of the glue logic to build a pass. This PR retires the td method for
most (I need another pass) passes in the Conversion directory.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
`let constructor` is deprecated since the table gen backend emits most
of the glue logic to build a pass. This PR retires the td method for
most (I need another pass) passes in the Conversion directory.</pre>
</div>
</content>
</entry>
<entry>
<title>[MLIR][Math] Add optional benefit arg to populate math lowering patterns (#127291)</title>
<updated>2025-02-15T04:38:11+00:00</updated>
<author>
<name>William Moses</name>
<email>gh@wsmoses.com</email>
</author>
<published>2025-02-15T04:38:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=5c93eb56dc9bc0c0210483cdd5d31e6b6580454f'/>
<id>5c93eb56dc9bc0c0210483cdd5d31e6b6580454f</id>
<content type='text'>
Co-authored-by: Ivan R. Ivanov &lt;ivanov.i.aa@m.titech.ac.jp&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Co-authored-by: Ivan R. Ivanov &lt;ivanov.i.aa@m.titech.ac.jp&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[MLIR] Add missing MLIRLLVMDialect dep to MLIRMathToLibm (#113563)</title>
<updated>2024-10-28T21:50:23+00:00</updated>
<author>
<name>Thomas Preud'homme</name>
<email>thomas.preudhomme@arm.com</email>
</author>
<published>2024-10-28T21:50:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=82cb22e735be24acf5aac594e519935fc43f0aec'/>
<id>82cb22e735be24acf5aac594e519935fc43f0aec</id>
<content type='text'>
This fixes the following failure when doing a clean build (in particular
no .ninja* lying around) of lib/libMLIRMathToLibm.a only:
```
In file included from llvm/include/llvm/IR/Module.h:22,
                 from mlir/include/mlir/Dialect/LLVMIR/LLVMDialect.h:37,
                 from mlir/lib/Conversion/MathToLibm/MathToLibm.cpp:13
llvm/include/llvm/IR/Attributes.h:90:14: fatal error: llvm/IR/Attributes.inc: No such file or directory
```</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This fixes the following failure when doing a clean build (in particular
no .ninja* lying around) of lib/libMLIRMathToLibm.a only:
```
In file included from llvm/include/llvm/IR/Module.h:22,
                 from mlir/include/mlir/Dialect/LLVMIR/LLVMDialect.h:37,
                 from mlir/lib/Conversion/MathToLibm/MathToLibm.cpp:13
llvm/include/llvm/IR/Attributes.h:90:14: fatal error: llvm/IR/Attributes.inc: No such file or directory
```</pre>
</div>
</content>
</entry>
<entry>
<title>[MLIR][MathDialect] fix fp32 promotion crash when encounters scf.if (#104451)</title>
<updated>2024-08-21T02:08:56+00:00</updated>
<author>
<name>Ivy Zhang</name>
<email>yan3.zhang@intel.com</email>
</author>
<published>2024-08-21T02:08:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=b96f18b20c31449ef9a6878b5c2725a7cf65c552'/>
<id>b96f18b20c31449ef9a6878b5c2725a7cf65c552</id>
<content type='text'>
1. Expand legal op list in `legalizeToF32`
2. add legalization support for `math::rsqrtOp` in `mathToLibm`.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
1. Expand legal op list in `legalizeToF32`
2. add legalization support for `math::rsqrtOp` in `mathToLibm`.</pre>
</div>
</content>
</entry>
<entry>
<title>[mlir] Add missing libm member operations to MathToLibm (#87981)</title>
<updated>2024-04-08T22:41:12+00:00</updated>
<author>
<name>Corentin Ferry</name>
<email>corentin.ferry@amd.com</email>
</author>
<published>2024-04-08T22:41:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=50b937331ff44ac4b4ee70c3bfc0c4da51a02855'/>
<id>50b937331ff44ac4b4ee70c3bfc0c4da51a02855</id>
<content type='text'>
This PR adds support for lowering the following Math operations to
`libm` calls:
* `math.absf` -&gt; `fabsf, fabs`
* `math.exp` -&gt; `expf, exp`
* `math.exp2` -&gt; `exp2f, exp2`
* `math.fma` -&gt; `fmaf, fma`
* `math.log` -&gt; `logf, log`
* `math.log2` -&gt; `log2f, log2`
* `math.log10` -&gt; `log10f, log10`
* `math.powf` -&gt; `powf, pow`
* `math.sqrt` -&gt; `sqrtf, sqrt`

These operations are direct members of `libm`, and do not seem to
require any special manipulations on their operands.</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This PR adds support for lowering the following Math operations to
`libm` calls:
* `math.absf` -&gt; `fabsf, fabs`
* `math.exp` -&gt; `expf, exp`
* `math.exp2` -&gt; `exp2f, exp2`
* `math.fma` -&gt; `fmaf, fma`
* `math.log` -&gt; `logf, log`
* `math.log2` -&gt; `log2f, log2`
* `math.log10` -&gt; `log10f, log10`
* `math.powf` -&gt; `powf, pow`
* `math.sqrt` -&gt; `sqrtf, sqrt`

These operations are direct members of `libm`, and do not seem to
require any special manipulations on their operands.</pre>
</div>
</content>
</entry>
<entry>
<title>[mlir][math] Add math.acosh|asin|asinh|atanh op (#77463)</title>
<updated>2024-01-10T12:39:32+00:00</updated>
<author>
<name>Vivek Khandelwal</name>
<email>vivekkhandelwal1424@gmail.com</email>
</author>
<published>2024-01-10T12:39:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=b8dca4fa729fcbd5d42ce3ca056dc4d278da2548'/>
<id>b8dca4fa729fcbd5d42ce3ca056dc4d278da2548</id>
<content type='text'>
Signed-Off By: Vivek Khandelwal &lt;vivekkhandelwal1424@gmail.com&gt;</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-Off By: Vivek Khandelwal &lt;vivekkhandelwal1424@gmail.com&gt;</pre>
</div>
</content>
</entry>
<entry>
<title>[mlir] Add config for PDL (#69927)</title>
<updated>2024-01-04T04:37:20+00:00</updated>
<author>
<name>Jacques Pienaar</name>
<email>jpienaar@google.com</email>
</author>
<published>2024-01-04T04:37:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.belthelziquor.com/llvm-project.git/commit/?id=6ae7f66ff5169ddc5a7b9ab545707042c77e036c'/>
<id>6ae7f66ff5169ddc5a7b9ab545707042c77e036c</id>
<content type='text'>
Make it so that PDL in pattern rewrites can be optionally disabled.

PDL is still enabled by default and not optional bazel. So this should
be a NOP for most folks, while enabling other to disable.

This only works with tests disabled. With tests enabled this still
compiles but tests fail as there is no lit config to disable tests that
depend on PDL rewrites yet.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make it so that PDL in pattern rewrites can be optionally disabled.

PDL is still enabled by default and not optional bazel. So this should
be a NOP for most folks, while enabling other to disable.

This only works with tests disabled. With tests enabled this still
compiles but tests fail as there is no lit config to disable tests that
depend on PDL rewrites yet.
</pre>
</div>
</content>
</entry>
</feed>
