[llvm-commits] [PATCH] Add a !mul operator

greened at obbligato.org greened at obbligato.org
Tue Jan 15 20:02:28 PST 2013


Dmitri Gribenko <gribozavr at gmail.com> writes:

> On Wed, Jan 16, 2013 at 2:37 AM, David Greene <dag at cray.com> wrote:
>> Add a !mul operator that takes two integer values and yields the
>> product.  We can use this to produce more readable TableGen files.
>
> Hello David,
>
> It would be nice if you pointed out possible cleanups that !mul would enable.

The testcase gives a good hint.

I'm about to send a set of patches that implement a simple memory model
for LLVM targets.  One of the things you would like to do with such a
model is specify sizes.  Since these sizes tend to be multiples of
powers of 2, it's more readable to talk about  12 * 1M, for example
rather than 12582912.

                           -David



More information about the llvm-commits mailing list