diff options
author | River Riddle <riddleriver@gmail.com> | 2022-04-26 11:21:18 -0700 |
---|---|---|
committer | River Riddle <riddleriver@gmail.com> | 2022-04-28 12:57:59 -0700 |
commit | d4381b3f93a6e53e1b35232b9a0039b1f5e04c6a (patch) | |
tree | 5037f6fa145803787a8158664b3aea93bd99d514 /llvm/lib/CodeGen/ModuloSchedule.cpp | |
parent | 92a836da07596a9e409c3b4231fe727e0924d0e4 (diff) | |
download | llvm-d4381b3f93a6e53e1b35232b9a0039b1f5e04c6a.zip llvm-d4381b3f93a6e53e1b35232b9a0039b1f5e04c6a.tar.gz llvm-d4381b3f93a6e53e1b35232b9a0039b1f5e04c6a.tar.bz2 |
[mlir:PDL] Fix a syntax ambiguity in pdl.attribute
pdl.attribute currently has a syntax ambiguity that leads to the incorrect parsing
of pdl.attribute operations with locations that don't also have a constant value. For example:
```
pdl.attribute loc("foo")
```
The above IR is treated as being a pdl.attribute with a constant value containing the location,
`loc("foo")`, which is incorrect. This commit changes the syntax to use `= <constant-value>` to
clearly distinguish when the constant value is present, as opposed to just trying to parse an attribute.
Differential Revision: https://reviews.llvm.org/D124582
Diffstat (limited to 'llvm/lib/CodeGen/ModuloSchedule.cpp')
0 files changed, 0 insertions, 0 deletions