diff options
| author | River Riddle <riverriddle@google.com> | 2019-05-06 10:36:32 -0700 |
|---|---|---|
| committer | Mehdi Amini <joker.eph@gmail.com> | 2019-05-10 19:22:32 -0700 |
| commit | 94afc426e2643f29a426e3cde458e2f064147dfd (patch) | |
| tree | 00d4df0231b50783710c05539df5e85d8a210c01 /mlir/lib/Transforms/LoopTiling.cpp | |
| parent | 3df7a802655bba0f8596bc0ac90296ecdc635e12 (diff) | |
| download | bcm5719-llvm-94afc426e2643f29a426e3cde458e2f064147dfd.tar.gz bcm5719-llvm-94afc426e2643f29a426e3cde458e2f064147dfd.zip | |
Refactor the support for AffineMap and IntegerSet aliases in the parser into more general support for attribute aliases.
`#` alias `=` attribute-value
This also allows for dialects to define aliases for attributes in the AsmPrinter. The printer supports two types of attribute aliases, 'direct' and 'kind'.
* Direct aliases are synonymous with the current support for type aliases, i.e. this maps an alias to a specific instance of an attribute.
// A direct alias ("foo_str") for the string attribute "foo".
#foo_str = "foo"
* Kind aliases generates unique names for all instances of a given attribute kind. The generated aliases are of the form: `alias[0-9]+`.
// A kind alias ("strattr") for all string attributes could generate.
#strattr0 = "foo"
#strattr1 = "bar"
...
#strattrN = "baz"
--
PiperOrigin-RevId: 246851916
Diffstat (limited to 'mlir/lib/Transforms/LoopTiling.cpp')
0 files changed, 0 insertions, 0 deletions

